Siemens SIMATIC S5-90U System Manual page 331

Table of Contents

Advertisement

S5-90U/S5-95U
In order to see how and with which values the clock runs, you can monitor the clock data area with
the programmer function "STATUS VAR".
You receive, for example:
Table 13-4. Reading the Current Clock Time and Current Date
Operand
DB 5
DW 0
DW 1
DW 2
DW 3
DB1 Parameters Used for the Integral Real-Time Clock
Table 13-5. DB1 Parameters for the Integral Real-Time Clock
Parameter
Argument
Block ID: CLP:
DBxDWy, MYz,EWv
STW
DBxDWy, MWz,EWv
CLK
wd dd.mm.yy
SET
hh:mn:ss
hhhhhh:mn:ss
OHS
OHE
wd dd.mm.
TIS
hh:mn:ss
STP
SAV
CF
wd
=1 ... 7 (weekday = So ...Sa)
dd
=01 ... 31 (day)
mm
=01 ...12 (month)
yy
=0 ... 99 (year)
hh
=00 ... 23 (hours)
mn
=00 ... 59 (minutes)
ss
=00 ... 59 (seconds)
hhhhhh
=0 ... 999999 (hours)
1
If an argument such as seconds, for example, is not to be entered or changed, enter XX. The clock continues to run with
the current data. In the "TIS" paramaeter block, the clock does not acknowledge the argument entered by "XX" (is not
available).
2
If you enter AM or PM after the clock time, the clock runs in the 12-hour mode. If you omit this argument, the clock runs in
the 24-hour mode. You must use the same time mode in the SET and TIS parameter blocks.
3 If the program is monitored with an operator panel, such as OP 20, it is advantageous that the programmable controller
updates the clock data area also in the STOP mode.
EWA 4NEB 812 6115-02b
Signal States
KH = 0003
KH = 0110
KH = 9112
KH = 0000
Location of the status word ( ST atus W ord)
or AWv
Location of the clock data ( CL oc K Data)
or AWv
Setting the clock time and date
1
2
AM/PM
1
Setting the operating hours counter
( O perating H ours counter S et)
J/Y/N
Enabling the operating hours counter
( O perating H ours counter E nable)
Setting the prompt time ( TI mer S et)
1
2
AM/PM
J/Y/N
Updating the clock during STOP ( ST o P)
J/Y/N
Saving the clock time after the last change
from RUN to STOP or Power OFF ( SAV e)
p
Entering the correction factor ( C orrection F actor)
Integral Real-Time Clock
Explanation
Tuesday
October 1
1991, 12:00
(00 min; 00 s)
Meaning
Clock Parameters
3
p= – 400 ... 400
v=0 ... 126
x = 2 ... 255
y=0 ... 255
z=0 ... 254
j/J=yes
y/Y=yes
n/N=no
13-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents