Sanity check - tool change macros and restore points
-
Up until now, I haven't used tool change macros but used a python script to post process the gcode file. It's kind of historic because we didn't always have the P and R parameters. Now that we do, it's time I bought myself up to date and changed my behaviour
What I want to do is use tfree to retract, tpre to move the print head to the purge position, and tpost to wait for the temperatures to settle, run a purge and wipe macro, then move the print head back to where it was before the tool change process started.
But reading G60 https://duet3d.dozuki.com/Wiki/G60 I'm a little confused about restore points - the documentation isn't clear to me. I had a feeling that slot 0 was used as the restore point prior to running macros but this isn't documented so I could be wrong. However, the documentation does state that at the start of a tool change, the coordinates are saved to slot 2.
Because the print head will be moved as part of tpre, but restored as part of tpost, I'm guessing that I should use the command G1 R2 X0 Y0 Z0 as the last lines of my tpost to get the print head back to where it was before the tool chnage process started. Is that a good guess?
-
@deckingman thats what i have at the end of my toolchange files
-