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

What is a 'tool' in CNC according to RepRap in CNC world?

Scheduled Pinned Locked Moved
CNC
3
5
370
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
    TQKez 0
    last edited by 13 Jul 2022, 00:04

    So I've noticed that most of the post programs seem to assign different end mills to different 'tools' T1, T2 etc.
    But in the config a tool is not a cutter, but the spindle itself.

    This obviously causes errors about tools not being defined.

    So what is the correct way to deal with this?

    Am I supposed to define as many tools as I can ever imagine needing to change all with the same definition?

    ; CNC Mode
    M950 R0 C"fan0" L24100 ; Create spindle index 0, with PWM pin on fan0 and 24000 RPM achieved at full PWM
    M563 P1 S"Spindle T1" R0 ; Create tool 1 with spindle 0 and call it "Spindle T1"
    M563 P2 S"Spindle T2" R0 ; Create tool 2 with spindle 0 and call it "Spindle T2"
    M563 P3 S"Spindle T3" R0 ; Create tool 3 with spindle 0 and call it "Spindle T3"
    ...
    ...
    M453
    undefined 1 Reply Last reply 13 Jul 2022, 11:08 Reply Quote 1
    • undefined
      droftarts administrators @TQKez 0
      last edited by 13 Jul 2022, 11:08

      @tqkez-0 You define 'spindles' with M950, and you have one defined already. RRF 3.3 and later allows up to 4 spindles. This is separate from 'tools'. You can see it in the spindle and tool comments; M950 creates spindle 0, while M563 creates each tool using spindle 0.

      By defining 'tools' which use the same spindle, RRF can take control of the tool change process when a different tool is requested. You add the relevant code to the tool change macros to halt the machine, notify the user that a different tool is required, and set the tool length, on each tool change. If you had auto toolchanger, it would do this automatically without user intervention (eg this would be nice). For a more in-depth explanation of what happens in a tool change, see https://docs.duet3d.com/User_manual/Tuning/Tool_changing (with the obvious bias towards 3D printer tool changes rather than CNC tool changes, sorry!)

      Unless you are actually changing 'spindles' (ie the motor that drives the endmill), it would be clearer to name your tools with the tool that it expects, ie 'T1 endmill 8mm roughing', T2 6mm ball nose', etc. Usually in the gcode generator you can define the mill type and tool number for each process.

      The alternative is to set the Gcode generator to pause when a different mill/tool is needed, but not use tool numbers (you can usually set this by selecting 'manual tool change' or something similar), and it can usually send a message as to what actual mill/tool it wants. Then you only have one tool defined. But you still want it to check the tool offset/length before it starts again, so you might want to set it to check that each time before resuming.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      1 Reply Last reply Reply Quote 1
      • undefined
        Nightowl
        last edited by Nightowl 14 Jul 2022, 07:44

        What a good question and a really helpful reply.

        Perhaps the PTB would/could provide a little more information for CNC-specific users with their guidance documents and examples, please? I'm sure more CNC users are joining the Duet ranks as these boards are pretty incredible!

        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
        I'm still on my learning curve, so take everything I say with caution!

        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

        undefined 1 Reply Last reply 14 Jul 2022, 09:22 Reply Quote 0
        • undefined
          droftarts administrators @Nightowl
          last edited by 14 Jul 2022, 09:22

          @nightowl thanks, I’ll add some of what I wrote to the ‘configuring RRF for CNC’ page. If anyone has examples of how they set up their Gcode generation software, post processors and tool change macros, that would be useful too. Note that I’m not actually a CNC user, at least not yet!

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          undefined 1 Reply Last reply 15 Jul 2022, 07:47 Reply Quote 0
          • undefined
            Nightowl @droftarts
            last edited by 15 Jul 2022, 07:47

            @droftarts said in What is a 'tool' in CNC according to RepRap in CNC world?:

            I’m not actually a CNC user, at least not yet!

            Give it time! We'll bring you over to the dark side and you'll never look back - if you like lots of noise, woodchips and sawdust everywhere 👍

            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
            I'm still on my learning curve, so take everything I say with caution!

            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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