Setting Parameters In Db1 - Siemens SIMATIC S5-90U System Manual

Table of Contents

Advertisement

Integral Real-Time Clock
13.5

Setting Parameters in DB1

You must set the clock parameters in DB1 to be able to use the clock functions. Follow the same
rules you used in setting parameters for other functions in DB 1 (see Section 9.4).
After having performed an overall reset, output default DB1 to the programmer.
The real-time clock has the following parameter block:
Fig. 13-2. DB1 with the Default Parameters for the Integral Real-Time Clock of the S5-95U
Use the cursor to jump into the parameter block "CLP:".
Delete the two comment characters (#) in front of "CLP" and "END".
Change the clock parameters.
After the CLP block ID for the integral real-time clock, the STW parameter specifies the location of
the status word (in flag word MW102, for example). The CLK parameter defines the location of the
clock data (in DB5 beginning with DW0, for example).
You must specify both parameters if you want to read the clock. The following section describes the
procedures you must follow to read the clock.
Transfer the changed DB 1 to the programmable controller.
If you have stored the status word or the clock data area in a data block, then generate the DB
with a sufficient length and transfer it to the programmable controller.
Switch the programmable controller from STOP to RUN.
Every time there is a change from STOP to RUN, the programmable controller accepts the new
clock data.
Note
The programmable controller accepts the clock data on a STOP to RUN switchover only
if one of the DB 1 parameters "SET", "OHS or "TIS" has been changed.
This mechanism ensures, that the clock setting cannot be changed unintentionally by a
STOP to RUN switchover
13-8
84:
KC
=' 100
; #CLP: STW MW10';
96:
KC
='2
108:
KC
='
SET 3
120:
KC
='00
OHS 000000:00:00
132:
KC
='
TIS 3 01.10. 12:00:00 ';
144:
KC
='
STP Y SAV Y
156:
KC
=' ; #END ':
Basic Unit
CLK DB5 DW0
';
01.10.91 12:00:';
';
CF 00
';
S5-90U/S5-95U
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