Using bambu studio to control a voron part cooling fan problems

I am using bambu studio to slice files for my voron. Everything works great except one thing. The parts cooling fan seems to go by what the auxillary cooling fan settings are in filament setup rather than the parts cooling settings. Anyone have any ideas?

I am having the same issue. It sends M106 P2 command which Klipper treats the same as P1 so it overrides the part cooling fan.

I fixed the issue by creating the following macro to overide the M106 command:

[gcode_macro M106]
rename_existing: M106.1
gcode:
  {% set fan_temp = params.S|default(0)|int %}
  {% set fan_p = params.P|default(0)|int %}

  {% if fan_p == 0%}  
    M106.1 S{fan_temp}
  {% endif %}
1 Like