ID
Meaning
9601H
960FH
9611H
9612H
9613H
9614H
9615H
9621H
9622H
9623H
9624H
9625H
9626H
9627H
9628H
9629H
Data block not loaded
Multiple call for the block
Illegal function no.
Address area type illegal
Data block number illegal
"Number of first data field word" illegal
Data block length < 4 words
Year specification in the data field illegal
Month specification in the data field illegal
Day of month specification in the data field illegal
Weekday specification in the data field illegal
Hour specification in the data field illegal
Minute specification in the data field illegal
Second specification in the data field illegal
1/100 seconds in the data field not equal to 0
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.
Examples
Table 6-12
Error IDs of OB 150 in ACCU-1-L
"
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
left byte = seconds (BCD), right byte = 0
1: KH =
9 1 3 0
91 = Format (=80H) + hour (=11 BCD)
30 = Minutes (BCD)
2: KH =
2 4 3 0
24 = Day of month (BCD)
30 = Weekday (3 = Thursday) + bit 0 to 3 = 0
3: KH =
9 3 1 0
93 = Year (BCD)
10 = Month (BCD)
Continued on next page
OB 150: Set/Read System Time
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 41
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...