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

Help with a tool setting macro

Scheduled Pinned Locked Moved
CNC
3
4
404
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.
  • undefined
    rilot
    last edited by 14 Oct 2021, 11:35

    Hi all
    I'm using a Duet2 to drive a small CNC machine (PrintNC) and everything is good. I'm looking to make toolchanges easier and so have added a toolsetter. This is alongside my current XYZ work 0 finder.
    I'm struggling to get my head around how to make a macro that will update tool lengths.

    My Z homes to Z max

    Ideally my workflow will be this:

    Home machine
    Jog machine above XYZ probe
    Run my XYZ find 0 macro - which works fine and sets work 0 in WCS G54 system 1

    Run tool length macro which does the following:
    Move machine to the tool setter
    Probe against the tool setter to establish my baseline tool length - which I'm assuming will be 0 offset for the first tool

    Do some cutting

    Tool change
    Probe against the tool setter with the new tool to establish the delta between my original tool length and this new tool
    Apply offset to WCS so that Z=0 is in the same place as it was initially

    Any help greatly appreciated.

    undefined undefined 2 Replies Last reply 14 Oct 2021, 13:45 Reply Quote 0
    • undefined
      T3P3Tony administrators @rilot
      last edited by 14 Oct 2021, 13:45

      @rilot I hope someone more familiar with CNC will jump in with some advice. My initial thought is leaving the WCS as they are and updating the tool offset. That way the tool offset for the first tool does not need to be 0 (maybe your tool setter is not exactly aligned in Z with your XYZ work 0 finder)...

      thinking about it a bit more, In that case you could probably use a G30 probe to the tool setter which would set the end of the tool to whatever the z probe offeset was configured to, and that would need to be just the X difference between the WCS setter and the tool setter.

      I might not be right about this though.

      www.duet3d.com

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators @rilot
        last edited by 14 Oct 2021, 13:45

        @rilot I presume the "tool setter" is some sort of switch. You can configure that as a secondary Z probe. You don't need to use WCS offsets to set the tool Z offset, you can use the G30 S2 command to set the tool offset by probing.

        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

        undefined 1 Reply Last reply 15 Oct 2021, 08:25 Reply Quote 0
        • undefined
          rilot @dc42
          last edited by 15 Oct 2021, 08:25

          @dc42 Yes, it's essentially a switch wired to an endstop.
          Will look at G30 but I'm guessing that I need to run the G30 on my first tool before probing the XYZ=0 of the stock.
          Thanks. Will have a play later.

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