thinkyhead

M106 - Set Fan Speed

thermal Turn on fan and set speed EXTRA_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.

With LASER_SYNCHRONOUS_M106_M107 M106 will turn on the laser.

Usage

M106 [I<index>] [P<index>] [S<speed>] [T<1|2|3-255>]

Parameters

[I<index>]
2.0.6

Material preset index. Overrides S.

    [P<index>]

    Fan index

      [S<speed>]

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

        [T<1|2|3-255>]
        1.1.7
        EXTRA_FAN_SPEED

        Secondary speed for the given fan.

        • T1:

          Use the Secondary Speed set for the given fan.

        • T2:

          After T1 Restore the speed for the given fan.

        • T3-255:

          Set a Secondary Speed for the given fan.

        Examples

        Turn on the fan at 200/255 DC

        M106 S200

        Set the Secondary Speed for Fan 1 to 128

        M106 P1 T128

        Use the Secondary Speed that was set for Fan 1

        M106 P1 T1

        Restore the previous fan speed

        M106 P1 T2