Fix G1/G0 with the R1 qualifier when activated by G-Code
-
Test case: Make a print g-code file. At every layer change insert the following two bits of code:
M98 Ppause.g
M98 Presume.gDuring the first layer, manually pause the print with the button. Resume printing and eventually the nozzle will start colliding with the part.
I've studied the behavior and I think that the problem is coming from the stored value for the last printed coordinate. When activating the pause manually with the pause button, this value is stored. When activating the pause through an M98 command, the value is not overwritten. The printer will instead reference the last manually dictated pause location.
-
@punamenon, that's a very unusual thing to do! If you want to pause a print in GCode, use M226. You will need to resume it manually.
You could fix your example by using a G60 command before the call to pause.g, see https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_G60_Save_current_position_to_slot.
-
@dc42 THANK YOU!!! This was the final piece of the puzzle that I needed to get the project working.
Octolapse style timelapse videos on a DSLR camera triggered wirelessly by the DUET Wi-Fi: https://youtu.be/CwHVQ81GfXw