Subroutines, Macros
2.16 Suppress individual block (SBLOF, SBLON)
Job planning
2-34 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Example: use MD 10702 IGNORE_SINGLEBLOCK_MASK, bit 12 = 1 to prevent stopping
In single block type SBL2 (stop at each parts program line) in the SBLON statement.
;SBL2 is active
;$MN_IGNORE_SINGLEBLOCK_MASK = 'H1000' ;In the MD 10702: set bit 12 = 1
N10 G0 X0
;Stop at this parts program line
N20 X10
;Stop at this parts program line
N30 CYCLE ;Traversing block generated by the
;cycle
PROC CYCLE SBLOF ;Suppress single block stop
N100 R0 = 1
N110 SBLON ;Because of MD 10702: bit 12 = 1
;prevents stopping
N120 X1
;Stop at this parts program line
N140 SBLOF
N150 R0 = 2
RET
N50 G90 X20
;Stop at this parts program line
M30
Example: single block suppression for program nesting
;Single block is active
N10 X0 F1000
;Stop at this block
N20 UP1(0)
PROC UP1(INT _NR) SBLOF ;Single block OFF
N100 X10
N110 UP2(0)
PROC UP2(INT _NR)
N200 X20
N210 SBLON ;Single block ON
N220 X22
;Stop at this block
N230 UP3(0)
PROC UP3(INT _NR)
N302 SBLOF ;Single block OFF
N300 X30
N310 SBLON ;Single block ON
N320 X32
;Stop at this block
N330 SBLOF ;Single block OFF
N340 X34
N350 M17 ;SBLOF active
N240 X24
;Stop at this block
;SBLON active
N250 M17
;Stop at this block
;SBLON active
N120 X12
N130 M17
;Stop at this return block
;SBLOF of the PROC statement active
N30 X0
;Stop at this block
N40 M30
;Stop at this block