![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#3
| ||||
| ||||
|
|
#5
| ||||
| ||||
. . . 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. |
| Sponsored Links |
|
#8
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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..... |
| Sponsored Links |
|
#12
| ||||
| ||||
| 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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help!- My Milling OKK with fanuc 6M can't recognize G-code & M-code | nessei | Fanuc | 4 | 03-29-2011 08:39 AM |
| Newbie- Takeout Unused G Code commands in Mastercams Generated G Code | shneek | Mastercam | 8 | 12-15-2010 02:32 PM |
| G-code for beginners - want to learn G-code | FPV_GTp | G-Code Programing | 7 | 11-17-2008 11:25 PM |
| looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft | troyswood | Ability Systems - LPT Indexer and G-Code | 2 | 12-24-2006 09:21 PM |
| new hobby router coments please | rob gib | DIY-CNC Router Table Machines | 16 | 11-20-2006 04:21 PM |