Lock program areas for block search (#BLOCKSEARCH)

The command
#BLOCKSEARCH LOCKED/RELEASED can lock any program areas for block search in the NC program. If the start position of block search is then located in one of these locked areas, the error message P-ERR-21399 is output.

The block search lock also includes all local and global subroutine called in the corresponding area.

If locked areas are nested, the block search lock includes the area starting at the first activation up to the first deactivation (see example 2).

#BLOCKSEARCH LOCKED | RELEASED

modal

Programing Example

prg_example

Lock program areas for block search

Example 1:

No start position may be selected for block search in the range of NC blocks N40–N100 including the subroutines called in it.

%BLOCKSEARCH

N10 X0 Y0 Z0

N20 X10

N30 Y10

N40 #BLOCKSEARCH LOCKED

N50 X20

N60 Y20

N65 L GSP.nc

N70 Z20

N80 X30

N90 Z30

N100 #BLOCKSEARCH RELEASED

N110 Y30

N120 X40

N130 Z40

N999 M30

Example 2:

The area of the block search lock when nested covers N40-N75.

%BLOCKSEARCH

N10 X0 Y0 Z0

N20 X10

N30 Y10

N40 #BLOCKSEARCH LOCKED

N50 X20

N55 #BLOCKSEARCH LOCKED

N60 Y20

N65 L GSP.nc

N70 Z20

N75 #BLOCKSEARCH RELEASED

N80 X30

N90 Z30

N100 #BLOCKSEARCH RELEASED

N110 Y30

N120 X40

N130 Z40

N999 M30