PLC Loop

Loops repeat a section of a Ladder Logic program a specified number of times.

There are 3 instructions associated with Loops

  • Loop¬†specifies the number of times a section of Ladder Logic should be performed. ¬† It is placed just above the section you would like repeated.
  • Next¬†does one of 2 things.
    • If the loop hasn’t been performed as many times as specified in the loop instruction, it will jump to the first rung inside the loop.
    • If it has performed the maximum number of times, the loop will end and the program will jump to the first statement after the loop.
  • Break forces the loop to end. ¬†The program will jump to the first statement after the loop.

Loops must always have 1 Loop statement and 1 Next statement. ¬†They don’t need to have a break statement, but may have several if desired.