6.14 OB 151: Set/Read Time for Clock-Controlled Interrupt
Function
By calling OB 151 you can do the following:
•• cause the CPU 948 to activate the clock-controlled interrupt ("timed
job" - OB 9, refer to Section 4.5.3) at a selected 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.
OB 151 can be called in the START-UP and RUN modes. A generated
clock-controlled interrupt is retained when a WARM RESTART
(automatic or manual) is carried out. A COLD RESTART deletes an
existing timed job.
If you generate a new timed job, an existing timed job is automatically
cancelled. This means that only one clock-controlled interrupt can be
active.
Parameters
1. Data field for job parameters
When generating or cancelling a timed job, OB 151 takes the
required job parameters from a data field. When reading out the
current status of the job management, 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
when generating and reading out a timed job:
Bit no. 15 12 11 8 7 4 3 0
Word 1 Seconds 0
Word 2 Format Hours Minutes
Word 3 Day of month Weekday Job type
Word 4 Year Month
OB 151: Set/Read Time for Clock-Controlled Interrupt
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 43