Technical data

ACCU-1-L ACCU-2-L Cause of error OB called
1A07H - Data block not loaded OB 19
1A4CH 0001H
0100H
0101H
0102H
0103H
0201H
0202H
0203H
0204H
0205H
0206H
0207H
0208H
0209H
020AH
Function no. = 0 or > 2
Address area type illegal
Data block number illegal
"Number of the first data field word" illegal
Data block length in block header < 5 words
Year specified in data field illegal
Month specified in data field illegal
Day of month specified in data field illegal
Weekday specified in data field illegal
Hour specified in data field illegal
Minute specified in data field illegal
Second specified in data field illegal
1/100 second in data field not equal to 0
Data field word 3 / bit no. 0 to 3
0
Hour format not the same as setting in OB 151
OB 31
Note
If you select incorrect parameters when setting the system time,
and if the time has been set correctly at least once, the error IDs
are transferred, however, the previously set system time is
retained.
Example
Table 6-2 OB 150 error IDs
"Setting the time"
You want to set the system time as follows:
"Thurs, 24.11.1991, 11:30, 0 seconds, 24 hour format"
It is assumed that the time parameters will be stored in data block
DB 10 from data word DW 0 onwards. The system time should be set
accurate to the second by triggering a process interrupt (trigger bit,
e.g. I 1.0 - button in the vicinity of the PLC).
First, program data block DB 10 with the following values and load it in
the PLC. You must include the STEP 5 operations for calling OB 150 in
OB 1 in such a way that the operations for calling OB 151 are only
executed in the case of a rising edge of the trigger bit:
Continued on the next page
6
Setting/Reading the System Time (OB 150)
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 31