Siemens smart for loop exits

The instruction between the FOR instruction and the NEXT instruction is the loop body. The FOR instruction marks the beginning of the loop, and the NEXT instruction is the end instruction of the loop body.

Each FOR instruction needs to be paired with a NEXT instruction.

Can be nested, with a nesting depth of 8 levels.