When I cancel a print in the Octoprint interface, the printer just stops where it's at. Where can I add GCODE so that cancelling a print does the following:
Retract the filament
Send a position command, for example, X0 Y180 Z180 (move printhead up and out of the way, move printbed forward)
Octoprint 1.1.0, Octopi 0.17.0, running on Raspberry Pi 3 Model B Plus Rev 1.3
I found this thread when I was looking for how to do this very thing. So I've added this under "After a job is cancelled:"
;Move Z to the top
G90
G210 Z
; disable motors
M84
;disable all heaters
{% snippet 'disable_hotends' %}
{% snippet 'disable_bed' %}
;disable fan
M106 S0
I'm using a Prusa Mk3.5, but I'm not sure the model matters. I'm seeing no results at all. I can't remember, but I think the last 7 lines of code (from ";disable motors") on were already there and that all I did was add the code to move the print head all the way up. I'm seeing no movement at all.
Is this from me using problematic GCode commands or could it be that I need to enable something else? is there something I can add to be sure the code is being executed, such as a way to print a message to the printer display or display a message on the OctoPrint page?