1b) Format of the data field when reading the system time
Bit no.
15
12
11
8
7
4
3
0
word 1
Seconds
1/100 seconds
word 2
Format
Hours
Minutes
word 3
Day of month
Weekday
0
word 4
Year
Month
The time parameters have the following meaning, range of values and
representation:
Parameter
Permitted range of values
Value in
Seconds
1/100 seconds
Minutes
Hours
Weekday
Day of month
1)
Month
Year
0 to 59
0 to 99 (with "set system time" = 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
Format for the hour field with the
following meaning:
Bit 15 = 0:
12 hour format
("am" or "pm"
selected in bit 14)
Bit 15 = 1:
24 hour format
(bit 14 = 0)
Bit 14 = 0:
"am"
Bit 14 = 1:
"pm"
–
1) After OB 150 is called, the specified value is checked logically for the correct data
taking into account leap years.
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 1st data field word" which must be written to
ACCU-1-L when OB 150 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 150: Set/Read System Time
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 39
Содержание 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 ...