Siemens CPU 948 Programming Manual page 289

Simatic s5 s5-155u
Table of Contents

Advertisement

Result
Possible errors
Examples
Define and start delay time:
When an AUTOMATIC WARM RESTART is performed, after 5 seconds a certain
STEP 5 operation sequence must be run through once. To do this, the delay
time is defined and started in start-up organization block OB 22.
The STEP 5 operations in OB 22 for calling OB 153:
:
:
:L
KF +5000
:L
KF +1
:
:JU
OB 153
:
CPU 948 Programming Guide
C79000-G8576-C848-04
OB 153: Set/Read Time for Delayed Interrupt
Note
If a previously defined delay time is not yet elapsed when a
further delay time is defined, the previously defined time is lost
and the new delay time started.
After correct processing of OB 153, the RLO, the condition code bits
OR, ERAB and OS = 0.
When OB 153 is called with the function no. '2' or '3', ACCU-1-L
contains the remaining time to run in milliseconds.
If no delay job is active when OB 153 is called with function no. '2'
or '3', ACCU-1-L contains the value '0'.
The errors listed in the following table can occur. If one of the errors
occurs, the system program sets the RLO to '1' and writes the error
IDs listed in the table to ACCU 1.
Table 6-15
Error IDs of OB 153
ID
Meaning
990FH
Multiple call for the block
9910H
Wrong mode ("process interrupt via IB 0 = on")
9911H
Illegal function number
9921H
Delay time illegal
Value for ACCU-2-L: 5000 ms
Value for ACCU-1-L: function no. = 1 for
"define and start delay time"
Call OB 153
6 - 51

Advertisement

Table of Contents
loading

Table of Contents