Open the-robo opened 2 years ago
It doesn't work that way. The "Abort" function is in the firmware and you can't do it in the gcode. Gcode is a static file that simply gets read line-by-line from beginning to end by the printer/processor. There is no way that the printer can be told "Wait...jump over to this section and run this code.". You can send commands via the USB while a print is running off the SD card. You would need to have a computer program to talk to the printer. Something like Octoprint or Pronterface might be able to do it. It won't be instantaneous though. Your commands would start at the back of the buffer queue which is usually about 8 commands.
I think you may have misunderstood. When the user clicks the abort button in Cura, printer stops and the is queue empty, then the "on" (after) abort custom G-code should run.
In my use case, I would like to move the print bed forward for removal and cleaning. I also move the z-axis up for nozzle inspections. Currently I have to do this manually every time.
On Fri, Sep 9, 2022, 7:18 PM GregValiant @.***> wrote:
It doesn't work that way. The "Abort" function is in the firmware and you can't do it in the gcode. Gcode is a static file that simply gets read line-by-line from beginning to end by the printer/processor. There is no way that the printer can be told "Wait...jump over to this section and run this code.". You can send commands via the USB while a print is running off the SD card. You would need to have a computer program to talk to the printer. Something like Octoprint or Pronterface might be able to do it. It won't be instantaneous though. Your commands would start at the back of the buffer queue which is usually about 8 commands.
— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Cura/issues/13253#issuecomment-1242596895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYL54R3GAQPHFPEZ4Y4IB3V5PVYXANCNFSM6AAAAAAQJADFII . You are receiving this because you authored the thread.Message ID: @.***>
So you are talking about printing via the USB? I did assume you meant the LCD button.
Is your feature request related to a problem?
I'm always frustrated when I click the Abort button and the bed and hot end do not move where I would like them to.
Describe the solution you'd like
In Machine Settings currently there is a Start G-code and End G-code box. There should be an Abort G-code box. When a print is aborted via the Abort button, the G-code in this box (if present) should override the default G-code and run for the user.
Describe alternatives you've considered
The alternatives I have considered are, none really.
Affected users and/or printers
It will effect all users and all printers.
Additional information & file uploads
No response