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

    Probing tool offset in the X-Y plane

    Scheduled Pinned Locked Moved
    My Duet controlled machine
    3
    7
    715
    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.
    • nraynaudundefined
      nraynaud
      last edited by

      I am working on a tool changer, I was thinking of probing the tool position by touching the sides of a ring or a cylinder mounted on a piezo sensor. Is there a command for that, and if not, do you have an idea if I can cobble something?
      In 3d printing I can't really use the tool radius because the head is conical.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Yes the M585 command can do that.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • nraynaudundefined
          nraynaud
          last edited by

          Thanks,
          I don't see how to probe a tool whose radius is unknown with M585 can you explain a bit more?

          I would like to touch once on the left of the cylinder, then touch on the right, and deduce the tool center is the average of both values.

          timcurtis67undefined 1 Reply Last reply Reply Quote 0
          • timcurtis67undefined
            timcurtis67 @nraynaud
            last edited by

            @nraynaud Are you using a hollow cylinder so you would be touching on the inside instead of the outside of a solid cylinder? If so then I think you want to use M675 instead. It will find the center of 2 touch points along an axis. Just run it in X direction and then the Y direction to find the center of the cylinder.

            I would recommend running it in the X axis again after locating the center in Y.

            See https://duet3d.dozuki.com/Wiki/Gcode#Section_M675_Find_center_of_cavity

            1 Reply Last reply Reply Quote 0
            • nraynaudundefined
              nraynaud
              last edited by

              Thanks, that could work. I'll google to see if someone has done it before, I don't immediately see how M585 works with that.

              1 Reply Last reply Reply Quote 0
              • nraynaudundefined
                nraynaud
                last edited by nraynaud

                I might need some baby sitting here please. Let's only talk about the X axis.

                Let's say by convention Tool 1 is golden, and its offsets are 0 by convention (I am envisioning a steel ball at the end of a rod). All other tools have their offset defined by difference to tool1.

                I would load tool 1, and go sense the center of the ring with M675 I would need to save this value somewhere.

                I would load tool2, the unknown tool, place it inside the ring by jogging and go probe the ring with M675. The current value on the machine minus the saved value would be tool2 offset (to be set by G10 L1 ?).

                How do I save a position? how can I compute the difference and send it to G10?

                I would be ready to do crazy stuff in javascript if need be.

                Thanks.

                timcurtis67undefined 1 Reply Last reply Reply Quote 0
                • timcurtis67undefined
                  timcurtis67 @nraynaud
                  last edited by

                  @nraynaud Once the Duet firmware supports variables and math/logic conditions then you will be able to make the tool offset routine automatic.

                  For now you will have to write down the centerline differences from tool 1 to any other tools and then enter those values in with G10 like you discribed.

                  I myself am waiting patently for the new condition statements and variables to be implemented. They will make tool offsets a breeze then. But I'm sure dc42 is extremely busy with firmware bugs/updates, and the new Duet3 stuff.

                  It's truly amazing how fast the Duet team progresses these boards and firmware. I'm very grateful for all of there hard work.

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