Setting The Clock In Db1 - Siemens SIMATIC S5-90U System Manual

Table of Contents

Advertisement

Integral Real-Time Clock
The following sections contain examples for programming the clock. Adhere to the rules described in
Section 9.4 for setting parameters when you enter these examples into the programmable controller.
Note
If the programmable controller recognizes a parameter setting error in DB1, the
programmable controller remains in the STOP mode even after it has been switched
from STOP to RUN. The red LED is lit.

13.5.1 Setting the Clock in DB1

Setting the Clock
84:
KS
=' 100
96:
KS
='2
108:
KS
='
SET 6
120:
KS
='00
0HS 000000:00:00
.
.
144:
KS
='
STP Y SAV Y
Figure 13-3. Example - Setting the Clock in DB1
13.5.2 Setting the Prompt Time in DB1
Setting the Prompt Time
84:
KS
=' 100
96:
KS
='2
.
.
132:
KS
='
TIS 3 07.01 08:00:00 ';
144:
KS
='AM STP Y SAV Y
Figure 13-4. Example - Setting the Prompt Time in DB1
13-10
;
CLP: STW MW10';
DThe status word is located in flag word MW102.
CLK DB5
DW0
';
The clock data is stored in data block 5
beginning with data word DW0. After the SET
08.11.91 15:30:';
parameter, enter the weekday, the date, and the
';
clock time
begins running. Be certain to include the blank
spaces. The clock runs in the 24-hour time mode
since you do not enter either AM or PM.
CF 00
'
The clock is updated when the programmable
controller is in STOP. The clock time of the
last RUN to STOP switchover is saved in the
clock data area. See Table 13-1.
;
CLP: STW MW10';
The status word is in flag word MW102. The clock
data is stored in data block DB5 beginning with
CLK DB5
DW0
';
data word DW0.
After the TIS parameter, enter the weekday, the
data, and the clock time to initiate the prompt
time. You can enter the parameter for the clock
mode. The clock in the example runs in the 12-
CF 00
';
hour mode.
The clock data area
programmable controller is in STOP. The clock
time of the last RUN to STOP switchover is saved
in the clock data area. Refer to Table 13-1.
S5-90U/S5-95U
Explanation
you want the clock to use when it
Explanation
is updated when the
EWA 4NEB 812 6115-02b

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents