6.15 OB 153: Set/Read Time for Delayed Interrupt
Using OB 153, you can transfer so-called "delay jobs" to the system
program. After a specified delay time "a delayed interrupt" is then
processed (refer to OB 6, Section 4.5.3).
Function
By calling OB 153, you can do the following:
•• define and start a delay time,
•• stop an activated delay time (cancel delay job),
•• read how long the delay time still has to run.
A delay job can be activated in the START UP and RUN modes.
Life of a delay job
The delayed interrupt triggered by a delay job is only activated by the
system program in the RUN mode (OB 6 call).
Jobs which become due in a mode other than RUN are discarded by
the system program without any message.
A currently active (but not yet due) job is also discarded if the CPU
changes to the STOP mode or if the power is switched off.
Parameters
ACCUs
a)
ACCU-2-L
ACCU-2-L only needs to be supplied with the function number ’1’
("define delay time") when OB 153 is called, as follows:
Delay time in milliseconds (max. 65535)
Permitted values: 0001H to FFFFH
b)
ACCU-1-L
Function no.
Permitted values: 1 = define and start delay time
2 = stop delay time (= cancel job)
3 = read remaining delay time
OB 153: Set/Read Time for Delayed Interrupt
CPU 948 Programming Guide
6 - 50 C79000-G8576-C848-04