Execute Macro on Error

Basic Information:

Printer Model: Ender 3
MCU / Printerboard: skr e3v3

Is there a way to execute a macro when a error occurs that stops a print? I had a over extrusion error and the machine stopped but heat bed and extruder were still running. I want to run a macro to safe home and turn off all heaters if an error occurs.

https://www.klipper3d.org/Config_Reference.html#virtual_sdcard

[virtual_sdcard]
path:
#   The path of the local directory on the host machine to look for
#   g-code files. This is a read-only directory (sdcard file writes
#   are not supported). One may point this to OctoPrint's upload
#   directory (generally ~/.octoprint/uploads/ ). This parameter must
#   be provided.
#on_error_gcode:
#   A list of G-Code commands to execute when an error is reported.
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.