Basic Information:
Printer Model: Upgraded Ender 3 Pro
MCU / Printerboard: SKR Mini E3 V3
Host / SBC BIQU Pi V1.2
klippy.log
Describe your issue:
I recently switched to Klipper from Marlin and everything works great. There is one thing I would like to be able to do but with my lack of experience in writing macros I need some help.
I’m using the BTT Power Relay V1.2 to shutdown the printer when it is finished. I found a set of macros that accomplish this. When I was running Marlin and a BTT TFT35 E3 V3 and the shutdown process started it would prompt you with the option to shutdown IMMEDIATE or CANCEL. If you didn’t respond by the time the hotend cooled down to the specified it would go ahead and turn off the printer. Is there any way simulate this within a Klipper macro? I just want the option to abort the shutdown process so I can print something else. I use the DO_SHUTDOWN macro in my ending gcode. Here are the macros I have so far:
[output_pin power_detect]
Pull the pin initially high after starting Klipper
pin: PC13
value: 1
shutdown_value: 0
[gcode_macro POWER_ON]
description: Turn on the printer via the relay
gcode:
SET_PIN PIN=power_detect VALUE=1
[gcode_macro POWER_OFF]
description: Turn off the printer via the relay
gcode:
{ action_respond_info(‘Shutting down now’) }
SET_PIN PIN=power_detect VALUE=0
[gcode_macro DO_SHUTDOWN]
description: Turn off all heaters and cut power once below 50C
gcode:
TURN_OFF_HEATERS
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM=50
POWER_OFF
…