Programming The Integral Real-Time Clock In Db1 For Cpu 103 Version 8Ma03 And Higher - Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

S5-100U
12.3
Programming the Integral Real-Time Clock in DB1, for CPU 103
Version 8MA03 and Higher
Sections 12.3.1 to 12.3.4 contain examples for programming the clock in DB1. Adhere to the rules
described in chapter 9 for setting parameters when you enter these examples into the programmable
controller.
Note
If the programmable controller recognizes a parameter setting error in DB1, the
programmable controller remains in the STOP mode even after it has been switched
from STOP to RUN. The red LED is lit.
12.3.1 Setting the Clock in DB1
How to set the clock 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.
- Set the clock to the following date: Monday, November 9, 1992, 15:30.
Setting the Clock
36:
KS
='PGN 01 ;
48:
KS
='CLK DB5
60:
KS
='MW102
72:
KS
='OHE N
84:
KS
='15:30:00
Figure 12-2. Example: Setting the Clock in DB1 to Monday, November 9, 1992, 15:30
7. Transfer the changed DB1 to the programmable controller.
8. Switch the programmable controller from STOP to RUN.
Each time the programmable controller is switched from STOP to RUN, it accepts the new clock
data.
EWA 4NEB 812 6120-02
CLP: CF 0
';
The clock data is stored in data block 5 beginning
DW0
STW
';
with data word DW0. The status word is located in
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.
After the SET parameter, enter the weekday, the
SET 2 09.11.92 ';
date, and the clock time you want the clock to use
when it begins running. Be certain to include the
blank spaces.
The clock runs in the 24-hour time mode since
TIS 4
';
you do not enter either AM or PM.
The Integral Real-Time Clock
Explanation
12-5

Advertisement

Table of Contents
loading

Table of Contents