Technical data
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.
Result
After correct processing of OB 153, 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’.
Possible errors
The errors listed in the following table can occur.
OB 31 (other runtime errors) is called. If OB 31 is not loaded, the
CPU goes to the STOP mode.
In both cases, error IDs are entered in ACCU-1-L and ACCU-2-L (see
the table below).
ACCU-1-L ACCU-2-L Bedeutung
1A4FH 0001H
0002H
Function no. = 0 or >3
Illegal delay time
Examples
Table 6-8 OB 153 error IDs
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 Value for ACCU-2-L: 5000 ms
:L KF +1 Value for ACCU-1-L: function no. = 1 for
: "define and start delay time"
:JU OB 153 Call OB 153
:
6
OB 153: Set/Read Time for Delayed Interrupt
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 49