Basic Operations - Siemens CPU 948 Programming Manual

Simatic s5 s5-155u
Table of Contents

Advertisement

3.5.1

Basic Operations

Binary logic operations
Table 3-2
Binary logic operations
Operation
Operand
A
O
I
0.0 to 127.7
Q 0.0 to 127.7
F 0.0 to 255.7
S 0.0 to 4095.7
D 0.0 to 255.15
T 0 to 255
C 0 to 255
AN
ON
I
0.0 to 127.7
Q 0.0 to 127.7
F 0.0 to 255.7
S 0.0 to 4095.7
D 0.0 to 255.15
T 0 to 255
C 0 to 255
O
O
U(
O(
)
RLO formation
CPU 948 Programming Guide
C79000-G8576-C848-04
You can use the basic operations in all logic blocks and all methods of
representation (STL, LAD, CSF).
Function
AND logic operation after scanning for signal state "1"
OR logic operation after scanning for signal state "1"
of an input in the PII
of an output in the PIQ
of a flag bit
of an S flag bit
of a data word bit
of a timer
of a counter
AND logic operation after scanning for signal state "0"
OR logic operation after scanning for signal state "0"
of an input in the PII
of an output in the PIQ
of a flag bit
of an S flag bit
of a data word bit
of a timer
of a counter
Combine AND operations through logic OR
ANDing of expressions in parentheses
ORing of expressions in parentheses
Close parenthesis (to complete the bracketed expression)
Maximum of 8 levels are permitted, i.e. 7 opened brackets
The binary logic operations generate the result of logic operation
(RLO).
At the beginning of a logic sequence, the RLO only depends on the
signal state scanned (first scan) and not on the type of logic operation
(O = OR, A = AND).

Basic Operations

3 - 19

Advertisement

Table of Contents
loading

Table of Contents