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
Содержание 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 ...