Library of Function Blocks
4.63
Function 24 - Logic (LOG)
Operation
This block performs several types of three input logic operations with the inputs
A, B and C. If one
input is not connected it is not considered in the operation, i.e, the logical operation will be
performed with only two inputs.
03
14
2
5
A
B
C
BLK 085/086/087/088/089/090
131/132
133/134
135/136
The table 4.24.1 shows the results of the several logic operations available. The choice is made with
CLOG.
When the result of the logic performed is a high logic level or "1", the output is 100%, and when the
result is a low logic level, the output is 0%.
INPUTS* OUTPUT
A B C OR(0) AND(1) XOR(2) NOR(3) NAND(4) NXOR(5)
0 0 0 0 0 0 1 1 1
0 0 1 1 0 1 0 1 0
0 1 0 1 0 1 0 1 0
0 1 1 1 0 0 0 1 1
1 0 0 1 0 1 0 1 0
1 0 1 1 0 0 0 1 1
1 1 0 1 0 0 0 1 1
1 1 1 1 1 1 0 0 0
0 0 0 0 0 1 1 1
0 1 1 0 1 0 1 0
1 0 1 0 1 0 1 0
1 1 1 1 0 0 0 1
0 0 0 0 1 1 1
1 1 1 1 0 0 0
*With no inversion (CNOT = 0)
Table 4.24.1 - Truth Table for 3-Input Logic Block
A signal ranging from 0 to 100% connected to one of the inputs of this block will be interpreted as
follows:
- Less than 70%: level 0
- More than 80%: level 1
- Between 70% and 80%: previous state
The inputs can be inverted with parameter CNOT.