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

Removing Block Numbers in CNC Program


Removing Block Numbers (N) in a CNC Program

Description:
The "Remove block numbers" function is designed to automatically delete all block (line) numbers N in a CNC program (NC code). This is useful when you need to simplify the code, remove unnecessary line labels, make the program more compact, or prepare it for import into systems where block numbers are not used.

Usage:

  1. Open the “Formatting” → “Renumber Blocks (N)” menu.
  2. Select the "Remove block numbers" option.
  3. Click the Apply button — all block numbers will be removed.

Example:

Before:

N10 G00 X0 Y0
N20 G01 X50 F200
N30 M30
  

After:

G00 X0 Y0
G01 X50 F200
M30
  
Warning:
Be careful: if your program contains control structures with jumps to a specific line number (for example, IF ... GOTO N100 or WHILE ... GOTO), removing block numbers will break the program's execution logic. Before applying, make sure there are no such references in the code.
CNCPassport © MEBLEOS © 2026 · Ver 1.0 · Terms & Conditions | Privacy Policy | Cookie Policy | Refund Policy Legal information | Privacy Policy