Boolean Logic Operations - Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
8.1.1

Boolean Logic Operations

Table 8-1 provides an overview of Boolean logic operations. Examples follow the table.
Operation
Operand
O
A(
O(
)
A
O
AN
ON
ID
I
Q
F
T
C
1
If the scan follows an RLO limiting operation directly (first scan), the scan result is reloaded as a new
RLO.
8-2
Table 8-1. Overview of Boolean Logic Operations
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.
Combine expression enclosed in parentheses through logic OR
Combine the RLO of the expression enclosed in parentheses with the
previous RLO through logic OR.
Close parenthesis
Conclude the expression enclosed in parentheses.
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
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
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
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
Parameter
CPU 100
0.0 to 127.7
0.0 to 127.7
0.0 to 127.7
0
to 15
0
to 15
Meaning
1
.
1
.
1
.
1
.
CPU 102
0.0 to 127.7
0.0 to 127.7
0.0 to 127.7
0
to
31
0
to
31
S5-100U
CPU 103
0.0 to 127.7
0.0 to 127.7
0.0 to 255.7
0
to 127
0
to 127
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents