Siemens CPU 948 Programming Manual page 282

Simatic s5 s5-155u
Table of Contents

Advertisement

OB 151: Set/Read Time for Clock-Controlled Interrupt
Data field in the flag area
6 - 44
The parameters have the following meaning, range of values and
representation:
Parameter
Permitted range of values
Job type
0 to 7 where:
Seconds
0 to59
1/100 seconds
0
Minutes
0 to 59
Hours
0 to 23 or 1 to 12, depending on the
format
Weekday
0 to 6 for Mon to Sun
Day of month
1 to 31
1)
1 to 12
Month
0 to 99
Year
2)
Format
Format for the hour field with the
following meaning:
Bit 15 = 0:
Bit 15 = 1:
Bit 14 = 0:
Bit 14 = 1:
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.
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
Data field word 1
Data field word 2
Data field word 3
Data field word 4
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
12 hour clock
24 hour clock
(bit 14 = 0)
"am"
"pm"
8 7
Flag byte x
Flag byte x+2
Flag byte x+4
Flag byte x+6
CPU 948 Programming Guide
C79000-G8576-C848-04
Value in
BCD format
BCD format
0
Flag byte x+1
Flag byte x+3
Flag byte x+5
Flag byte x+7

Advertisement

Table of Contents
loading

Table of Contents