EasyManua.ls Logo

Siemens CPU 948 - Page 277

Siemens CPU 948
548 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals