EasyManua.ls Logo

Siemens SIMATIC S7 - Page 343

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
343
Example: FOR-NEXT loop
LAD
STL
When I2.0 is ON, the outside
loop (Network 1 - 4) is exe-
cuted 100 times.
Network 1
LD I2.0
FOR VW100, +1,
+100
The inside loop (Network 2 -
3) is executed twice for each
execution of the outside loop
when I2.1 is on.
Network 2
LD I2.1
FOR VW225, +1, +2
End of inside loop
Network 3
NEXT
End of outside loop
Network 4
NEXT

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals