Technical data

1b) Format of the data field when reading the hardware clock
The time parameters have the following meaning, permitted range of
values and representation:
Parameter Permitted range of values Representation
Seconds
1/100
seconds
Minutes
Hours
Weekday
Day of
month
1)
Month
Year
00 to 59
00 to 99
00 to 59
00 to 23 or 01 to 12 depending
on selected format
0 to 6 where Mo = 0,..., Su = 6
01 to 31
1)
01 to 12
00 to 99
BCD format
Format The format for the hour field is
as follows:
Bit 15 = 1: 24 hour format
(bit 14 = 0)
Bit 15 = 0: 12 hour format
(select "am" or
"pm" in bit 14)
Bit 14 = 0: "am"
Bit 14 = 1: "pm"
--
1)
The value you input is checked to ensure that the date is logically correct
taking into account leap years after OB 150 is called.
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 data field words to flag bytes. "x" is the
parameter "number of the first data field word" (see following page)
that you must enter in ACCU-1-L when OB 150 is called.
Bit no. 15 8 7 0
1st data field word flag byte x flag byte x+4
2nd data field word flag byte x+1 flag byte x+5
3rd data field word flag byte x+2 flag byte x+6
4th data field word flag byte x+3 flag byte x+7
15 12 11 8 7 4 3 0Bit no.
Seconds
Format Hours Minutes
Day of month Weekday
Year Month
1/100th second
0
1st word
2nd word
3rd word
4th word
6
Setting/Reading the System Time (OB 150)
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 29