Industrial Motors and Digital Logic

Home | Articles | Forum | Glossary | Books

AMAZON multi-meters discounts AMAZON oscilloscope discounts

GOALS:

  1. Discuss similarities between digital logic circuits and relay logic circuits.
  2. Discuss different types of digital logic circuits.
  3. Recognize gate symbols used for computer logic circuits.
  4. Recognize gate symbols used for NEMA logic circuits.
  5. Complete a truth table for the basic gates.

The electrician in today's industry must be familiar with solid-state digital logic circuits. Digital, of course, means a device that has only two states, ON or OFF.

Most electricians have been using digital logic for many years without realizing it. Magnetic relays, for instance, are digital devices. Relays are generally considered to be single-input, multi-output devices. The coil is the input and the contacts are the output. A relay has only one coil, but it may have a large number of contacts (ill. 1).

Although relays are digital devices, the term "digital logic" has come to mean circuits that use solid-state control devices known as gates. There are five basic types of gates: the AND, OR, NOR, NAND, and INVERTER. Each of these gates will be covered later in this text.


ill. 1 Magnetic relay.

There are also different types of logic. For instance, one of the earliest types of logic to appear was RTL, which stands for resistor-transistor logic. This was followed by DTL, which stands for diode-transistor logic, and TTL, which stands for transistor-transistor logic.

RTL and DTL are not used much anymore, but TTL is still used to a fairly large extent. TTL can be identified because it operates on 5 volts.

Another type of logic frequently used in industry is HTL, which stands for high-transit logic. HTL is used because it does a better job of ignoring the voltage spikes and drops caused by the starting and stopping of inductive devices such as motors. HTL generally operates on 15 volts.

Another type of logic that has become very popular is CMOS, which has very high input impedance. CMOS comes from COSMOS which means complementary symmetry metal-oxide-semiconductor. The advantage of CMOS logic is that it requires very little power to operate, but there are also some disadvantages. One disadvantage is that CMOS logic is so sensitive to voltage that the static charge of a person's body can sometimes destroy an IC just by touching it. People that work with CMOS logic often use a ground strap that straps around the wrist like a bracelet. This strap is used to prevent a static charge from building up on the body.

Another characteristic of CMOS logic is that un used inputs cannot be left in an indeterminate state. Unused inputs must be connected to either a high state or a low state.


ill. 2 USASI symbol for a three-input AND gate.


ill. 3 NEMA logic symbol for a three-input AND gate.


ill. 4 Truth table for a two-input AND gate.


ill. 5 Relay equivalent circuit for a three-input AND gate.


ill. 6 Truth table for a three-input AND gate.


ill. 7 Relay equivalent circuit for a three-input AND gate


Ill. 8


ill. 9 Truth table for a two-input OR gate.


ill. 10 Relay equivalent circuit for an OR gate.


ill. 11 Computer logic symbol for an EXCLUSIVE OR gate.


ill. 12 Truth table for an EXCLUSIVE OR gate.


Ill. 13


ill. 14 (A) Computer logic symbol for an INVERTER; (B) NEMA logic symbol for an INVERTER.

The AND Gate

While magnetic relays are single-input, multi-output devices, gate circuits are multi-input, single-output de vices. For instance, an AND gate may have several inputs, but only one output. ill. 2 shows the USASI symbol for an AND gate with three inputs, labeled A, B, and C, and one output, labeled Y.

USASI symbols are more commonly referred to as computer logic symbols. Unfortunately for industrial electricians, there is another system known as NEMA logic, which uses a completely different set of symbols.

The NEMA symbol for a three-input AND gate.

Although both symbols mean the same thing, they are drawn differently. Electricians working in industry must learn both sets of symbols because both types of symbols are used. Regardless of which type of symbol is used, the AND gate operates the same way. An AND gate must have all of its inputs high in order to get an output. If it's assumed that TTL logic is being used, a high level is considered to be _5 volts and a low level is considered to be 0 volts. ill. 4 shows the truth table for a two-input AND gate.

The truth table is used to illustrate the state of a gate's output with different conditions of input. The number one represents a high state and zero represents a low state. Notice in ill. 4 that the output of the AND gate is high only when both of its inputs are high.

The operation of the AND gate is very similar to that of the simple relay circuit.

If a lamp is used to indicate the output of the AND gate, both relay coils A and B must be energized be fore there can be an output. ill. 6 shows the truth table for a three-input AND gate. Notice that there is still only one condition that permits a high output for the gate, and that condition is when all inputs are high or at logic level one. When using an AND gate, any zero input _ a zero output. An equivalent relay circuit for a three-input AND gate is shown in ill. 7.

The OR Gate The computer logic symbol and the NEMA logic symbol for the OR gate are shown in ill. 8. The OR gate has a high output when either or both of its inputs are high. Refer to the truth table shown in ill. 9.

An easy way to remember how an OR gate functions is to say that any one input _ a one output. An equivalent relay circuit for the OR gate is shown in ill. 10.

Notice in this circuit that if either or both of the relays are energized, there will be an output at Y.

Another gate that's very similar to the OR gate is known as an EXCLUSIVE OR gate. The symbol for an EXCLUSIVE OR gate is shown.

The EXCLUSIVE OR gate has a high output when either, but not both, of its inputs are high. Refer to the truth table shown in ill. 12. An equivalent relay circuit for the EXCLUSIVE OR gate is shown in ill. 13. Notice that if both relays are energized or de-energized at the same time, there is no output.


