Example - Ladder Diagram
FOR
The FOR instruction defines the beginning of n loops.
Ladder Diagram Example
![]()
- The order of execution is as follows:
- The INCP D100 instruction will increase the data register, D100, by 1 every second.
- The INCP D0 instruction will increase the data register, D0, by 1 every second.
- Step 1 and step 2 will repeat 500 times.
- After 500 times in the loop, 1 scan is finished.
- After 500 times in the loop, the DECP D200 instruction will resume execution.