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

Duet controlling 4th axis

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
12
1.3k
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
    minim
    last edited by 5 Apr 2019, 19:19

    I have a cnc mill that have a Fanuc control system. I want to add a 4th axis to this but for now I want to control it with a stepper motor just for indexing. The machine can send a binary signal for let's say 10 degrees movement. Can the duet read a signal like this and control a closed loop stepper that have an external driver? I need a nema34 or maybe a nema 23 so I don't think the driver in duet is powerful enough.

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 5 Apr 2019, 19:40

      The Duet can control a Nema 23 motor if you choose one with an appropriate current rating. I test Duets at max current (2.4A) using Nema 23 motors rated at 2.8A. This is a good match. Running stepper motors at full rated current is not normally desirable, because they get very hot when you do that.

      RepRapFirmware on the Duet can control up to 9 axes. Normally you would include the additional axes as additional parameters in the GCode commands (any or all of U, V, W, A, B, C). You could use a M581 trigger to cause 10deg movement on receipt of a trigger signal, but you would have to be careful to keep it synchronised to the main GCode stream.

      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 5 Apr 2019, 21:25 Reply Quote 1
      • undefined
        minim @dc42
        last edited by 5 Apr 2019, 21:25

        @dc42 thank you for the info. I suspect that nema23 will have too low torque to hold when milling steel so that's why I'm looking at bigger 34 or a high amp 23 but I'll do some math and see if it will work with 23.. The "original" 4th for my machine usually run a 0,75kW servo like the rest of the machine but then again this is sitting on a worm gear with 90:1 reduction and I have to gear it down even further since 90:1 doesn't add up with full steps of the stepper motor and 360 degrees..

        I only need to control this one axis since the fanuc control does the rest. I need features like rigid tap where it sync spindle speed with movement among other thing that would be hard to do with the duet (I guess?). Also I'm not sure how the duet would handle encoder signals and servo control? The control system is rock solid and industrial but it's a pita to change the ladder since it has to be done in dos and burned into two uv eproms. Would love a control system upgrade but I'm sure it will cost more than I would like it to cost..

        1 Reply Last reply Reply Quote 0
        • undefined
          minim
          last edited by minim 17 Apr 2019, 10:50

          Is it worth going for one of these closed loop variants instead of running it directly off a duet? Oh and how do I configure the duet for cnc use? I want to use it just as a indexer so I don't need all the temperature and other stuff in the webui.

          https://www.ebay.com/itm/12NM-DSP-Closed-Loop-Stepper-Motor-Nema34-23-Hybrid-Servo-Driver-Power-Supply/122420276298?hash=item1c80d12c4aⓂmg92V7d7eazrnaYQYUe2g_Q

          undefined 1 Reply Last reply 17 Apr 2019, 14:45 Reply Quote 0
          • undefined
            dc42 administrators @minim
            last edited by 17 Apr 2019, 14:45

            @minim said in Duet controlling 4th axis:

            Is it worth going for one of these closed loop variants instead of running it directly off a duet?

            It may be, if you can afford it!

            Oh and how do I configure the duet for cnc use?

            https://duet3d.dozuki.com/Wiki/Configuring_RepRapFirmware_for_a_CNC_machine

            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 2 Replies Last reply 17 Apr 2019, 18:04 Reply Quote 0
            • undefined
              minim @dc42
              last edited by 17 Apr 2019, 18:04

              @dc42 good things. I started rewriting the DWC to be better suited for running just one axis (4th). Gotta love open source 😄

              1 Reply Last reply Reply Quote 0
              • undefined
                minim
                last edited by 24 Apr 2019, 21:14

                Cleaned out a lot of stuff that was not needed for running a rotary table. While doing this I saw that additional axes like the A axis I have removed here was parametrized so that it wouldn't show when it was not mapped. Why not include something like this for a cnc mode or modes in general so we could customize the web interface more?

                alt text

                1 Reply Last reply Reply Quote 0
                • undefined
                  minim @dc42
                  last edited by 25 Apr 2019, 22:37

                  @dc42 can the board handle it if I increase the current above the firmware limit of 2,4A? I could really use a beefy nema23 or 34 😛

                  undefined 1 Reply Last reply 26 Apr 2019, 12:13 Reply Quote 0
                  • undefined
                    wilriker @minim
                    last edited by 26 Apr 2019, 12:13

                    @minim said in Duet controlling 4th axis:

                    @dc42 can the board handle it if I increase the current above the firmware limit of 2,4A? I could really use a beefy nema23 or 34 😛

                    Currently the 2.4A are limited in firmware. So if you set it any higher in M906 will still cap it at 2.4A.

                    I would guess that if you recompile the firmware with a higher limit and some very aggressive cooling (of the backside of the board) it might handle more than 2.4A but also I am pretty sure that this will void the warranty. 😁

                    Manuel
                    Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                    with probably always latest firmware/DWC (incl. betas or self-compiled)
                    My Tool Collection

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators
                      last edited by 26 Apr 2019, 13:26

                      As @wilriker says, you can increase the firmware limit if you like but that will void the warranty.

                      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 26 Apr 2019, 20:37 Reply Quote 0
                      • undefined
                        minim @dc42
                        last edited by 26 Apr 2019, 20:37

                        @dc42 said in Duet controlling 4th axis:

                        As @wilriker says, you can increase the firmware limit if you like but that will void the warranty.

                        Yeah I assumed that. I'll sort out the firmware limit but I just wondered if the board could handle it. Have you experimented with how much it takes to make ? Since trinamic rates it higher the chip itself should handle it as long as I take care of the heat?

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          dc42 administrators
                          last edited by 26 Apr 2019, 22:17

                          Trinamic only rates the chip above about 2.4A peak for short durations. AFAIR the higher rating they give is for 6 full steps per second or higher.

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