Search CNC Information

Pick Your Native Language!

Untitled Document English CNC Information Arabic CNC Information Bulgarian CNC Information Chinese (Simplified) CNC Information Chinese (Traditional) CNC Information Croatian CNC Information Czech CNC Information Danish CNC Information Dutch CNC Information Finnish CNC Information French CNC Information German CNC Information Greek CNC Information Hindi CNC Information Italian CNC Information Japanese CNC Information Korean CNC Information Norwegian CNC Information Polish CNC Information Portuguese CNC Information Romanian CNC Information Russian CNC Information Spanish CNC Information Swedish CNC Information
G-Code

G-Code

What is G-Code?

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

Filter     Order     Display # 
Item Title
CNC Post Processor | CNC Processing
 
<< Start < Prev 1 Next > End >>
Results 1 - 1 of 1
CNC Information