Skip to content

G-code

G-code flavors

The fourteen controller dialects Dusty writes — GRBL, grblHAL, FluidNC, Smoothieware, Marlin, Duet, LinuxCNC, Mach3, MASSO and more — and how each one changes tools.

The flavor is the controller’s dialect, chosen in the machine settings. It sets the extension, the comments, the way to change tools, the dwell unit and the default blocks.

FlavorTool changeExtensionGood to know
GRBL 1.1M0 pause, after retract and spindle stop.nc3018-type desktop CNC.
GRBL M3M0 pause.ncOlder variant without M4.
grblHALM6 T.ncManual or automatic change, depending on the controller.
GRBL-STMM0 pause.ncGRBL ported to STM32 boards.
FluidNCM0 pause without a configured changer.ncGRBL-compatible ESP32 boards.
SmoothiewareSuspend (M600).gcodeNo M4; ; comments.
Marlin (Snapmaker)M0 pause with an on-screen message.gcodeMillimeters only; never M30; arcs written as segments.
Duet / RepRapFirmwareMessage box (M291).gcode; comments.
LinuxCNCT M6.ngcFour decimals.
Mach3 / Mach4T M6.tap
UCCNCT M6.ncLike Mach3.
MASSOT M6.ncDwells in milliseconds.
CentroidT M6.nc; comments.
Generic (RS-274)T M6.ncThe most common G-code, to adapt with the blocks.

Dusty drives the GRBL family of controllers directly (GRBL 1.1, grblHAL, FluidNC and their variants). For the others, save the G-code and send it with the controller’s software or SD card.

This manual is also built into Dusty: press F1, or open the Help menu, to read the topic for what you are doing. A mistake, a missing answer? Tell us

Try it in Dusty, for free.

Free CNC milling software: design, toolpaths and machine control. Mac, iPad, iPhone, Windows and Linux.