Understanding G-Code: A Simple Guide for CNC Beginners
Understanding G-Code unlocks manual setup verification, tool-change control, and safer troubleshooting on every CNC mill. Although CAM software generates toolpaths automatically, reading core G0, G1, and M3 commands keeps operators in control.

Common G-Code Commands
- G00 Rapid positioning (fast movement without cutting)
- G01 Linear interpolation (straight line cutting)
- G02 Circular interpolation clockwise
- G03 Circular interpolation counter-clockwise
- G90 Absolute positioning mode
- G91 Incremental positioning mode
- M03 Spindle ON (clockwise)
- M05 Spindle OFF
Why Learn G-Code?
Knowing basic G-Code helps you understand what your CAM software is generating. It also allows you to make small manual adjustments when needed and debug issues more effectively.
Essential G-Code & M-Code Quick Reference Table (3-Axis & 4-Axis CNC)
| Command | Function | Example Line & Meaning |
|---|---|---|
G00 | Rapid Positioning Move | G00 X50.0 Y25.0 Z5.0 — Rapid move to X=50, Y=25 at safe Z=5 mm |
G01 | Linear Cutting Interpolation | G01 Z-1.0 F200 — Plunge into material to −1 mm at 200 mm/min |
G01 ... A | 4-Axis Rotary Interpolation | G01 X100.0 A180.0 F800 — Simultaneous X + rotary A-axis helical cut |
G02 / G03 | Clockwise / CCW Circular Arc | G02 X20.0 Y20.0 I10.0 J0 F600 — Clockwise arc with center offset I, J |
G21 / G90 | Metric Units / Absolute Mode | G21 G90 G17 — Millimeters, absolute coordinates, XY plane |
G54 | Work Coordinate System 1 | References the workpiece zero set via touch probe or manual jog |
M03 / M05 | Spindle CW On / Spindle Stop | M03 S18000 — Start Teknomotor spindle clockwise at 18,000 RPM |
M08 / M09 | Mist Coolant On / Off | Activates mist lubrication for aluminium or copper milling |
M30 | Program End & Rewind | Stops spindle/coolant and resets program pointer |
The Modern CAD/CAM to G-Code Pipeline on Akriti CNC Machines
You rarely write toolpaths from scratch. On Akriti machines, you generate toolpaths in TakshakCAM, Fusion, Vectric, SolidWorks, or FlatCAM, then stream .gcode via gSender, UGS, LinuxCNC, or TinyControls.
Final Thoughts
You don't need to become an expert in G-Code to operate a CNC machine. However, having a basic understanding will make you more confident and capable as a CNC user.
Akriti Precision Systems machines work well with popular control software like Universal G-Code Sender (UGS), making it easier for beginners to get started.