EasyManua.ls Logo

Siemens SIMATIC S7-200 - Example of For;Next Instructions for Simatic LAD, STL, and FBD

Siemens SIMATIC S7-200
606 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...
SIMATIC Instructions
9-156
S7-200 Programmable Controller System Manual
A5E00066097-02
For/Next Example
I2.0
FOR
EN
INDX
INIT
VW100
1
FINAL 100
I2.1
FOR
EN
INDX
INIT
VW225
1
FINAL2
Network
LD I2.0
FOR VW100, 1, 100
.
.
.
Network
LD I2.1
FOR VW225, 1, 2
.
.
.
Network
NEXT
.
.
Network
NEXT
When I2.0 comes on,
the outside loop
indicated by arrow 1 is
executed 100 times.
The inside loop
indicated by arrow 2 is
executed twice for each
execution of the outside
loop when I2.1 is on.
2
1
Network 1
Network 10
Network 15
Network 20
NEXT
NEXT
LAD STL
FBD
Network 1
Network 10
Network 15
Network 20
FOR
EN
INDX
INIT
VW100
+1
FINAL +100
I2.0
FOR
EN
INDX
INIT
VW225
+1
FINAL+2
I2.1
NEXT
NEXT
ENO
ENO
ENO
ENO
Figure 9-56 Example of For/Next Instructions for SIMATIC LAD, STL, and FBD

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals