Skip to content

Commit

Permalink
for pause lower temp of filament
Browse files Browse the repository at this point in the history
  • Loading branch information
pellcorp committed Feb 8, 2025
1 parent 95ae495 commit a6b97e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion k1/start_end.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ variable_speed_hop: 15.0
variable_speed_move: 100.0
# do not change this, this handles cancel print
variable_user_cancel_macro: "_ON_CANCEL"
# on pause the idle timeout will be set to 5 seconds and will then cool the nozzle
variable_idle_timeout: 5
gcode:

[virtual_pins]
Expand All @@ -73,7 +75,10 @@ unretract_speed: 30
timeout: 3600
gcode:
{% if printer.pause_resume.is_paused %}
RESPOND TYPE=command MSG='Printer is paused, timeout bypassed'
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=idle_state VALUE=True
{% set preheat_nozzle_temp = printer["gcode_macro _START_END_PARAMS"].start_preheat_nozzle_temp %}
RESPOND TYPE=command MSG='Cooling nozzle to {preheat_nozzle_temp}c to prevent ooze'
M104 S{preheat_nozzle_temp}
{% else %}
RESPOND TYPE=command MSG='Timeout Reached - Turning off heaters and motors'

Expand Down
3 changes: 2 additions & 1 deletion k1/useful_macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ gcode:
description: Filament Change
gcode:
RESPOND TYPE=command MSG="Print paused for filament change!"
PAUSE
PAUSE RESTORE=0

_UNLOAD_FILAMENT
M106 P0 S0
M106 P2 S0
Expand Down

0 comments on commit a6b97e0

Please sign in to comment.