The N-function

The NC-block number can be programmed with the address letter "N“. If configured, this number is registered both in the display data as well as in the error messages (alternatively, also the offset value in the file can be used for this purpose).

N <expr>

The block number can be programmed with general mathematical expressions. This permits, particularly, the value assignment by parameters, for instance, by the run-parameter in program-loops. The calculated numerical value is internally automatically rounded and converted into an integer.

Programming example

N10 G01 X200 F500 
N20 $FOR P1=1, 10, 1
N[P1*100] XP1
.
.
N30 $ENDFOR

For program flow, the block number is without significance. Hence it need not be used in ascending form.