About the NCPlayer Service:
File Menu
Edit Menu
View Menu
Formatting Menu
Tools Menu
Machine Configuration Menu
Collaboration

Renumbering Blocks in CNC Program


Block Renumbering (N)

The Block Renumbering function is used to automatically add or change block (frame) numbers in the CNC program. This simplifies reading and debugging of the code and meets the requirements of some machines and CAM systems.

NCPlayer

Renumbering Modes:

  • Renumber All Blocks — renumber all program lines by adding block numbers N, starting from the specified value and with the given increment.
  • Renumber without blank and comments — renumber only lines containing commands, skipping blank lines and comments.
  • Renumber existing Blocks only — change numbers only for lines that already have a block number.
  • Renumber without Block Skip Char — renumber all blocks except those starting with the block skip character (usually /).
  • Remove block numbers — remove all block numbers from the program.

Parameters:

  • Start Block (N) — the starting number for the first block (default 10).
  • Block Increment (N) — numbering increment between blocks (default 10).
  • Max. Digits — maximum number of digits in the block number (for example, 5 results in N00010 format).

Example:

N10 G00 X0 Y0
N20 G01 Z-5.0 F200
N30 G02 X50 Y50 R25
N40 M30

After selecting the mode and setting the parameters, click Apply to apply the changes to the current code. The Cancel button cancels the operation without saving changes.

Warning:
When renumbering blocks, be especially careful if the program uses conditional jumps and control structures such as IF ... THEN, GOTO, WHILE loops, as well as subprograms with jumps by block number. Changing block numbers can disrupt the program logic and cause incorrect machine operation. Before applying renumbering, it is recommended to thoroughly check and, if necessary, manually adjust all references to block numbers.

CNCPassport © MEBLEOS © 2026 · Ver 1.0 · Terms & Conditions | Privacy Policy | Cookie Policy | Refund Policy Legal information | Privacy Policy