EasyManua.ls Logo

Siemens S5-100U - Setting the Operating Hours Counter in DB1

Siemens S5-100U
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
S5-100U The Integral Real-Time Clock
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.
Figure 12-4. Setting the Operating Hours Counter in DB1 to 1600 Hours
The clock data is stored in data block 5 beginning
with data word DW0. The status word is located in
flag word MW 102.
The clock is updated when the programmable
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.
After the OHS parameter, enter the start value for
the operating hours counter.
Setting the Operating Hours Counter Explanation
36: KS ='PGN 01 ; CLP: CF 0 ';
48: KS ='CLK DB5 DW0 STW ';
60: KS ='MW102 STP Y SAV Y ';
72: KS ='OHE Y SET 4 01.04.92 ';
.
.
.
96: KS ='01.04. 13:00:00 OHS ';
108: KS ='001600:00:00 ; SDP: WD';
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
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:
Figure 12-5. Entering a Correction Factor of +90 s in DB1
Enter the Clock Time Correction Factor Explanation
The correction value of +90 s is loaded into the
clock.
36: KS ='PGN 01 ; CLP: CF +90 ';
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
EWA 4NEB 812 6120-02
12-7

Table of Contents

Related product manuals