Skip to main content

Example - Ladder Diagram

NEXT


The NEXT instruction defines the end of the corresponding FOR instruction.

Ladder Diagram Example

  • The order of execution is as follows:
    1. The INCP D100 instruction will increase the data register, D100, by 1 every second.
    2. The INCP D0 instruction will increase the data register, D0, by 1 every second.
    3. Step 1 and step 2 will repeat 500 times.
      • After 500 times in the loop, 1 scan is finished.
    4. After 500 times in the loop, the DECP D200 instruction will resume execution.