Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Sanity check - tool change macros and restore points

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    105
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • deckingmanundefined
      deckingman
      last edited by

      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?

      Ian
      https://somei3deas.wordpress.com/
      https://www.youtube.com/@deckingman

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @deckingman
        last edited by

        @deckingman thats what i have at the end of my toolchange files

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        deckingmanundefined 1 Reply Last reply Reply Quote 1
        • deckingmanundefined
          deckingman @jay_s_uk
          last edited by

          @jay_s_uk 👍

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA