Omitting of program parts

Within the NC-program by the command #OPTIONAL EXECUTION a sequence of NC-blocks can be marked as able to be skipped during forward/ backward on path. The marked part is just omitted on interpolator level if forward/ backward on path is active, no recalculation of any conditions is done when the commands are omitted.

#OPTIONAL EXECUTION ON | OFF  (modal)

Therefore, any interpolator state, especially the axis positions, has to be the same after skipping some NC-commands otherwise the path, speed, acceleration would not be continuously.

Programming example

%t_storag.nc
X10 Y0
N10 G91 G00 X10 F1000
N11 #OPTIONAL EXECUTION ON
N12 Z123
N13 S1000 M3
N14 Z-123
N15 M101
N16 #OPTIONAL EXECUTION OFF
N20 G90 G01 X0
N30 G02 I10
N40 G03 J10
M30

The continuous path of axis with or without omitting of blocks is checked and detected by the CNC. Any further conditions must be ensured by the user itself and are not checked by the CNC.

Nesting of multiple commands optional execution on/off is not considered.

If simulation is turned on while execution is within OPTIONAL EXECUTION ON/OFF-sequence, the omitting is automatically delayed till execution has reached OPTIONAL EXECUTION OFF. This is necessary because the marked sequence is just allowed to omit at all or not.