1.12.5
Program loop with condition at the end of the loop (REPEAT, UNTIL)
Function
For a REPEAT loop, the condition is at the end of the loop. The REPEAT loop is executed
once and repeated continuously until the condition is fulfilled.
Syntax
REPEAT
...
UNTIL <significance>
Significance
REPEAT:
UNTIL:
<condition>:
Example
Program code
...
REPEAT
...
UNTIL ...
...
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Initiates the program loop.
Marks the end of the loop and results in a return jump to the beginning
of the loop.
The condition that must be fulfilled so that the REPEAT loop is no
longer executed.
Comments
; Call the REPEAT loop.
; Check whether the condition is fulfilled.
Flexible NC programming
1.12 Check structures
113