Allowed or disallowed characters in g-code comments

More
04 Feb 2018 22:19 #105425 by kentavv
Hi. I'm modifying a Fusion 360 post processor to add information to the comments in the generated g-code. I need to avoid characters not allowed by LinuxCNC. What characters are allowed or disallowed?

Are / and " OK? (They work currently, I didn't want to rely on them if there's contradictory documentation.)

Disallowed: ()#
More?

linuxcnc.org/docs/html/gcode/overview.html#gcode:comments
linuxcnc.org/docs/html/gcode/overview.ht...e:comment-parameters

Thank you, Kent

Please Log in or Create an account to join the conversation.

More
06 Feb 2018 00:10 #105469 by cmorley
AFAIK there are no character restrictions in comments, but it is easy to get a trail-and-error answer to this question.
There are lots of 'magic' comment phrases such as (debug,#1), but I don't know of an exhaustive list of them anywhere.

Hope that helps a bit.

Chris M

Please Log in or Create an account to join the conversation.

More
12 Feb 2018 07:18 #105779 by kentavv
Hi Chris, yes, that helps. I thought perhaps there was a grammar file, but I've been reading through the files in linuxcnc-master/src/emc/rs274ngc and looks like I need to stay under 256 characters and avoid a few magic comments phrases, and avoiding commas would eliminate all those.

Thank you, Kent

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum