well where is the gcode script that the UM2 uses when you do that? i dont see how a single M code can make the printer retract, move up and to the side and sit there and wait, while hitting resume has it move back to its previous position and retract back into the nozzle and continue the print
tinkergnome 927
well where is the gcode script that the UM2 uses when you do that?
It's not a simple gcode script, it's a firmware function, start here:
https://github.com/Ultimaker/Ultimaker2Marlin/blob/master/Marlin/UltiLCD2_menu_print.cpp#L942
- 1 year later...
@tinkergnome, I am using Octoprint and when I pause a print the head stay still in the last position, and I really don't like it..
Is it possible to pause the printer in the same way in which the firmware does while printing with SD card and controlling using the printer menu directly?
I have tried to send M0 and M25 commands through octoprint, but with no success..
Many thanks in advance!
Emanuele
Since you are using OctoPrint, you can have that take the role of the firmware to do more than just pause execution of firmware. Instead of sending a gcode command to pause printing, you would send “@pause”. On the OctoPrint side of things, look in to pause and resume scripts.
Thanks a lot @ahoeben, I looked into it and found the suggested basic script.
It works but I still have a small issue..I have modified my Ultimaker 2+ with the Mark2 firmware and it now has 2 extruder. This created problem with the temperature target after pausing. The temperature drops and I can´t get it back to original target...any idea?
I will write in the dedicated forum as well but in case someone can help, it will be really appreciated!
thanks!!!
I don't see why the temperature would drop from just pausing. I don't know if OctoPrint can "capture" the target temperature before pausing in the same way as it can capture the positions (http://docs.octoprint.org/en/master/features/gcode_scripts.html#more-nifty-pause-and-resume)
apparently there is a way of capture the temperature before pausing, but then somehow it cools down the hotend and it must be heated up again, but I am struggling to get it done..
tinkergnome 927
i found an example snippet from Gina at the Octoprint forum (use of the "pause_temperature" variable in the resume script):
https://discourse.octoprint.org/t/writing-a-resume-gcode-script-using-last-temperature/774
Recommended Posts
Daid 306
M0 or M1 pauses the printer, this acts the same as pressing the "pause" button on the machine.
Link to post
Share on other sites