Program Loop With Condition At The End Of The Loop (Repeat, Until) - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents