Q&A · G-code & programming

How do I comment G-code?

Frequently asked · G-code & programming · Dec 1, 2026

1 answer

✔ Expert answer cnccode

On Fanuc-style controls put comments in parentheses: (ROUGH POCKET). LinuxCNC and GRBL also accept a semicolon for the rest of the line. Keep comments short, upper-case and without parentheses inside.

Your answer

Be kind and specific. No advertising. See the guidelines.