Flexible NC programming
1.12 Control structures
Job planning
1-36 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.12 1.12 Control structures
Function
The control processes the NC blocks as standard in the programmed sequence.
In addition to the program branches described in this chapter, these commands can be used
to define additional alternatives and program loops.
These commands enable the user to produce well-structured and easily legible programs.
Programming
Nesting depth
Control structures apply locally within programs. A nesting depth of up to 8 control structures
can be set up on each subroutine level.
6XESURJUDP0DLQSURJUDP
/223
(1'/223
(1':+,/(
:+,/(
5(3($7
352&68%352*
817,/
(1')25
)25
:+,/(
(1':+,/(
,)
(1',)
:+,/(
(1':+,/(
:+,/(
(1':+,/(
68%352*
)25
(1')25
Caution
Control structures may only be inserted in the statement section of a program. Definitions in
the program header may not be executed conditionally or repeatedly.
It is not permissible to superimpose macros on keywords for control structures or on branch
destinations. No such check is made when the macro is defined.