Block number limiting via NC command
Activating via NC command
Global variables are provided to define and select decoder block ahead limiting in the NC program.
2 (exclusive) block number limiting options are possible via variables:
V.G.MAX_NC_BLOCKS_AHEAD = <value>
This variable defines the maximum number of channel-related NC blocks (rows) by which the decoder may be ahead of the interpolator. Channel-related NC blocks are program rows that lead to further actions in the next NC channel (motion blocks, technology functions, switching commands).
Pure parameter calculations, empty rows and comment rows without block numbers are only processed at interpolator level and are ignored when the block ahead value is defined.
V.G.MAX_MOTION_BLOCKS_AHEAD = <value>
This variable defines the maximum number of NC motion blocks (G00, G01, G02/03) by which the decoder may be ahead of the interpolator. All other NC program rows are ignored when the block ahead value is defined.
Activate block ahead limiting by setting the V.G. variables to a value unequal to 0. Before you start block ahead limiting, set the decoder and interpolator to the same processing state in relation to the NC program, i.e. they should be synchronous. This can be achieved by:
- selecting block ahead limiting immediately at the start of the NC program or
- executing a #FLUSH WAIT immediately before selecting block ahead limiting
Block ahead limiting then remains active until main program end M30.
Notice | |
Only one block ahead limiting option may be active at any one time. The error message P-ERR-21575 is output if variables are used at the same time. |
Block number limiting via NC command
If the value of these V.G variables is set to 0, limiting is deactivated again.
Programming Example
Block number limiting via NC command