M106 - Set Fan Speed

thermal Turn on the fan and set its speed EXTRA_FAN_SPEED

Turn on one of the fans and set its speed. If no fan index is given, the print cooling fan is selected. The fan speed applies to the next block added to the planner, so it will not take effect until previous moves in the planner are done. Under manual control with an idle machine, M106 will change the fan speed immediately.


M106 [P<index>] [S<speed>] [T<secondary>]

Argument Description

Fan index




Secondary speed. Added in Marlin 1.1.7. (Requires EXTRA_FAN_SPEED)

  • M106 P<fan> T3-255 sets a secondary speed for .'
  • M106 P<fan> T2 uses the set secondary speed.’
  • M106 P<fan> T1 restores the previous fan speed.’


M106 with no speed sets the fan to full speed.

Turn off fans with M107.