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 a a a a a a
a a a a 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 a a a a
a a a a a a a a a a
EWA 4NEB 812 6120-02b
12-7
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...