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 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’.
Possible errors
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.
ID
Meaning
990FH
9910H
9911H
9921H
Multiple call for the block
Wrong mode ("process interrupt via IB 0 = on")
Illegal function number
Delay time illegal
Examples
Table 6-15
Error IDs of OB 153
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
:
OB 153: Set/Read Time for Delayed Interrupt
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 51
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...