ill. 15 Truth table for an INVERTER.


ill. 16 Equivalent relay circuit for an INVERTER.

The INVERTER

The simplest of all the gates is the INVERTER. The IN VERTER has one input and one output. As its name implies, the output is inverted, or the opposite of the input.

E.g., if the input is high, the output is low, or if the input is low, the output is high. ill. 14 shows the computer logic and NEMA symbols for an INVERTER.

In computer logic, a circle drawn on a gate means to invert. Since the "O" appears on the output end of the gate, it means the output is inverted. In NEMA logic an X is used to show that a gate is inverted. The truth table for an INVERTER is shown in ill. 15. The truth table clearly shows that the output of the INVERTER is the opposite of the input. ill. 16 shows an equivalent relay circuit for the INVERTER.

The NOR Gate


Ill. 17

The NOR gate is the "NOT OR" gate. Referring to the computer logic and NEMA logic symbols for a NOR gate in ill. 17, notice that the symbol for the NOR gate is the same as the symbol for the OR gate with an inverted output. A NOR gate can be made by connecting an INVERTER to the output of an OR gate as shown in ill. 18.

The truth table shown in ill. 19 shows that the output of a NOR gate is zero, or low. when any input is high. Therefore, it could be said that any one input _a zero output for the NOR gate. An equivalent re lay circuit for the NOR gate is shown in ill. 20.

Notice in ill. 20 that if either relay A or B is energized, there is no output at Y.

The NAND Gate

The NAND gate is the "NOTAND" gate. ill. 21 shows the computer logic symbol and the NEMA logic symbol for the NAND gate. Notice that these symbols are the same as the symbols for the AND gate with inverted outputs. If any input of a NAND gate is low, the output is high. Refer to the truth table in ill. 22.

Notice that the truth table clearly indicates that any zero input _ a one output. ill. 23 shows an equivalent relay circuit for the NAND gate. If either relay A or relay B is de-energized, there is an output at Y.

The NAND gate is often referred to as the basic gate because it can be used to make any of the other gates. For instance, ill. 24 shows the NAND gate connected to make an INVERTER. If a NAND gate is used as an INVERTER and is connected to the output of another NAND gate, it will become an AND gate, as shown in ill. 25. When two NAND gates are connected as INVERTERS, and these INVERTERS are connected to the inputs of another NAND gate, an OR gate is formed (ill. 26).

If an INVERTER is added to the output of the OR gate shown in ill. 26, a NOR gate is formed (ill. 27).


ill. 18 Equivalent NOR gate.


ill. 19 Truth table for a two-input NOR gate.


ill. 22 Truth table for a two-input NAND gate.


ill. 20 Equivalent relay circuit for a two-input NOR gate.


ill. 23 Equivalent relay circuit for a two-input NAND gate.


ill. 21 (A) Computer logic symbol for a two-input NAND gate (B) NEMA logic symbol for a two-input NAND gate.


ill. 26 NAND gates connected as an OR gate.


ill. 25 NAND gates connected as an AND gate. ill. 24 NAND gate connected as an INVERTER.


ill. 27 NAND gates connected as a NOR gate.

Integrated Circuits

Digital logic gates are generally housed in fourteen pin, IC packages. One of the old reliable types of TTL logic that's frequently used is the 7400 family of de vices. For instance, a 7400 IC is a quad, two-input, positive NAND gate. The word quad means that there are four NAND gates contained in the package. Each NAND gate has two inputs, and positive means that a level one is considered to be a positive voltage.

There can, however, be a difference in the way ICs are connected. A 7400 (J or N) IC has a different pin connection than a 7400 (W) package. In ill. 28, both ICs contain four two-input NAND gates, but the pin connections are different. For this reason, it's necessary to use a connection diagram when connecting or testing integrated circuits. A fourteen-pin IC is shown in ill. 29.


ill. 28 Integrated circuit connection of a quad, two-input NAND gate.

Testing Integrated Circuits Integrated circuits cannot be tested with a volt-ohm milliammeter. Most ICs must be tested by connecting power to them and then testing the inputs and outputs with special test equipment. Most industrial equipment is designed with different sections of the control system built in modular form. The electrician determines which section of the circuit's not operating and replaces that module. The defective module is then sent to the electronics department or to a company outside of the plant for repair.


ill. 29 Fourteen-pin inline integrated circuit used to house digital logic gates.

QUIZ:

1. What type of digital logic operates on 5 volts?

2. What precautions must be taken when connecting CMOS logic?

3. What do the letters COSMOS stand for?

4. When using a two-input AND gate, what conditions of input must be met to have an output?

5. When using a two-input OR gate, what conditions of input must be met to have an output?

6. Explain the difference between an OR gate and an EXCLUSIVE OR gate.

7. When using a two-input NOR gate, what condition of input must be met to have an output?

8. When using a two-input NAND gate, what condition of input must be met to have an output?

9. If an INVERTER is connected to the output of a NAND gate, what logic gate is formed?

10. If an INVERTER is connected to the output of an OR gate, what gate is formed?

11. What symbol is used to represent "invert" when computer logic symbols are used?

12. What symbol is used to represent "invert" when NEMA logic symbols are used?

Top of Page

PREV: Industrial Motor Troubleshooting | NEXT: The Bounceless Switch Guide Index | HOME