Technical data
6.12 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.2).
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
Delay time in milliseconds (max. 65535)
Permitted values:0001H to FFFFH
ACCU-2-L only needs to be supplied with the function number ’
1’
("define delay time") when OB 153 is called. The contents of
ACCU-2-L are not evaluated in the remaining OB 153 functions.
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 928B Programming Guide
6 - 48 C79000-B8576-C898-01