3.5.1
Basic Operations
You can use the basic operations in all logic blocks and all methods of
representation (STL, LAD, CSF).
Binary logic operations
Operation
Operand
Function
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
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
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
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
O
–
Combine AND operations through logic OR
O
U(
O(
)
–
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
RLO formation
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).
Table 3-2
Binary logic operations
Basic Operations
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 19
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...