Siemens CPU 948 Programming Manual page 279

Simatic s5 s5-155u
Table of Contents

Advertisement

Examples
Set system time":
"
You want to set the system time to the following values:
"Thurs, 24.10.1993, 11:30 hours 0 seconds, 24 hour clock"
The time parameters are stored in data block DB 10 from data word DW 0
onwards.
DB 10
0: KH = 0 0 0 0
1: KH = 9 1 3 0
2: KH = 2 4 3 0
3: KH = 9 3 1 0
CPU 948 Programming Guide
C79000-G8576-C848-04
Table 6-12
Error IDs of OB 150 in ACCU-1-L
ID
Meaning
9601H
Data block not loaded
960FH
Multiple call for the block
9611H
Illegal function no.
9612H
Address area type illegal
9613H
Data block number illegal
9614H
"Number of first data field word" illegal
9615H
Data block length < 4 words
9621H
Year specification in the data field illegal
9622H
Month specification in the data field illegal
9623H
Day of month specification in the data field illegal
9624H
Weekday specification in the data field illegal
9625H
Hour specification in the data field illegal
9626H
Minute specification in the data field illegal
9627H
Second specification in the data field illegal
9628H
1/100 seconds in the data field not equal to 0
9629H
Hour format not equal to setting in OB 151
Note
If the parameters are incorrectly assigned for the "set system time"
function and if the time has already been set correctly at least
once, the error IDs listed are transferred; the previously set system
time, however, continues to run.
left byte = seconds (BCD), right byte = 0
91 = Format (=80H) + hour (=11 BCD)
30 = Minutes (BCD)
24 = Day of month (BCD)
30 = Weekday (3 = Thursday) + bit 0 to 3 = 0
93 = Year (BCD)
10 = Month (BCD)
OB 150: Set/Read System Time
Continued on next page
6 - 41

Advertisement

Table of Contents
loading

Table of Contents