M106 - Set Fan Speed

Description

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.

Notes

M106 with no speed sets the fan to full speed.

Turn off fans with M107.

Parameters

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

Fan index

[S<speed>]

Speed, from 0 to 255. S255 provides 100% duty cycle; S128 produces 50%.

Examples

Turn on the fan at 200/255 DC

M106 S200