Bed fans off during prints without a heated chamber, remove unused bed PID
With the chamber open the bed fans only blow room air past the bed. PRINT_WARMUP sets print_fans_off for CHAMBER 30 or less, _PRINT_CLEANUP clears it. Chamber prints, the cooldown and heating the bed outside a print are unchanged. The PID values in PRINT_WARMUP never took effect: the SET_HEATER_TEMPERATURE override in bed_fans.cfg only passes on the target. The bed keeps its config values; the misleading console messages are gone. Tested with rendered macros only, not yet on the printer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
99b7109b5b
commit
1dcbc50bf6
3 files changed
+24
-17
No files matched your search
@@ -40,14 +40,12 @@ gcode:
|
||||
SKEW_PROFILE LOAD=Califlower
|
||||
M106 S0
|
||||
|
||||
# Bed fans only help to heat a closed chamber: off for this print without
|
||||
# one (heating/bed_fans.cfg). Set before the bed target, which reads it.
|
||||
SET_GCODE_VARIABLE MACRO=_BEDFANVARS VARIABLE=print_fans_off VALUE={target_chamber <= 30}
|
||||
|
||||
# Bed first, so it heats during the rest of the warmup
|
||||
{% if target_bed < 60 %}
|
||||
RESPOND MSG="Using PID for <60°C bed"
|
||||
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={target_bed} PID_KP=33.606 PID_KI=0.694 PID_KD=407.058
|
||||
{% else %}
|
||||
RESPOND MSG="Using PID for ≥60°C bed"
|
||||
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={target_bed} pid_Kp=46.843 pid_Ki=2.002 pid_Kd=274.034
|
||||
{% endif %}
|
||||
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={target_bed}
|
||||
|
||||
# Only to get the toolhead over the bed for the soak; the Z that counts
|
||||
# is the contact calibration in PRINT_START on the soaked bed
|
||||
@@ -347,6 +345,7 @@ description: Heaters (incl. chamber heater) and part fan off, flow back to 100%,
|
||||
gcode:
|
||||
_GUARD_OFF ; a print start that failed while it was armed
|
||||
_BED_CHECK_RESET ; cancelled while the bed check had it paused
|
||||
SET_GCODE_VARIABLE MACRO=_BEDFANVARS VARIABLE=print_fans_off VALUE=False
|
||||
TURN_OFF_HEATERS
|
||||
iHEATER_OFF ; stops the chamber heater control loop too
|
||||
M107
|
||||
|
||||
Reference in new issue
Block a user