Flexible NC programming
1.12 Check structures
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
101
1.12.2 Continuous program loop (LOOP, ENDLOOP)
Function
Endless loops are used in endless programs. At the end of the loop, there is always a branch
back to the beginning.
Syntax
LOOP
...
ENDLOOP
Significance
LOOP: Initiates the endless loop.
ENDLOOP: Marks the end of the loop and results in a return jump to the beginning of the
loop.
Example
Program code
...
LOOP
MSG ("no tool cutting edge active")
M0
STOPRE
ENDLOOP
...