Locking of program areas for block search

For block search in NC program any program areas can be locked by the command #BLOCKSEARCH LOCKED/RELEASED. If the start position of block search is located in one of this restricted areas, the error message P-ERR-21399 is output.

The block search lock also includes all local and global sub program calls of the corresponding area.

For nested locked areas the block search lock includes the area beginning from the first activation to the first deactivation (see example 2).

For further information to block search see the documentation [FCT-C6].

#BLOCKSEARCH LOCKED | RELEASED  (modal)

Programming examples

Example 1:

In the program area N40–N100 and all included sub programs for block search no start position may be selected.

%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:

For the following nested areas the block search lock includes 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