Timer Example - Siemens Simatic S7-200 CPU 210 System Manual

Table of Contents

Advertisement

Timer Example

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents