The parameters have the following meaning, range of values and
representation:
Parameter
Permitted range of values
Value in
Job type
0 to 7 where:
0: cancel job or
no job active
1: every minute
2: every hour
3: every day
4: every week
5: every month
6: every year
7: once
BCD format
Seconds
1/100 seconds
Minutes
Hours
Weekday
Day of month
1)
Month
Year
0 to59
0
0 to 59
0 to 23 or 1 to 12, depending on the
format
0 to 6 for Mon to Sun
1 to 31
1 to 12
0 to 99
BCD format
Format
2)
Format for the hour field with the
following meaning:
Bit 15 = 0:
12 hour clock
Bit 15 = 1:
24 hour clock
(bit 14 = 0)
Bit 14 = 0:
"am"
Bit 14 = 1:
"pm"
–
1) After calling OB 151, the specified value is checked logically that the date is correct
taking into account leap years.
2) For the meaning of "am" and "pm": refer to OB 150 in the previous section:
"format" must match the form specified when setting the system time with OB 150.
Data field in the flag area
If you set up the data field in a flag area, you must take into account
the following assignment of the data field words to the flag bytes. "x"
is the parameter ’number of the 1st data field word’ which must be
written to ACCU-1-L when OB 151 is called.
Bit no. 15
8 7
0
Data field word 1
Flag byte x
Flag byte x+1
Data field word 2
Flag byte x+2
Flag byte x+3
Data field word 3
Flag byte x+4
Flag byte x+5
Data field word 4
Flag byte x+6
Flag byte x+7
OB 151: Set/Read Time for Clock-Controlled Interrupt
CPU 948 Programming Guide
6 - 44
C79000-G8576-C848-04
Содержание 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 ...