EasyManua.ls Logo

Siemens S5-100U - Programming the Integral Real-Time Clock 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 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.
Figure 12-2. Example: Setting the Clock in DB1 to Monday, November 9, 1992, 15:30
Setting the Clock
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.
After the SET parameter, enter the weekday, the
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
you do not enter either AM or PM.
Explanation
36: KS ='PGN 01 ; CLP: CF 0 ';
48: KS ='CLK DB5 DW0 STW ';
60: KS ='MW102 STP Y SAV Y ';
72: KS ='OHE N SET 2 09.11.92 ';
84: KS ='15:30:00 TIS 4 ';
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
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 switched from STOP to RUN, it accepts the new clock
data.
EWA 4NEB 812 6120-02
12-5

Table of Contents

Related product manuals