EasyManua.ls Logo

Siemens SIMATIC S7 - Page 349

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.13 Program control
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
349
Example: SCR sequential control flow
In the following sample program, the first scan bit SM0.1, is used to set S0.1, which will be
the active State 1 on the first scan. After a 2-second delay, T37 causes a transition to State
2. This transition deactivates the State 1 SCR (S0.1) segment and activates the State 2 SCR
(S0.2) segment.
LAD
STL
On the first scan enable state 1.
Network 1
LD SM0.1
S S0.1, 1
Beginning of state 1 control
region.
Network 2
LSCR S0.1
Control the signals for street 1:
1. Set: Turn on the red light.
2. Reset: Turn off the yellow
and green lights.
3. Start a 2-second timer.
Network 3
LD SM0.0
S Q0.4, 1
R Q0.5, 2
TON T37, +20
After a 2 second delay, transi-
tion to state 2.
Network 4
LD T37
SCRT S0.2
End of SCR region for state 1.
Network 5
SCRE
Beginning of state 2 control
region.
Network 6
LSCR S0.2
Control the signals for street 2:
1. Set: Turn on the green light.
2. Start a 25-second timer.
Network 7
LD SM0.0
S Q0.2, 1
TON T38, +250

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals