Chapter 9
130
Logic programming – Function blocks
Truth table for OR evaluation with two inputs
Input 1 Input 2 Output 1
0 0 0
1
x
1
x
1 1
Truth table for OR evaluation with eight inputs
Input 1 Input 2 Input 3 Input 4 Input 5 Input 6 Input 7 Input 8 Output 1
0 0 0 0 0 0 0 0 0
1
x x x x x x x
1
x
1
x x x x x x
1
x x
1
x x x x x
1
x x x
1
x x x x
1
x x x x
1
x x x
1
x x x x x
1
x x
1
x x x x x x
1
x
1
x x x x x x x
1 1
9.7.4 XOR (exclusive OR)
Function block diagram
General description
The output is High only if both inputs are complementary (i.e. with contrary values: one
input High and one input Low).
Truth table
The following applies for the truth table in this section:
“0” means logic Low.
“1” means logic High.
Truth table for XOR evaluation
Input 1 Input 2 Output 1
0 0 0
0 1 1
1 0 1
1 1 0
Table 27:
Truth table for OR
evaluation with two inputs
Table 28:
Truth table for OR
evaluation with eight inputs
Figure 102:
Function block diagram for
the Exclusive OR (XOR)
function block
Table 29:
Truth table for XOR
evaluation