Notifications
Clear all

Cancel print button  

  RSS
PreZ
 PreZ
(@prez)
Active Member
Cancel print button

I am trying to use one of the GPIO inputs as a STOP button.

Right now, I have the macro send an M112, which is the emergency stop, it crashes the printer (on purpose).

But I was hoping to do something a little more graceful.

I could have the macro perform all the 'cancelled print' steps (copied from octoprint), but that won't actually tell the printer to stop running a print from the SD card.

 

Is there some kind of gcode I can use that will tell the printer to stop the print?  ie. read no more instructions from the gcode file on the sdcard.

Signaling octoprint to cancel is dead easy (I could just emit something like M118 //action:cancel) - but I want to preserve the ability to both print from the SD card (ie. via. prusa connect) AND use octoprint.  And have my STOP button work for both, without needing to do an emergency stop.

 

Preston

I wanted to change the world, but God wouldn't give me the source code.

Posted : 28/12/2024 4:01 pm
Share: