Flexible NC programming
1.25 Subprogram technique
Job planning
166 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Example 5: Single block suppression for program nesting
Initial situation:
Single block execution is active.
Program nesting:
Program code Comments
N10 X0 F1000 ; Execution is stopped in this block.
N20 UP1(0)
PROC UP1(INT _NR) SBLOF ; Suppress single block stop.
N100 X10
N110 UP2(0)
PROC UP2(INT _NR)
N200 X20
N210 SBLON ; Activate single block stop.
N220 X22 ; Execution is stopped in this block.
N230 UP3(0)
PROC UP3(INT _NR)
N300 SBLOF ; Suppress single block stop.
N305 X30
N310 SBLON ; Activate single block stop.
N320 X32 ; Execution is stopped in this block.
N330 SBLOF ; Suppress single block stop.
N340 X34
N350 M17 ; SBLOF is active.
N240 X24 ; Execution is stopped in this block.
SBLON is active.
N250 M17 ; Execution is stopped in this block.
SBLON is active.
N120 X12
N130 M17 ; Execution is stopped in this
return jump block. SBLOF of the PROC
instruction is active.
N30 X0 ; Execution is stopped in this block.
N40 M30 ; Execution is stopped in this block.