Siemens SIMATIC S5-115U User Manual page 508

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Integral Real-Time Clock
FB10 STL (Continued)
:AN
F
11.2
:JC
=M002
:S
=ERR
:BEU
M002 :AN
F
11.0
:RB
=ERR
:BEC
:S
=ERR
:BE
Reading the Current Time/Date
Current data is stored in the first four data words of the clock data area (cf. Table 13-2). This data
can be read out from there with Load operations.
To be able to read a correct time, bit 3 of the status word must be set in the control program
before the read access. The clock data area is no longer updated when bit 3 is set. You must reset
this bit after reading the clock.
Figure 13-2. Procedure for Reading the Current Date/Time
13-16
HAVE SETTINGS BEEN TRANSFERRED?
IF YES, JUMP TO M002
SET ERROR BIT IF ERRORS
ERROR WHEN ENTERING SETTINGS?
RESET ERROR BIT IF NO
BEC IF NO ERROR
SET ERROR BIT IF ERROR
Setting bit 3 in
the status word
Reading the time from
the clock data area
Resetting bit 3 in
the status word
S5-115U Manual
Description
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents