( ) - Comments

Parentheses are used to insert comments into a G-code file.

 

Anything written between an opening parenthesis and a closing parenthesis is treated as a comment and is ignored by the controller during program execution.

 

Comments are useful for adding notes, explanations, or instructions to improve readability and understanding of a G-code program.

 


Syntax & Parameters

The opening parenthesis ( ) defines the start of a comment.

 

The closing parenthesis ) defines the end of a comment.

 


Example Program 

 

 

N10 (My comment)

 

In this example, the text inside the parentheses is treated as a comment and has no effect on machine operation.

 

 

WARNING: Comments must not be nested. Placing a comment inside another comment is not valid and may cause errors. For example, (Comment 1 (Comment 2)) is not valid syntax.