Skip to navigation | Skip to content

Share your knowledge. Make a difference.

G-Code

1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic (by 0 people)   Your rating: 1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic

Ranked #3566 in DIY, #84991 overall

Rated G. (Control what you see)

Welcome to the G-Codes lens!

 

What are G-Codes? 

G-Code is the common name for the programming language of CNC Machines. Somewhat of a generic, catch-all type of term for CNC programming language. Very few machines adhere to this standard today. There are as many varations as there are manufacturers.
This is how I think of G-Code. It is a simple language built off of the Cartesian Coordinate System for motion control. That is a mouthful. I don't know if that is exactly right, but you will get my meaning in a second when we go through some code line by line. You will remember your High School Geometry soon enough. For the real pros out there, you know there is much more to G-Code then that, but it is a good place to start thinking about it.

You will see many variations of the G-Code name like:
Gcode
gcode
G-Code
g-code
G Code
G-Code

Are there other "Codes?"
In a word%u2026Yes. We will get to that in a moment. G-code is also the name of any command in a CNC program that begins with the letter G. G-Codes generally tell the machine to perform an action. G-Codes can tell machines to move a certain distance in the X-Axis for example. Or, make a rapid move to another location. Or, move in an arcing fashion while milling. An on and on and on.

Here are some examples of G-Codes
Remember these codes change to a certain degree between CAM Software packages and CNC Machine Manufacturers.
G00 Rapid positioning
G01 Linear interpolation
G02 CW circular interpolation
G03 CCW circular interpolation
G04 Dwell
G20 Programming in inches
G21 Programming in mm
G28 Return to home position
G40 Tool radius compensation off
G41 Tool radius compensation left
G42 Tool radius compensation right
G43 Tool offset compensation positive
G44 Tool offset compensation negative

Why does G-Code Change?
We humans like flexibility. We also like standards. G-Codes are standardized in a certain sense. Once you start to be able to read it, you can read just about any flavor of it. That is the standardized part.
All machines are not created alike. Even identical machines are different to a certain degree. They may not have the same tools loaded or they have been slightly modified to produce a certain type of part. Interesting how people like to customize.
That is why G-Codes are not the same. You need some flexibility in the programming to accommodate all situations. Couple that with the fact that every manufacturer thinks their version is the best and you get a myriad of G-Codes out there.
Many manufacturers also try to force you to only use their code. For example, they give you a design interface to make parts and a CAM interface to produce code. They lock you into their "Black Box" so you can't go elsewhere for service and support. They lock you in their "Family." Sometimes they make up a completely different kind of G-Code language that no one can understand but them. They do that to keep your hands tied up. 

 

 

 

This is the place to learn everything you want to know about G-codes

Sign Up Now!  I have put together a FREE 7 Day E-Course that teaches the basics of CNC.  Click Below and Sign Up Today!

Click Here for a Free CNC E-Course

Links for G-Code Information 

G-Code Definition
Learn the definition of a G-Code!
G-codes
This link will help you learn all about g-codes.
ASK.COM
Find information about G-codes.

CNC Stomp Pad Project - CNC Design - Learn CNC Plasma Cutting 

Here is a series of videos that walk you through the CNC Design process. These videos show you the "computer" side of CNC. CNC Shop videos to come later.

CNC Stomp Pad 1 - Introduction - Learn CNC Plasma Cutting

CNC Stomp Pad 1 - In... 0 points

CNC Stomp Pad 2 - CNC Design - Learn CNC Plasma Cutting

CNC Stomp Pad 2 - CN... 0 points

CNC Stomp Pad 4 - SheetCam - Learn CNC Plasma Cutting

CNC Stomp Pad 4 - Sh... 0 points

CNC Stomp Pad 5 - Mach 3 G-Code - Learn CNC Plasma Cutting

CNC Stomp Pad 5 - Ma... 0 points

CNC Stomp Pad 3 - Rhino CAD - Learn CNC Plasma Cutting

CNC Stomp Pad 3 - Rh... 0 points

created by CNCInformation

G-codes in Yahoo News 

Loading Fetching RSS feed... please stand by

G-Code Blog News 

Learn G-Code Basics and Gcode Information At CNC Programming ...
You can see some of these examples of G-Code at: http://cncinformation.com/g-codes-gcode-g-code-prog...
Why would I ever want to know about G-Code?
G-code is also the name of any command in a CNC program that begins with the letter G. G-Codes gener...
learn some great G-Code tips today for CNC programming
You build your model, run it through your CAM Software and create a CNC Program made up of G-Code in...

G-Code Google News 

PLCopen suite expands into multi-axis 3D motion
Path-oriented movements are usually programmed using either specialised robot programming languages,...
Promotes Safety In Classroom
The features of the CNC Router include: Moving T-slot work-surface for easy part fixturing 800 Watt,...
Robust lathes deliver beefy production
... from programs created from Manual Guidance and a conversational programming system; and through...

G-Codes on Amazon 

Learn CNC Secrets

Learn the Basic Concepts of CNC! Before you get started with CNC you need to understand the whole process. Think of it, you could be going down one path at full speed not knowing the direction you are heading. That is what this book will do for you. It is a map. Learn CNC Secrets gives you that overview of the entire CNC Process.

Amazon Price: $25.74 (as of 01/09/2009) Buy Now
List Price: $28.60

Usually ships in 24 hours

New Guestbook 

Like this lens? Want to share your feedback, or just give a thumbs up? Be the first to submit a blurb!

X
CNCInformation

About CNCInformation

Hello, my name is Ivan Irons.  I run a site called CNCInformation.com  I love CNC and am an avid enthusiast.  I have a number of CNC machines myself including two CNC Plasma Cutters and a CNC Wood Router.  I also own a CNC Bridgeport Milling Machine.

CNCInformation's Pages

See all of CNCInformation's pages

X

Happy holidays!

The red bow is special. Whenever you see a red bow on a Squidoo page, it means the page is raising money for charity.

Buy something from the page, and we'll automatically make a donation to charity, thanks to you.