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.
| Flavor | Tool change | Extension | Good to know |
|---|---|---|---|
| GRBL 1.1 | M0 pause, after retract and spindle stop | .nc | 3018-type desktop CNC. |
| GRBL M3 | M0 pause | .nc | Older variant without M4. |
| grblHAL | M6 T | .nc | Manual or automatic change, depending on the controller. |
| GRBL-STM | M0 pause | .nc | GRBL ported to STM32 boards. |
| FluidNC | M0 pause without a configured changer | .nc | GRBL-compatible ESP32 boards. |
| Smoothieware | Suspend (M600) | .gcode | No M4; ; comments. |
| Marlin (Snapmaker) | M0 pause with an on-screen message | .gcode | Millimeters only; never M30; arcs written as segments. |
| Duet / RepRapFirmware | Message box (M291) | .gcode | ; comments. |
| LinuxCNC | T M6 | .ngc | Four decimals. |
| Mach3 / Mach4 | T M6 | .tap | |
| UCCNC | T M6 | .nc | Like Mach3. |
| MASSO | T M6 | .nc | Dwells in milliseconds. |
| Centroid | T M6 | .nc | ; comments. |
| Generic (RS-274) | T M6 | .nc | The 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.