Flexible NC programming
1.25 Subprogram technique
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
165
Example 4: Is not stopped with MD10702 Bit 12 = 1
Initial situation:
● Single block execution is active.
● MD10702 $MN_IGNORE_SINGLEBLOCK_MASK Bit12 = 1
Main program:
Program code Comments
N10 G0 X0 ; Stop in this part program line.
N20 X10 ; Stop in this part program line.
N30 CYCLE ; Traversing block generated by the cycle.
N50 G90 X20 ; Stop in this part program line.
M30
Cycle CYCLE:
Program code Comments
PROC CYCLE SBLOF ; Suppress single block stop:
N100 R0 = 1
N110 SBLON ; Execution is not stopped in the part program line due
to the fact that MD10702 bit12=1.
N120 X1 ; Execution is stopped in this part program line.
N140 SBLOF
N150 R0 = 2
RET