![]() | |
| 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 |
|
#1
| |||
| |||
Guys, would you by any chance teach rookie how to understand G-code. I would like to learn and understand what those terms are. I obviously understood: X2.5 (from top view of cnc machine moving X-Axis {up/down} at 2.5") Y2.5 (from top view of cnc machine moving Y-Axis at {L/R} 2.5") Z6 (from side view of cnc machine moving Z- at{up/down} 6") But the only thing I don't understand is what G0, G1, G90, or whatever the letter and number that comes in first of each line. Perhaps, there are some websites that clearly explain that. Care to help or paste website that you would encourage a rookie to read? Your help is appreicated.
__________________ Arthur Prather Pratec Copyright © 2004 |
|
#2
| ||||
| ||||
| Mr. Octane - The "G" represents a function - to get started, think of it as "Go". Once it is entered in a line of code, it will remain the modal code until another G-code is commanded. For example, if you write: G00 x0y0 x5 y0.25 - the machine will execute the second line in "G00" mode (rapid). G00 positioning (rapid traverse) (M,T) G01 linear interpolation (feed) (M,T) G02 circular Interpolation CW (M,T) G03 circular Interpolation CCW (M,T) G04 dwell, a programmed time delay (M,T) G05 unassigned G06 parabolic interpretation (M,T) G07 cylindrical diameter values (T) G08 programmed acceleration (M,T) G09 exact stop check (M,T) G10 - G12 unassigned or lock and unlock devices G13 computing line and circle intersect (M,T) G14 - G14.1 used for scaling (M,T) G15 - G16 polar coordinate programming (M) G15 - G16.1 cylindrical interpolation - c axis (T) G16.2 end face milling - c axis (T) G17 XY plane selection (M,T) G18 ZX plane selection (M,T) G19 YZ plane selection (M,T) G20 input in inch G21 input in mm G22 - G23 machine axis off limit area (M,T) G22.1 - G23.1 cutting tool off limit area (M,T) G24 single-pass rough facing cycle (T) G28 return to reference point (M,T) G29 return from reference point (M,T) G30 return to alternate home position (M,T) G31.1 - G31.4 external skip function (M,T) G33 thread cutting, constant lead (T) G34 thread cutting, increasing lead (T) G35 thread cutting, decreasing lead (T) G36 automatic accel. and deccel. (M,T) G37 used for tool gaging (M,T) G38 measure dia. and center of hole (M) G40 cutter compensation cancel (M) G41 cutter compensation left (M) G42 cutter compensation right (M) G43 cutter offset, inside corner (M,T) G44 cutter offset, outside corner (M,T) G45 tool offset decrease G46 tool offset double increase G47 tool offset double decrease G48 scaling off G49 tool length compensation cancel G50 tool offset increase G50.1 cancel mirror image (M,T) G51.1 program mirror image (M,T) G52 offset axis w/ respect to 0 point (M,T) G53 motion in machine coordinates (M,T) G54 work coordinate system 1 select G55 work coordinate system 2 select G56 work coordinate system 3 select G57 work coordinate system 4 select G58 work coordinate system 5 select G59 work coordinate system 6 select G60 single direction positioning G61 exact stop check mode (M,T) G62 reduce feed rate on inside corner (M,T) G64 cutting mode (M,T) G65 custom parametric macro (M,T) G66 custom macro for motion blocks (M,T) G66.1 custom macro for all blocks (M,T) G67 stops custom macro (M,T) G68 coordinate syslaim rotation ON (M) G69 coordinate syslaim rotation OFF (M) G70 inch programming (M,T) G71 metric programming (M,T) G72 circular interpolation CW (M) G72 finished cut along z-axis (T) G73 peck drilling cycle (T) G74 counter tapping cycle (M) G74 rough facing cycle (T) G74 cancel circular interpolation (M,T) G75 circular interpolation (M,T) G76 fine boring G80 canned cycle cancel G81 drilling cycle, no dwell (M,T) G82 drilling cycle, dwell (M,T) G83 deep hole, peck drilling cycle (M,T) G84 right hand tapping cycle (M,T) G84.1 left hand tapping cycle (M,T) G85 boring, no dwell, feed out (M,T) G86 boring, spindle stop, rapid out (M,T) G87 boring, manual retraction (M,T) G88 boring, spindle stop, manual ret. (M,T) G89 boring, dwell and feed out (M,T) G90 absolute dimension input (M,T) G91 incremental dimension input (M,T) G92 set absolute zero point (M,T) G93 inverse time feed rate (M,T) G94 per minute feed (M,T) G95 per revolution feed (M,T) G96 constant surface speed control (T) G97 stop constant surface speed control (T) G98 return to initial point in canned cycle G99 return to R point in canned cycle Also - follow this link for more info: http://prl.stanford.edu/documents/pdf/Gcodes.pdf This should get you started - and it sounds like you might already be familiar with the Cartesian coordinate plane. It really is a pretty easy thing once you practice. Have fun!! Scott
__________________ Consistency is a good thing....unless you're consistently an idiot. |
|
#3
| ||||
| ||||
| Try this cool web site. It shows a graphic display of the commands as you move the mouse over the CNC code. http://www.cncezpro.com/gcodes.cfm |
|
#5
| |||
| |||
| Thank you all guys for great help... Let me understand this G0 X0 Y0 (Home position) G1 Y5.0 (First line) G1 X5.0 (Second Line) G1 Y-5.0 (Third Line) G1 X-5.0 (4th Line) Z6 (Spindle get off the material) This code would have make a square? is that right? Okay here's situation... running AutoCAD 2000, I drew a square, then attach a printed letter inside the square. and convert it to G code. And my objective is for a machine to cut a wood in square shape, and then engrave the letter above the square shape how can I be able to identify that machine is going to cut square and engrave letter above when looking at G Code? Because as matter of fact, I tried that... and run it on CNC simulator It cuts square shape but not engrave it. Let me know Arthur
__________________ Arthur Prather Pratec Copyright © 2004 |
| Sponsored Links |
|
#6
| ||||
| ||||
| The letter will not be recogized. It has to be in basic entities to process. More info this evening...sorry to be short. Your code needs a just a little bit of work. A simplified program to cut a square: G0 Z6 get Z out of the way!!!! - - make this a habit!!!!! X0.0 Y0.0 rapid to a starting point (G90) G1 Z0.0 F8 Y5.0 F12 X5.0 Y0.0 X0.0 G0 Z6 Oh - no need to repeat the G1 command for each line, but you can to keep it clear to yourself. G90 and G91 are not to be forgotten! Scott
__________________ Consistency is a good thing....unless you're consistently an idiot. |
|
#7
| ||||
| ||||
| Download the FREE CNC Simulator and see what your codes will do. The site is http://www.cncsimulator.com/
__________________ Stupid questions make me smarter... See how smart I've become at www.9w2bsr.com ;-P |
|
#10
| ||||
| ||||
| G'day I found this CNC editor Here AutoEditNC is a 32-bit Windows program to assist in the creation and testing of Numerical Control (NC) programs in the Fanuc/G&M-Code format. AutoEditNC is a specialized text editor with NC code creation tools. AutoEditNC will also simulate the movements of the machine tool so that the student can test his or her program for accuracy and reliablility. John |
| Sponsored Links |
|
#11
| ||||
| ||||
Hi ... take a look at Protalk ... www.KentechInc.com ... you can learn G code using either in-depth text explanations or code animations that show you the code in use. Protalk also comes with a learning Wizard that tests your programming skills using on-screen examples ... comes with an Operator Panel trainer that explains the "bells and whistles" of a CNC's operator panel ... also comes with a simple toolpath plotting software to use to test your G code programs which you can use for both milling or turning programs. One good aspect of Protalk is that it is not only a good training tool but it's design makes for a great reference tool anytime down the road and the toolpath plotting package can be used for some real programming on the job. Protalk comes in either turning or milling versions ... www.KentechInc.com Thanks to CNC Zone for the opportunity to post. |
![]() |
| 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 |
| 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 |
| parametric programming | Karl_T | CamSoft Products | 21 | 05-24-2005 02:58 PM |
| Regarding G Code Interpreter | aran.nav | General CNC (Mill and Lathe) Control Software (NC) | 2 | 01-07-2005 05:10 PM |
| I need sample G code program | bunalmis | G-Code Programing | 1 | 08-24-2004 03:50 AM |
| Getting The Most Out of CNCzone's Posting Features | CNCadmin | CNCzone.com FAQ | 0 | 03-01-2003 11:08 PM |