» –> <img src=“/_mediaexternal/https.cdn.comsol.com.wordpress.2016.12.extruder.of.a.3d.printer.head.png” class=“pull-right” undefined> </html>

G10 means “retract the filament from the hotend using the extruder”

You need to configure the length to retract in your extruder module's configuration by setting the Retract_length parameter.

By default, most slicing programs will use G1 commands to retract, but this is the more modern way of doing it.

G10's evil twin is G11, which means “unretract the filament from the hotend using the extruder”.


G10 means “retract” for 3D printers, but it also means other things for CNC mills.

This conflict is because the Reprap project is stupid and chose it's Gcode without any consideration for the Gcode standard that had existed for decades, and this despite the fact that the real G10 could have been useful for 3D printers.

Smoothie supports both formats : if you use G10 without parameters it will do the 3D printer thing, and if you use it with parameters it will do the CNC mill thing.

» –> <img src=“/_mediaexternal/https.imgs.xkcd.com.comics.standards.png” undefined> </html>


The command is used as such :



No parameters

Further reading

These resources are used as references for Gcode :