Setting The Operating Hours Counter In Db1 - Siemens SIMATIC S5-100U System Manual

Simatic s5 series cpu 100/102/103
Hide thumbs Also See for SIMATIC S5-100U:
Table of Contents

Advertisement

S5-100U
12.3.3

Setting the Operating Hours Counter in DB1

How to set the operating hours counter in DB1
1. Perform an overall reset on the programmable controller.
2. Generate DB5 with DW0 to DW21.
3. Output default DB1 to the programmer.
4. Overwrite the comment characters (#) with a blank space.
5. Use the cursor to jump to the CLP parameter block.
6. Enter the example.
- You are setting the start value for the operation hours counter to 1600 hours.
Setting the Operating Hours Counter
36:
KS
='PGN 01 ;
48:
KS
='CLK DB5
60:
KS
='MW102
72:
KS
='OHE Y
.
.
.
96:
KS
='01.04. 13:00:00
108:
KS
='001600:00:00
Figure 12-4. Setting the Operating Hours Counter in DB1 to 1600 Hours
7. Transfer the changed DB1 to the programmable controller.
8. Switch the programmable controller from STOP to RUN.
Each time the programmable controller is changed from STOP to RUN, it accepts the new clock
data.
12.3.4
Entering the Clock Time Correction Factor in DB1
The exactness of the clock is temperature-dependent. You can configure a correction value to
increase the clock's exactness. The correction value is output in s/month. You must measure how
many seconds per month the clock runs fast or slow. A month is defined as 30 days.
Example: Your measurements indicate the clock is 12 s too slow in 4 days. That would be 90 s
too slow in 30 days. The correction value is +90 s/month.
In addition to the changed clock parameters, enter the example into DB1 as follows:
Enter the Clock Time Correction Factor
36:
KS
='PGN 01 ;
Figure 12-5. Entering a Correction Factor of +90 s in DB1
EWA 4NEB 812 6120-02b
The clock data is stored in data block 5 beginning
CLP: CF 0
';
with data word DW0. The status word is located in
DW0
STW
';
flag word MW 102.
The clock is updated when the programmable
STP Y SAV Y ';
controller is in the STOP mode. The clock time is
saved in the clock data area. See Table 12-3.
The operating hours counter is enabled.
SET 4 01.04.92 ';
After the OHS parameter, enter the start value for
OHS ';
the operating hours counter.
; SDP: WD';
The correction value of +90 s is loaded into the
CLP: CF +90
';
clock.
The Integral Real-Time Clock
Explanation
Explanation
12-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents