Machine
G-code, Definition & Meaning
G-code is the numerical control programming language read by CNC controllers to drive motion, spindle, laser power and more.
G-code is the de-facto language of CNC. Lines like G01 X100 Y50 F1500 command linear motion. Each controller dialect (LinuxCNC, Mach3, Fanuc, GRBL) has its own quirks, handled by a post-processor.
Related terms
- Toolpath: The toolpath is the geometric route the cutting head follows, including lead-ins, lead-outs and traversal moves.
- Post-processor: A post-processor converts CAM toolpaths into G-code (or proprietary formats) for a specific machine controller.