Coments In G Code


Results 1 to 13 of 13

Thread: Coments In G Code

  1. #1


  2. #2
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2928
    Downloads
    0
    Uploads
    0

    Default

    What control?

    Fanuc, Haas, Yasnac, etc. use "(" and ")" as control out/control in codes.



  3. #3
    Registered johnohara's Avatar
    Join Date
    Aug 2008
    Location
    www.johnohara.net
    Posts
    247
    Downloads
    0
    Uploads
    0


  4. #4
    Member
    Join Date
    Aug 2007
    Location
    usa
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default

    The comments are for personal reminders as to which set of fixtures in a setup pertain to the g code lines.
    AJ



  5. #5
    Registered johnohara's Avatar
    Join Date
    Aug 2008
    Location
    www.johnohara.net
    Posts
    247
    Downloads
    0
    Uploads
    0

    Default Comments In Any Program

    . . . 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.



  6. #6
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1511
    Downloads
    0
    Uploads
    0

    Default

    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



  7. #7
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    586
    Downloads
    0
    Uploads
    0

    Default

    Old Cincinattis (Sabre and the like) required:

    (MSG, your note here

    End parenthesis not required, but no other info went on that line.



  8. #8
    Member
    Join Date
    Aug 2007
    Location
    usa
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default

    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



  9. #9
    Registered
    Join Date
    Jan 2008
    Location
    usa
    Posts
    183
    Downloads
    0
    Uploads
    0

    Default

    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.


  10. #10
    Registered sti2011's Avatar
    Join Date
    Jan 2008
    Location
    USA
    Posts
    89
    Downloads
    0
    Uploads
    0

    Default

    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.....



  11. #11
    Member holbieone's Avatar
    Join Date
    Feb 2007
    Location
    usa
    Posts
    664
    Downloads
    1
    Uploads
    0

    Default

    try ;comment



  12. #12
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2928
    Downloads
    0
    Uploads
    0

    Default

    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.



  13. #13
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    586
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by fuzzyracing1967 View Post
    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.
    The Sabre I worked with was circa 1993 ish. Acramatic 850SX. Long time since I had to look at that control.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Coments In G Code

Coments In G Code

Coments In G Code