Program code Comment
N200 END: D=$P_TOOL T=$P_TOOLNO
N210 RET
Example 4: Specific stopping in the subprogram
Initial situation:
● Single block machining is active.
● MD10702 $MN_IGNORE_SINGLEBLOCK_MASK, Bit12 = 1
Main program:
Program code Comment
N10 G0 X0 ; single block stop
N20 X10 ; single block stop
N30 CYCLE ; Traversing block generated by the cycle.
N50 G90 X20 ; single block stop
M30
Cycle CYCLE:
Program code Comment
PROC CYCLE SBLOF ; Suppress single block machining
N100 R0=1
N110 SBLON ; No single block stop due to MD10702 bit12 = 1
N120 X1 ; single block stop
N140 SBLOF
N150 R0=2
RET
Example 5: Suppression of single block machining with program nesting
Initial situation:
● Single block machining type 2 is active.
● The program execution shall not be interrupted in the SBLON block
(MD10702 $MN_IGNORE_SINGLEBLOCK_MASK, Bit12 = 1)
Program code Comment
N10 X0 F1000 ; single block stop
N20 UP1(0)
PROC UP1(INT _NR) SBLOF ; Deactivate single block machining for
UP1
N100 X10
N110 UP2(0)
PROC UP2(INT _NR)
N200 X20
N210 SBLON ; Activate single block machining
N220 X22 ; single block stop
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 505