Skip to main content
Independent machine intelligence · Research before the decision
THE MACHINEBLUE BOOKResearch · Market · Ownership
◧ The Machine Blue BookTechnologyReference LibraryMachine DirectoryGlossaryMarketplaceThe Gauge ↗ContactMain site ↗
Reference › Glossary › G-Code
Definition

G-Code

What is G-Code?

G-code is the standard programming language that tells a CNC machine what to do — where to move, how fast, when to turn the spindle or coolant on, and which tool to use. Each line is a command; 'G' words control motion (like G00 rapid, G01 feed, G02/G03 arcs) and 'M' words control machine functions (M03 spindle on, M06 tool change). It's usually generated by CAM software from a 3D model, then edited at the machine.

Every CNC control reads a dialect of G-code, though details vary between Fanuc, Haas, Siemens and others. Conversational programming is an easier, menu-driven alternative that generates G-code behind the scenes. See conversational and CNC control.

Also known as

gcodeG codeNC code

Related terms

Conversational Programming
Programming
CNC Control
Controls
CAM
Computer-Aided Manufacturing
Canned Cycle
Programming

What's your machine worth?

Get a real number from a Machine Blue Book specialist — free, no obligation.

Or email info@themachinebluebook.com. Only a response to this request unless you separately opt in. Privacy · Terms.