5-7
S7-200 Programmable Controller, CPU 210
C79000-G7076-C235-01
Timer Example
LAD STL
Network
LD I0.2
TON T1, 0
Network
LDW >= T1, 3
= Q0.2
I0.2
Timing Diagram
T1 (current)
T1 >= 3
Q0.2
TON
IN
PT
T1
Q0.2
T1
>=I
+3
0
I0.2
T1 >= 3
Figure 5-3 Example of the Timer Instruction
TON
IN
PT
T0
M0.0
T0
>=I
+30
0
M0.0
/
LAD STL
Network
LDN M0.0 //Enable/disable the timer
TON T0, 0 //Select timer T0
Network
LDW>= T0, 30 //Every 3 seconds,
= M0.0 //Turn on M0.0 (which then
//disables the timer)
Figure 5-4 Example of an Automatically Retriggered One-Shot Timer
Instruction Set