2-20
SIMATIC TD 200 Operator Interface
C79000-G7076-C272-01
NETWORK 1
LD
SM0.1
// if this is the first scan
MOVB
16#80,
VB14
// ...enable the first message
MOVB
0,
MB0
// ...clear all function key bits
NETWORK 2
LD
M0.0
// if F1 has been pressed
MOVB
16#40,
VB14
// ...enable message 2 for display
R
M0.0,
1
// ...reset F1 key M bit
NETWORK 3
LD
V114.2
// if new setpoint edit bit is set
R
V114.2,
1
// ...reset edit bit
MOVR VD116,
AC0
// ...get edited real value
*R
10.00000, AC0
// ...times 10 for scaling
TRUNC AC0,
AC1
// ... convert to an integer
MOVW AC1,
VW98
// ... update prev. setpoint value
MOVB
16#20,
VB14
// ...enable message 3 for display
NETWORK 4
LD
V158.1
// if message 3 acknowledge bit is set
R
V158.1,
1
// ...reset message 3 acknowledge bit
MOVB
16#80,
VB14
// ...enable message 1 for display
NETWORK 5
LD
M0.1
// if F2 has been pressed
MOVB
16#E0,
VB14
// ...enable all 3 messages at once
R
M0.1, 1
// ...reset F2 key M bit
NETWORK 6
LD
M0.2
// if F3 has been pressed
MOVB
0,
VB14
// ...disable all messages
R
M0.2,
1
// ...reset F3 key M bit
Network 1
Ladder Logic
Statement List
SM0.1
IN1
VD116
MUL_R
EN
IN2
10.00000
OUT
AC0
IN
16#80
MOV_B
EN
OUT
VB14
IN
AC0
TRUNC
EN
OUT
AC1
IN
0
MOV_B
EN
OUT
MB0
Network 2
M0.0
IN
16#80
MOV_B
EN
OUT
VB14
M0.0
R
1
Network 3
V114.2
V114.2
R
1
IN
AC1
MOV_W
EN
OUT
VW98
IN
16#20
MOV_B
EN
OUT
VB14
Network 4
V158.1
V158.1
R
1
IN
16#80
MOV_B
EN
OUT
VB14
Network 5
M0.1
IN
16#E0
MOV_B
EN
OUT
VB14
M0.1
R
1
Network 6
M0.2
IN
0
MOV_B
EN
OUT
VB14
M0.2
R
1
Figure 2-18
Sample Program in the Ladder and Statement List Editors
Configuring the TD 200
Summary of Contents for SIMATIC TD 200
Page 22: ...1 12 SIMATIC TD 200 Operator Interface C79000 G7076 C272 01 Product Overview and Installation ...
Page 84: ...A 12 SIMATIC TD 200 Operator Interface C79000 G7076 C272 01 Specifications and Reference ...
Page 94: ...B 10 SIMATIC TD 200 Operator Interface C79000 G7076 C272 01 Multiple CPU Configurations ...
Page 126: ...E 6 SIMATIC TD 200 Operator Interface C79000 G7076 C272 01 Modifying a TD 200 Configuration ...