Siemens CPU 948 Programming Manual page 256

Simatic s5 s5-155u
Table of Contents

Advertisement

OB 125: Generate STEP 5 Blocks
Possible errors and
warnings
Condition code bits
Result bits
6 - 18
If an error occurs, the system program stops processing OB 125 and
continues program execution at the next STEP 5 operation. It also sets
the RLO to '1' and writes an ID to ACCU-1-LL (refer to Table 6-7).
If the function is aborted with a warning, it may be possible to achieve
correct execution of OB 125 by re-calling the special function
(possibly several times).
In the following case, OB 125 is aborted with a warning:
During the last 10 ms OB 124, OB 125, OB 254 or OB 255 has been
called. (Only one call for these special functions is allowed within 10
ms. This avoids multiple calls for the OBs listed above blocking the
interface to the PG so that it can no longer be processed.)
After calling OB 125, you can check whether the special function has
been executed correctly or was aborted with an "error" or "warning"
using the result of logic operation and the condition code bits CC 1
and CC 0. The result can be evaluated with conditional jump
operations.
Table 6-6
Result bits of OB 125
RLO
CC 1
CC 0 Meaning
0
0
0
1
1
0
1
0
1
Special function was
processed correctly
Processing of special
function aborted with
"warning"
Processing of special
function aborted with "error"
CPU 948 Programming Guide
C79000-G8576-C848-04
Scan
JC
JZ
JC
JP
JN
JC
JM
JN

Advertisement

Table of Contents
loading

Table of Contents