Discrete Control Using Programmable Logic Controllers
Discrete Control Using Programmable Logic Controllers
Truth Table for the Logical AND Gate Electrical circuit illustrating the operation of the logical
AND gate.
The AND gate might be used in an automated production system to indicate
that two (or more) actions have been successfully completed, therefore
signaling that the next step in the process should be initiated. The interlock
system in previous robot forging example illustrates the AND gate. All three
conditions must be satisfied before loading of the forge press is allowed to
occur.
OR Gate
The logical OR gate outputs a value of 1 if either of the inputs has a value of
1,and 0 otherwise. Figure shows how the OR gate operates. In this case. the
two input signals Xl and X2 are arranged in a parallel circuit, so that if either
switch is closed, the lamp Y will be on. The truth table for the OR gate is
presented .A possible use of the OR gate in a manufacturing system is for
safety monitoring. Suppose that two sensors are utilized to monitor two
different safety hazards. When either hazard is present, the respective sensor
emits a positive signal that sounds an alarm buzzer.
Inputs Output
X1 X2 Y
0 0 0
0 1 1
1 0 1
1 1 1
Truth Table for the Logical OR Gate Electrical circuit illustrating the operation of the logical OR
gate.
NOT gate
The NOT gate has a single input. The logical NOT gate reverses the input
signal: If the input is I, then the output is 0; if the input is 0, then the
output is 1. The truth table for the NOT gate is shown in Table.
Inputs Output
X Y
0 1
1 0
Truth Table for the Logical NAND Gate Truth Table for the Logical NOR Gate
Symbols used for the Logical Gates