jschuh / klipper-macros

A collection of useful macros for the Klipper 3D printer firmware
GNU General Public License v3.0
921 stars 167 forks source link

Non Blocking Heating Up #204

Closed jzhvymetal closed 9 months ago

jzhvymetal commented 9 months ago

Love your modification but I would like to cancel a print at any time. Is there any way you can add the following non-blocking heatup found here. It will pause the print until the HEAT_SOAK finishes. Since it does not use a non-blocking Gcode to heatup it can be canceled at anytime. Note each HEAT_SOAK requires to be executed in seperate macros as each need to return to give control back to the printer.

https://github.com/garethky/klipper-voron2.4-config/blob/mainline/printer_data/config/heatsoak.readme.md https://github.com/garethky/klipper-voron2.4-config/blob/mainline/printer_data/config/heatsoak.cfg

Here is the code I was using which allowed canceling the print at anytime including heatup

HEAT_SOAK HEATER='heater_bed' TARGET={TEMP} SOAKER='heater_bed' RATE=2 RATE_SMOOTH=10 HEAT_SOAK HEATER='extruder' TARGET={TEMP} SOAKER='extruder' RATE=2 RATE_SMOOTH=10

To cancel any HEAT_SOAK the following can be excuted in the CANCEL_PRINT macro STOP_HEAT_SOAK