STEP 5 Operations S5-100U
8.1.1 Boolean Logic Operations
Table 8-1 provides an overview of Boolean logic operations. Examples follow the table.
Table 8-1. Overview of Boolean Logic Operations
1 If the scan follows an RLO limiting operation directly (first scan), the scan result is reloaded as a new
RLO.
Parameter CPU 100 CPU 102 CPU 103
0.0 to 127.7 0.0 to 127.7 0.0 to 127.7
0.0 to 127.7 0.0 to 127.7 0.0 to 127.7
0.0 to 127.7 0.0 to 127.7 0.0 to 255.7
0 to 15 0 to 31 0 to 127
0 to 15 0 to 31 0 to 127
Operand
A
O
ID
I
Q
F
T
C
AN
ON
O
A(
O(
)
Combine expression enclosed in parentheses through logic OR
Combine the RLO of the expression enclosed in parentheses with the
previous RLO through logic OR.
Meaning
Scan operand for “1” and combine with RLO through logic AND
The result is “1” when the operand in question carries signal state “1”.
Otherwise the scan results in “0”. Combine this result with the RLO in the
processor through logic AND
1
.
Scan operand for “1” and combine with RLO through logic OR
The result is “1” when the operand in question has signal state “1”.
Otherwise the scan results in “0”. Combine this result with the RLO in the
processor through logic OR
1
.
Scan operand for “0” and combine with RLO through logic AND
The result is “1” when the operand in question has signal state “0”.
Otherwise the scan results in “0”. Combine this result with the RLO in the
processor through logic AND
1
.
Scan operand for “0” and combine with RLO through logic OR
The result is “1” when the operand in question has signal state “0”.
Otherwise the scan results in “0”. Combine this result with the RLO in the
processor through logic OR
1
.
Combine AND operations through logic OR
Combine the result of the next AND logic operation (RLO) with the previous
RLO through logic OR.
Combine expression enclosed in parentheses through logic AND
Combine the RLO of the expression enclosed in parentheses with the
previous RLO through logic AND.
Close parenthesis
Conclude the expression enclosed in parentheses.
Operation
8-2
EWA 4NEB 812 6120-02