How do I add a comment in a line of g code ?
Thanks
AJ
How do I add a comment in a line of g code ?
Thanks
AJ
What control?
Fanuc, Haas, Yasnac, etc. use "(" and ")" as control out/control in codes.
The comments are for personal reminders as to which set of fixtures in a setup pertain to the g code lines.
AJ
. . . are added to create clarity and understanding about the source code being viewed. All program compilers and interpreters allow for comments to be included. How the comments are used is entirely up to the programmer.
I believe that most common is to put the comments in () parenthesis or "". However it will depend on the model of control. So as Dave has already asked, we need to know what model control you are using.
Stevo
Old Cincinattis (Sabre and the like) required:
(MSG, your note here
End parenthesis not required, but no other info went on that line.
I am running Mach 3 . I have been getting lost in some parts of the program, that is why I need the commets.
My understanding is that I can add a comment at the beginning or end of a line of g code as long as it is inclosed in () or "", is that correct?
Thanks for all your input.
AJ
Parenthesis work most of the time but not allways, are 20 year old mitsy mo control dosn't like them,so I just put a block delete in that line.If I'm putting info about a part in the program like, (take jack screw out) ,after a M00,I will put empty end of blocks so when the program stops the operator can see only the message on the screen (take jack screw out).Just a little trick I use,although the new hass recuiers a few more eob's then the old one.
Hey beege how old of cincy? I never tried putting them in ours,it is a 74.Not that we put new jobs on it but the one job it does a message at one point would be nice for new guys.
Just push the button,what's the worst that could happen.
I would agree the addition of end of blocks before and after the M00 and comment line is a good idea. Aside from the comment being the only thing that operators can see, it is handy to be able to look across the shop and see the machine is stopped. Be it time to remove parts, add parts, change a bar, etc.....
try ;comment
According to "Using Mach3 Mill":
10.5.5 Comments and Messages
A line that starts with the percent character, %, is treated as a comment and not interpreted in any way.
Printable characters and white space inside parentheses is a comment. A left parenthesis always starts a comment. The comment ends at the first right parenthesis found thereafter.
Once a left parenthesis is placed on a line, a matching right parenthesis must appear before the end of the line.
Comments may not be nested; it is an error if a left parenthesis is found after the start of a comment and before the end of the comment.
Here is an example of a line containing a comment: G80 M5 (stop motion)
An alternative form of comment is to use the two characters // The remainder of the line is treated as a comment
Comments do not cause the machining system to do anything.
A comment that is included in parenthesese, contains a message if MSG, appears after the left parenthesis and before any other printing characters. Variants of MSG, which include white space and lower case characters are allowed. Note that the comma which is required. The rest of the characters before the right parenthesis are considered to be a message to the operator. Messages are displayed on screen in the "Error" intelligent label.