1
Flexible NC programming 04.00
1.12 Control structures
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-60
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
5. Program loop with condition at end of loop
REPEAT
The REPEAT loop is executed once and repeated
continuously until the condition is fulfilled.
REPEAT
NC blocks
UNTIL
(expression)
Nesting depth
Check structures apply locally within programs. A
nesting depth of up to 8 check structures can be set
up on each subprogram level.
LOOP
ENDLOOP
ENDWHILE
WHILE
REPEAT
PROC SUBPROG
UNTIL
ENDFOR
FOR
WHILE
ENDWHILE
IF
ENDIF
WHILE
ENDWHILE
WHILE
ENDWHILE
SUBPROG
Main pro
ram Subpro
ram
FOR
ENDFOR
Runtime response
In interpreter mode (active as standard), it is
possible to shorten program processing times more
effectively by using program branches than can be
obtained with check structures.
There is no difference between program branches
and check structures in precompiled cycles.