Technical data
6.10 OB 151: Setting/Reading the Time for Clock-Driven Interrupts
Function
By calling OB 151 you can perform the following:
•• program the CPU 928B, to activate the clock-driven time
interrupt ("Time job" - OB 9, see Section 4.5.2) at a
preset time :
- every minute
- every hour
- every day
- every week
- every month
- every year
- once
•• read out the current status of a timed job
•• cancel a previously generated timed job
You can call OB 151 in the modes RESTART and RUN. Once
generated, a clock-controlled time interrupt is retained following a
WARM RESTART (automatic or manual). A COLD RESTART
clears an existing timed job.
If you generate a new timed job, a currently programmed timed job is
automatically cancelled. This means that only
one clock-controlled
time interrupt can be active.
Parameters
1. Data Field for Job Parameters
When you generate or cancel a timed job, OB 151 takes the required
job parameters from a data field.
When you
read out the current status of a timed job, OB 151 transfers
the current job parameters to a data field.
You can set up this data field in a
data block or in one of the two flag
areas
(F or S flags).
The data field consists of four words and has the following format for
both generating and reading out a timed job:
15 12 11 8 7 4 3 0Bit no.
Seconds
Format Hours Minutes
Day of month Weekday
Year Month
0
1st word
2nd word
3rd word
4th word
Job type
6
OB 151: Setting/Reading the Time for Clock-Driven Interrupts
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 33