Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Calculating Tool Offset - CNC

    CNC
    2
    3
    361
    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.
    • jay_s_uk
      jay_s_uk last edited by

      I use RRF3 to control a CNC router that I've built (printNC) and I've recently purchased a setting probe.
      The probe allows me to find the edges of a workpiece as well as the top of the workpiece. I also have a CNC touch plate https://www.amazon.co.uk/gp/product/B08CC752D6/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1

      What I'm looking to do with probe the top of the workpiece with the setting probe and using the touch plate to calculate the offset for each tool.
      So far, I have a macro setup which probes the top of the workpiece, the spoil board and the top of the touch plate and another macro to probe the top of the touch plate with the cutting tool fitted. Each coordinate is saved into a workpiece coordinate using G10 L2 PX.

      My question is, how do I recall those workpiece coordinates to allow a simple calculation to be carried out? Are they stored in the object model? Is there a gcode I can use to get them?

      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

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

        There are two ways to use a Z probe to set the Z offset of a tool:

        1. Use G30 S-2. This has been implemented for some time.

        2. In RRF 3.2beta you can query sensors.probes[n].lastStopHeight and then use the result to calculate a new G10 Z parameter. I can't remember whether lastStopHeight is in 3.2beta1 or whether I added it subsequently, but the whatsnew file should mention it if it is in beta1.

        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

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

          PS - you can also recall the workplace coordinates, you will find them within move.axes[n].

          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 1
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA