Question on G-code Comments

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
trottrr50
Posts: 18
Joined: Fri Jan 05, 2018 11:59 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Question on G-code Comments

Post 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
Steve

In Richmond, Virginia


cnckeith
Site Admin
Posts: 8942
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Question on G-code Comments

Post by cnckeith »

you can use either.. try it:-)

";" and "(" both let cnc12 know that everything to the right is a comment
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


trottrr50
Posts: 18
Joined: Fri Jan 05, 2018 11:59 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Question on G-code Comments

Post by trottrr50 »

Will it also work with a right parentheses ")"
Steve

In Richmond, Virginia


cnckeith
Site Admin
Posts: 8942
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Question on G-code Comments

Post 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.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


Post Reply