The N function

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

N <expr>

The block number can be programmed using general mathematical expressions. In particular, this permits value assignment by parameters e.g. the run parameter in program loops. The calculated numerical value is automatically rounded off internally and converted into an integer.

Programing Example


The N function

N10 G01 X200 F500

N20 $FOR P1=1, 10, 1

N[P1*100] XP1




For program flow, the block number has no significance. Therefore, it needs not to be used in ascending form.