3D printer G-code · Marlin and Klipper

M220: Speed factor (Marlin & Klipper)

Speed factor — Multiplies all feed rates. Same as turning the speed knob on the display.

By cnccode · Updated
On this page
  1. What does M220 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More print control commands
  7. Frequently asked questions
PropertyValue
CommandM220
FunctionSpeed factor
FirmwareMarlin and Klipper
GroupPrint control
SyntaxM220 S<percent>

What does M220 do?

Multiplies all feed rates. Same as turning the speed knob on the display.

Parameters

ParameterMeaning
SSpeed in percent, 100 = normal

Example

G-code
M220 S80 ; 80 % speed for the first layers

Tips from practice

  • Slowing down the whole print does not fix a single bad feature; slow that feature in the slicer.

The command works in Marlin and Klipper. Options can differ: Klipper accepts fewer parameters for some M-codes and ignores codes it does not know with an "Unknown command" error.

More print control commands

CommandFunctionFirmware
M600Filament changeMarlin
M412Filament runout sensorMarlin
M413Power-loss recoveryMarlin
M84Disable motors (M84 / M18)Marlin and Klipper
M400Finish movesMarlin and Klipper
M112Emergency stopMarlin and Klipper
M25Pause SD print (M25 / M24)Marlin
EXCLUDE_OBJECTCancel one objectKlipper
PAUSEPause, resume, cancelKlipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does M220 do on a 3D printer?
M220 is speed factor. Multiplies all feed rates. Same as turning the speed knob on the display.
Does M220 work in Klipper and Marlin?
Yes, both firmwares understand M220.
Was this page helpful?