3-9
S7-200 Programmable Controller, CPU 210
C79000-G7076-C235-01
3.3
Putting the Control Logic into a Program
After you have designed the control logic for your application, you arrange the instructions
into a program. You can choose either STL or ladder for your program.
Figure 3-11 provides a listing of the ladder program for the sample program. This program
includes the control logic from Section 3.2. The program ends with the End instruction.
Sound the alarm!
Evaluate the system status.
Start the Alert timer.
If the system is armed, then set the lamp bit and start the exit timer.
T0
>=I
+600
I0.3
I0.2
M0.1
S
1
Q0.3
S
1
M0.2
R
I0.2
M0.2
S
I0.0
/
I0.1
/
M0.1
/
TON
IN
PT
T0
+0
M0.2
(Continued)
T2
>=I
+900
TON
IN
PT
T2
+0
I0.2
M0.0
S
1
1
1
Network 1
Network 2
Network 3
Network 4
Figure 3-11 Home Security Program Example in Ladder
Getting Started with a Sample Program
Summary of Contents for Simatic S7-200 CPU 210
Page 10: ...x S7 200 Programmable Controller CPU 210 C79000 G7076 C235 01 Contents ...
Page 116: ...A 16 S7 200 Programmable Controller CPU 210 C79000 G7076 C235 01 CPU 210 Data Sheets ...
Page 126: ...F 2 S7 200 Programmable Controller CPU 210 C79000 G7076 C235 01 CPU 210 Order Numbers ...
Page 138: ...Index 12 S7 200 Programmable Controller CPU 210 C79000 G7076 C235 01 Index ...