Siemens CPU 948 Programming Manual page 89

Simatic s5 s5-155u
Table of Contents

Advertisement

Example of ERAB
Other bit condition codes
Word condition codes
CPU 948 Programming Guide
C79000-G8576-C848-04
:A
I 1.0
:
:
:O
I 6.3
:
:AN
I 2.1
:
:S
Q 2.4
:
:JC
FB 150
:
:
:
• • RLO Result of logic operation
This is the result of bit logic operations. It is the truth statement for
comparison operations (refer to operations list, binary logic
operations or comparison operations).
• • STA Status
For bit operations, this indicates the logical status of the bit just
scanned or set. The status is updated in binary logic operations -
except for A(, O(,), O and for set/reset operations.
• • OR Or
Internal CPU bit for handling "AND before OR" logic operations.
• • OV Overflow
This indicates whether the permissible number range was exceeded
during the arithmetic operation just completed.
• • OS Stored overflow
The overflow bit is stored. It can be used in several arithmetic
operations to indicate whether an overflow occurred at any point
during the operations.
STEP 5 Operations with Examples
ERAB is set to '1',
the new RLO is formed by
an AND operation
The RLO is influenced by
an OR operation
The RLO is influenced by
an AND NOT operation.
ERAB is set to '0',
the sequence is now complete
The function block is called
dependent on the RLO.
3 - 17

Advertisement

Table of Contents
loading

Table of Contents