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

    How to park the last tool?

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    2
    3
    216
    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.
    • Perttiundefined
      Pertti
      last edited by

      Hi !
      After finishing the job my Toolchanger moves the printhead to the left. Every time I start a new job I have to manually remove the (last) tool from the toolchanger and put it back in the dock.
      I put my hope to the meta commands.
      Logically there should exist a variable that tells the number of the last tool. Is it [state.currentTool ]? Or should I put a variable [set.lasttool=#] In the macro T# - Pick ?
      Then in Cura I can add the end gcode like
      [if lasttool=# then T# - Drop] for every tool of course.
      Maybe there is a smart solution somewhere i have not seen yet.
      And are there tutorials somewhere available?
      Thanks in advance.

      Board: Duet 2 WiFi (2WiFi)
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.1 (2022-06-01)

      Pertti
      “A winner is just a loser who tried one more time.”
      George M. Moore, Jr.

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

        @Pertti use T-1 in your end code. That will unload the current tool whatever it is

        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

        Perttiundefined 1 Reply Last reply Reply Quote 0
        • Perttiundefined
          Pertti @jay_s_uk
          last edited by

          @jay_s_uk said in How to park the last tool?:

          T-1

          It works. Thnks!

          Pertti
          “A winner is just a loser who tried one more time.”
          George M. Moore, Jr.

          1 Reply Last reply Reply Quote 2
          • dc42undefined dc42 marked this topic as a question
          • dc42undefined dc42 has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA