Siemens SIMATIC TD 200 User Manual page 70

Operator interface
Hide thumbs Also See for SIMATIC TD 200:
Table of Contents

Advertisement

Creating Sample Programs
The program displayed in Figure 4-3 generates the clock when you download all of
the blocks to the CPU and put the CPU in RUN mode.
Ladder Logic
Network 1
SM0.0
Figure 4-3
4-4
NETWORK 1
READ-RTC
LD
TODR VB100
EN
HTA
VB100
T
HTA
HTA
HTA
HTA
EN
HTA
HTA
IN
VB101
MOVB 16#80,
LEN
OUT
2
VB20
HTA
EN
IN
VB102
LEN
OUT
2
VB23
HTA
EN
IN
VB100
LEN
OUT
2
VB26
HTA
EN
IN
VB103
LEN
OUT
2
VB32
HTA
EN
IN
VB104
LEN
OUT
2
VB35
HTA
EN
IN
VB105
LEN
OUT
2
VB38
MOV_B
EN
16#80
IN
OUT
VB12
Sample Program for Creating a Clock
Statement List
SM0.0
// on every scan
// ...get the clock data
VB101, VB20, 2
// ...convert the month
VB102, VB23, 2
// ...convert the day
VB100, VB26, 2
// ...convert the year
VB103, VB32, 2
// ...convert the hour
VB104, VB35, 2
// ...convert the minute
VB105, VB38, 2
// ...convert the second
VB12
// ...enable the message
SIMATIC TD 200 Operator Interface
C79000-G7076-C272-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents