Weekday:
0 to 6 for Mon to Sun
Days x 1:
0 to 9
Days x 10:
0 to 3
Month x 1:
0 to 9
Month x 10:
0 to 1
Year x 1:
0 to 9
Year x 10:
0 to 9
2. BR register (base address register)
Start address of a data field in an area of memory organized in words,
from which the time values to be set are read or in which the current
time values are to be stored. The BR register must be loaded with the
address before the OB 121 call.
3. ACCU-1-L
Function no.,
Permitted values:
1 = set system time
2 = read system time
Result
After correct and error-free processing, the system program enters the
value ’0’ in ACCU-1-L. After the "set" function, the system time is set
to the values contained in the data field; after the "read" function, the
data field contains the current time values.
Possible errors
The errors listed in the following table can occur. If one of these errors
does occur, the system program enters the error ID shown in the table
in ACCU-1-L.
ID Meaning
F001H
F00FH
F101H
F102H
F103H
F104H
F105H
F106H
F107H
F108H
F109H
Illegal function no.
Multiple block call
Year specification illegal
Month specification illegal
Day specification illegal
Weekday specification illegal
Hour specification illegal
Minute specification illegal
Seconds specification illegal
100th to 10th seconds in the data field unequal to 0.
Entries from the 100th to the 10th second must
equal 0.
Hour format differs from setting in OB 151
Table 6-2
Error IDs of OB 121 in ACCU-1-L
OB 121: Set/Read System Time
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 9
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 ...