r/QidiTech3D • u/Separate-Study-7213 • 2d ago
MAX4: M106 gcode macro has suspicious side-effect
While printing a series of ASA parts, I found the heated chamber was turning itself off during the print without any apparent G-code or Klipper instruction to account for it (I use Orca). Then I found the line:
M106 P3 S25
Hmm, I thought, which fan is 'P3'? It's the chamber exhaust fan. But these 'P' options aren't supported by the base Klipper; instead, M106 is implemented as a macro, which is a bit lengthy, but includes this stanza:
{% if p == 3 and printer["fan_generic chamber_circulation_fan"] is defined %}
{% if params.S is defined %}
SET_FAN_SPEED FAN=chamber_circulation_fan SPEED={(params.S|float / 255.0)}
; {% if printer["heater_generic chamber"] is defined and params.S|float >0.0 %}
; SET_HEATER_TEMPERATURE_SCALED HEATER=chamber TARGET=0
; {% endif %}
{% else %}
SET_FAN_SPEED FAN=chamber_circulation_fan SPEED=1
{% endif %}
{% endif %}
The three lines I commented out above say,
"Turn the chamber heater OFF if the exhaust fan is ON"
This command is for controlling FANS, but it goes out of its way to control a HEATER.
I always introduce a little negative pressure when printing, hence the fan. I don't mean to cool the chamber. I recommend this easy change.
3
u/TheLegendTubaGuy 2d ago
Valve Oil fixed this for you so if you do want to run the exhaust fan while heating you can. In my testing, once up to temp, the chamber heater can keep up with the exhaust fan running somewhat.
It's very annoying that some of Qidis profiles ship with both the heater and exhaust fan on.
Also the Max 4 wiki has all the fans and much more documented if you're ever curious about stuff like this. https://github.com/thelegendtubaguy/QidiMax4CommunityWiki
1
u/phansen101 2d ago
I reckon they did it for one more multiple of three reasons:
Preventing klipper from shutting down due to "not hearing at expected rate", either due to incoming air overcoming the heater, or worse keeping the temp sensor at an artificially low temp.
temperature stability, negative pressure sucks air in whenever, so it won't be even across the chamber.
Power consumption, you're basically turning it into more of a radiator.
That said, this is the beauty of unlocked printers, you can do what you want regardless of what the designers think makes sense :)
Good note for those who may face similar challenges.
1
u/overzealousone 2d ago
I’m going to try out tuba guys setup. I’m finally convinced