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