Siemens CPU 948 Programming Manual page 247

Simatic s5 s5-155u
Table of Contents

Advertisement

Result
Possible errors
CPU 948 Programming Guide
C79000-G8576-C848-04
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
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.
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.
Table 6-2
Error IDs of OB 121 in ACCU-1-L
ID
Meaning
F001H
Illegal function no.
F00FH
Multiple block call
F101H
Year specification illegal
F102H
Month specification illegal
F103H
Day specification illegal
F104H
Weekday specification illegal
F105H
Hour specification illegal
F106H
Minute specification illegal
F107H
Seconds specification illegal
F108H
100th to 10th seconds in the data field unequal to 0.
Entries from the 100th to the 10th second must
equal 0.
F109H
Hour format differs from setting in OB 151
OB 121: Set/Read System Time
6 - 9

Advertisement

Table of Contents
loading

Table of Contents