Skip to content

Instantly share code, notes, and snippets.

@der-pw
der-pw / macro_M106.cfg
Last active February 3, 2024 08:43
extended M106 Macro
[gcode_macro M106]
description: Custom fan control feature that allows slicers like Orca or S3D to adopt bambu lab-specific auxiliary fan control to define the speed of the auxiliary cooling fan, or exhaust fan
rename_existing: M106.1
gcode:
## Original macro can be found somewhere in the Orca Discord. Thank you, dude!
## this has some changes, so the order of the parameters S and P does not matter and the fan control value is specified as float 0.0 - 1.0
## Define the device names of the controlled fans here. If you're not running a specific type of fan, remove it and the macro will have no effect
## Define the mapping between the bambu lab fans and the fan_generic fans defined