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

Removing Comments


The Removing Comments function allows you to quickly clean a CNC program (NC) of all comments enclosed in parentheses (...). This operation is useful when preparing code for sending to a machine where comments are unnecessary or may cause interpretation errors.

How the function works

  • If a text fragment is selected — comments are removed only within the selected area.
  • If no selection is made — the function processes the entire program text.
  • All characters inside parentheses, along with the parentheses themselves, are removed.
  • The rest of the code structure and spacing are preserved.

Example


; Original code:
N10 G00 X0 Y0 (Move to zero)
N20 G01 X10 Y10 F100 (Linear move)
  
; After removing comments:
N10 G00 X0 Y0 
N20 G01 X10 Y10 F100

Purpose

Removing Comments speeds up code parsing, reduces program size, and eliminates possible conflicts when sending the NC program to the equipment, especially on older or specific CNC controllers where comments may be prohibited.

Note

After applying this function, comments cannot be restored, so it is recommended to save the original version of the program before cleaning.

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