The Integral Real-Time Clock
S5-100U
12.2
Setting Parameters in DB1, for CPU 103 Version 8MA03 and Higher
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. Refer to section 9.1.
Procedures for Setting Parameters in DB1
1.
Perform an overall reset.
2.
Output default DB1 to the programmer.
3.
Use the cursor to jump into the clock parameter block.
4.
Change the parameters.
5.
Transfer the changed DB1 to the programmable controller.
6.
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 system data contents are deleted during an overall reset. The clock continues to run
internally with the current values.
The clock time is updated one second after the next cycle starts.
12.2.1 Defaults
The following values are preset in the parameter block when you output the default DB1.
Figure 12-1.
DB1 with Default Parameters for Integral Real-Time Clock
36: KS ='PGN 01 ; #CLP: CF 0 ';
48: KS ='CLK DB5 DWO STW ';
60: KS ='MW102 STP Y SAV Y ';
72: KS ='OHE N SET 4 01.04.92 ';
84: KS ='12:00:00 TIS 4 ';
96: KS ='01.04. 13:00:00 OHS ';
108: KS ='000000:00:00 # ; SDP: WD';
After the CLP block ID for the integral real-time clock, the CLK parameter defines the location of the
clock data (in DB5 beginning with DW0, for example). The STW parameter specifies the location of
the status word (in flag word MW102, for example). You must specify both parameters if you want
to read the clock.
Section 12.2.2 describes the procedures you must follow to read the clock.
Section 12.2.3 lists all of the parameters that you can use for the integral clock.
12-2
EWA 4NEB 812 6120-02b
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...