G-Code is the universal language of CNC (Computer Numerical Control) machining. It tells the machine exactly where to move, how fast to move, and what path to follow to turn raw stock into a finished part.
The Basic Commands
While CAM software generates thousands of lines of code automatically, a good machinist needs to know how to read the basics to troubleshoot on the floor:
- G00: Rapid positioning (moving quickly through the air).
- G01: Linear interpolation (cutting in a straight line at a set feed rate).
- G02/G03: Circular interpolation (cutting arcs).
Safety First
Always verify your tool offsets and run a dry pass or simulation before executing unknown G-code to prevent catastrophic machine crashes.
Need machinist math?
Check out our CNC hub for calculators, drill charts, and G-Code references.
Go to CNC Hub