Page 1 of 1

Question on G-code Comments

Posted: Mon Dec 24, 2018 12:44 pm
by trottrr50
I have been working with ‘g-code comments’ using the convention in the centroid m-series operators manual that uses “colons” and “semicolons” to denote comments in a g-code program. Both the Peter Smid CNC programming Handbook and Machinery’s Handbook (page 1229) indicate the usage of Parentheses before and after the comment. I thought that use of parentheses for comments was an industry standard. Why is the method used by Centroid different.


steve

Re: Question on G-code Comments

Posted: Mon Dec 24, 2018 1:10 pm
by cnckeith
you can use either.. try it:-)

";" and "(" both let cnc12 know that everything to the right is a comment

Re: Question on G-code Comments

Posted: Mon Dec 24, 2018 1:41 pm
by trottrr50
Will it also work with a right parentheses ")"

Re: Question on G-code Comments

Posted: Mon Dec 24, 2018 4:59 pm
by cnckeith
; this is a test
(this is a test)
G1 x3 f40 ; this is a test
G1 x3 f40 (this is a test)

are all valid g code comments.