Loops and branches

Control structures

Control structures with repeated positioning of the file pointer in the past direction (loops) are not allowed. Such loops must be resolved in streaming programs and replaced with linearized NC block sequences. The following control structures result in output of an error message and cancellation of the streaming mode:

By contrast, control structures that only contain sequential program branching in the forward direction can also be used fully across several data packets.

Programming example: Jump list in the forward direction

%switchstream 
(data packet 1)
N010 G00 X0 Y0 Z0
N020 P1=10
(data packet 2)
N030
N040 $SWITCH P1
N050 $CASE 1
N060 X10
N070 $BREAK
N080 $CASE 5
N090 X50
N100 $BREAK
N110 $CASE 9
N120 X90
N130 $BREAK
N140 $CASE 10
N150 X100
N160 $ENDSWITCH
:
M30