![]() | |
| 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 |
|
#2
| |||
| |||
| The G does not really stand for anything; G codes are called preparatory functions, M vodes are called miscellaneous functions. If you look at a list of G codes you will see they are involved with specifying the coordinates the machine should move to in absolute mode or the distance the machine should move in incremental mode. So G codes have coordinates following thim such as G00 X0. Y0. Z0. which in this case menas make a rapid move to the zero location on all three axes. Other G codes such as G54 tell the controller to use a particular reference point. To tell the machine how fast to move an F value is included when the G code for a feed move is used as in G01 X2. Y2. Z-.1 F20. which just tells the machine to move at 20 inches per minute or mm per minute depending on the measurement system being used. M codes are generally commands to turn things on or off such as M03 start spindle forward, a speed is also needed so the complete command is M03 S10000 to start the spindle forward at 10,000 rpm. M08 on many machines means start the coolant pump, M06 means do a toolchange so a tool number is needed such as T1 M06; change to tool number one. Do not try to find any logic behind G codes or M codes or many of the other codes like P which sometimes means seconds and other times means line number as in G04 P2000 which means pause the program for 2000 seconds and M97 P1000 which means jump to line N1000 in the program. Or sometimes P2000 means 2000 milliseconds and instead of P O is used to mean jump to a line. Have I confused you, Sorry, G codes can be confusing if you try to make sense of them; just learn them and use them.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
|
#5
| ||||
| ||||
| Also G codes can be machine specific, i.e. there are unique codes which are 'standard' for Lathe, Mill, EDM, Plasma/Gas, Punch for example. The control manufacturer sets the G codes in its servo positioner control, the M,S,T are usually programmed by the MTB or Retro-fitter in the machine controller where they are passed over from the part program. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
|
#6
| ||||
| ||||
| I could be wrong (that's never happend ), but I think that Joseph Gerber of Gerber Scientific was the man behind the G in g-code.Here is some NC history from MIT, read the second to the last paragraph.
__________________ Free DXF Files - Vectorink.com - myDXF.blogspot.com |
![]() |
| 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 |
| learning g code or cad-cam code output? | slow_rider | G-Code Programing | 3 | 02-27-2010 08:48 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 |