Fundamentals

The control provides the NC functions for programming the control structures.

Using control structures, you can program the NC program more clearly and with a better structure. The control indents the NC blocks within the control structures. Thus you can see right away where a control structure starts and ends.

The control provides the following NC functions:

NC function

Meaning

Case analyses:

  • IF
  • ELSE IF
  • ELSE

Case analyses allow you to define conditions. If a condition is fulfilled, the control executes the NC blocks that belong to that condition. If a condition is not fulfilled, the control skips the NC blocks.

Case analyses

Program loops:

  • FOR
  • WHILE

Program loops enable you to repeat NC blocks several times.

Program loops

Advanced control of program loops:

  • BREAK
  • CONTINUE

The NC functions for advanced control of program loops allow you to skip the current loop repetition or cancel the program loop.

You can program these NC functions within FOR and WHILE loops.

Advanced controlling of program loops