G-code

The programming language used to control CNC machines and 3D printers — tells the machine where to move.

Definition

G-code is a numerical control programming language used to control CNC machines, 3D printers, and other automated manufacturing equipment. Commands start with 'G' (movement), 'M' (machine functions), or other letters. For example, G1 X10 Y20 F1000 means 'move linearly to X=10 Y=20 at feed rate 1000mm/min'. G-code is typically generated by CAM software (for CNC) or slicer software (for 3D printing).

  • Also called: NC Code, Numerical Control Code

Why it matters

G-code is the universal language of automated manufacturing. Understanding it lets you troubleshoot, optimize, and customize machine operations.

Key applications

  • CNC machining
  • 3D printing
  • Laser cutting
  • Plasma cutting
  • Robotic control

Related

  • Cnc routers
  • Cnc mills
  • 3d printers
  • CAM
  • Slicer
  • Post Processor
  • Feed Rate

This website requires JavaScript to function properly. Please enable JavaScript to browse our manufacturing equipment catalog.