Next Instruction |
Topic: CL178
|
The Next instruction indicates the end of a For Next loop. The Next instruction must be the only instruction on its rung. No enabling contacts are allowed on the same rung with the Next instruction.
When the user selects the Next instruction from the Instruction List and drops it into the Ladder Editor at the specified position, the symbol below appears in the Ladder Editor at the specified position.
Example Program: For-Next Loop
In the following example, when X001 is ON, the Ladder Program is executed 100 times.
The Next instruction does not require a dialog for setup. The placement of the Next instruction in the appropriate Coil Area location is achieved by one of several simple methods: