How to run a macro after resume.g
-
Does anyone know how I can run a macro that is executed directly after running resume.g?
Resume.g returns the tool to the position it was in prior to pausing but I need to run a macro after the tool returns to this location and starts printing again.
-
@code7 why not calling the macro at the end of resume.g?
-
@cosmowave said in How to run a macro after resume.g:
why not calling the macro at the end of resume.g?
Adding the macro in the resume.g runs it prior to the tool returning to its paused position.
-
@code7 said in How to run a macro after resume.g:
@cosmowave said in How to run a macro after resume.g:
why not calling the macro at the end of resume.g?
Adding the macro in the resume.g runs it prior to the tool returning to its paused position.
Have you tried adding a M400 command after the last command in resume.g?
And then adding any additional commands after that?
Frederick
-
@code7 said in How to run a macro after resume.g:
Adding the macro in the resume.g runs it prior to the tool returning to its paused position.
It shouldn't do. The command to move to the last print position should be a G1 R1...... So if you add your commands or M98 macro call after this line, it ought to work. But you will probably need to add M400 or an appropriate G4 command to wait for any moves to complete. So something like G1 R1 ...... then M400 (or G4 Pn) then M98......(or a bunch of other commands) ought to work.
EDIT. @fcwilt beat me to it while I was typing.
-
That was a simple fix. Thanks guys.