Skip to content

Commit

Permalink
don't do the cool down if target bed temp is above configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pellcorp committed Dec 26, 2024
1 parent 7b5cf6a commit 68d0651
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions k1/start_end.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ variable_carto_touch_retries: 20
variable_carto_touch_samples: 3
# where not using cartotouch what to heat nozzle to just before oozing
variable_start_preheat_nozzle_temp: 150
# whether to do cooldown routine in END_PRINT
variable_end_print_cool_down: False
variable_end_print_cool_down_nozzle_temp: 40.0
# if target bed temp is above this the cool down is skipped
variable_end_print_cool_down_max_bed_temp: 85.0
gcode:

[gcode_macro _CLIENT_VARIABLE]
Expand Down Expand Up @@ -162,9 +165,11 @@ gcode:
{% set enable_disable_filament_sensor = printer["gcode_macro _START_END_PARAMS"].enable_disable_filament_sensor %}
{% set end_print_cool_down = printer["gcode_macro _START_END_PARAMS"].end_print_cool_down %}
{% set end_print_cool_down_nozzle_temp = printer["gcode_macro _START_END_PARAMS"].end_print_cool_down_nozzle_temp|float %}
{% set end_print_cool_down_max_bed_temp = printer["gcode_macro _START_END_PARAMS"].end_print_cool_down_max_bed_temp|float %}
{% set current_bed_temp = printer.heater_bed.temperature %}

_CLIENT_RETRACT
{% if bed_warp_stabilisation %}
{% if not end_print_cool_down and bed_warp_stabilisation %}
RESPOND TYPE=command MSG='Heatbed waiting for next print'
M104 S0 # Turning off the nozzle
{% else %}
Expand All @@ -182,19 +187,35 @@ gcode:

M84 # motors off

{% if end_print_cool_down %}
SET_FAN_SPEED FAN=chamber SPEED=0
SET_FAN_SPEED FAN=auxiliary SPEED=1
SET_FAN_SPEED FAN=part SPEED=1
{% if end_print_cool_down and current_bed_temp < end_print_cool_down_max_bed_temp %}
RESPOND TYPE=command MSG='Waiting for nozzle temp to be below {end_print_cool_down_nozzle_temp}c'
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={end_print_cool_down_nozzle_temp}
SET_FAN_SPEED FAN=auxiliary SPEED=0
SET_FAN_SPEED FAN=part SPEED=0
UPDATE_DELAYED_GCODE ID=wait_for_end_print_cooldown DURATION=1
SET_FAN_SPEED FAN=chamber SPEED=0.6
SET_FAN_SPEED FAN=auxiliary SPEED=0.5
SET_FAN_SPEED FAN=part SPEED=0.7
{% else %}
TURN_OFF_FANS
{% endif %}


[delayed_gcode wait_for_end_print_cooldown]
gcode:
{% set end_print_cool_down_nozzle_temp = printer["gcode_macro _START_END_PARAMS"].end_print_cool_down_nozzle_temp|float %}
{% if printer.extruder.temperature <= end_print_cool_down_nozzle_temp %}
WAIT_TEMP_COOL_DOWN_END
{% else %}
UPDATE_DELAYED_GCODE ID=wait_for_end_print_cooldown DURATION=5
{% endif %}


[gcode_macro WAIT_TEMP_COOL_DOWN_END]
gcode:
UPDATE_DELAYED_GCODE ID=wait_temp DURATION=0
SET_FAN_SPEED FAN=auxiliary SPEED=0
SET_FAN_SPEED FAN=part SPEED=0
TURN_OFF_FANS


[gcode_macro _ON_PAUSE]
gcode:
{% if printer["gcode_macro _SAF_ON_PAUSE"] != null %}
Expand Down

0 comments on commit 68d0651

Please sign in to comment.