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
Question on G-code Comments
Moderator: cnckeith
-
- 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
Steve
In Richmond, Virginia
In Richmond, Virginia
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
you can user either..no problem.
";"
or "(" they both work as comment indicators to cnc12
";"
or "(" they both work as comment indicators to cnc12
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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 10
- Joined: Thu Dec 20, 2018 2:25 am
- Acorn CNC Controller: No
- 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
I’ve seen brands that use brackets [comment]
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
yeah don't use brackets you'll get an "invalid character" message from cnc12. if you have a g code program that has brackets.. edit it and do a search and replace. I use Notepad++ as a G code editor... here is how to use Notepad++ as a g code editor. http://www.centroidcnc.com/dealersuppor ... ds/294.pdf
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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: Question on G-code Comments
... but parentheses (which are called 'brackets' in some parts of the world) are perfectly fine for comments on a Centroid control.
Actually, there is one obscure exception: in a variable assignment, where the right-hand side can optionally contain an arithmetic expression, you cannot use parentheses for comments. There you should use the semi-colon instead.
#101 = 3.14159 (this is an error)
#102 = 2.71828 ; but this works fine
Actually, there is one obscure exception: in a variable assignment, where the right-hand side can optionally contain an arithmetic expression, you cannot use parentheses for comments. There you should use the semi-colon instead.
#101 = 3.14159 (this is an error)
#102 = 2.71828 ; but this works fine
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3539
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: Question on G-code Comments
(Parentheses)
[Brackets]
{Braces}
What are these called in other parts of the world?
[Brackets]
{Braces}
What are these called in other parts of the world?
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)