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

    Spindle nema 34 duet 2 wifi

    Scheduled Pinned Locked Moved
    CNC
    10
    45
    2.1k
    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.
    • Nightowlundefined
      Nightowl @droftarts
      last edited by

      @droftarts said in Spindle nema 34 duet 2 wifi:

      @paolozampini1973 I’d think you want a proper spindle for milling and drilling, not a NEMA17, even at 3:1. Most operations would be at high rpm that stepper motors are just not designed for. You would have to use a second Gcode stream to control it, otherwise the spindle would turn at the feedrate of the current move, and be coordinated with it.

      Ian

      For sure. Much easier to configure and control, too.

      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 0
      • droftartsundefined
        droftarts administrators
        last edited by

        @paolozampini1973 in your original question, is the NEMA34 for the main lathe spindle/chuck? Because you will have the same problem there; coordinating the stepper motor for continuous rotation for normal lathe operations. I don’t know if there is a stepper or servo controller than you can switch from step control to continuous rotation.

        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

        o_lampeundefined 1 Reply Last reply Reply Quote 0
        • o_lampeundefined
          o_lampe @droftarts
          last edited by o_lampe

          @droftarts
          If I understood him right, the NEMA34 chuck is for thread cutting. One of the rare usecases where a stepper is superiour to a spindle motor; he don't need a gearbox with the right ratio to match spindle RPM with thread pitch.

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @o_lampe
            last edited by

            @o_lampe You're right, if it's just for thread cutting then a stepper would work well. For more general lathe use, either an indexing DC motor, or a servo motor with step and continuous operation (if such a thing exists) would be better.

            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

            CNCModellerundefined 1 Reply Last reply Reply Quote 0
            • CNCModellerundefined
              CNCModeller @droftarts
              last edited by

              @droftarts said in Spindle nema 34 duet 2 wifi:

              @o_lampe You're right, if it's just for thread cutting then a stepper would work well. For more general lathe use, either an indexing DC motor, or a servo motor with step and continuous operation (if such a thing exists) would be better.

              Ian

              My basic understanding is that the 1HCL driver has two similar modes to what is being suggested above, traditional step mode for open loop and then it drives the stepper in a pseudo torque mode as if it was a brushless motor when in closed loop. I may have misunderstood but I'm sure @dc42 would be able to confirm or deny.

              If that's true then Duet may already have a hardware solution that could be repurposed with a new firmware build.

              Interested as I hav a Denford CNC lathe to convert some time in the future...

              Polar Duet3 Mini + 1HCL
              https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
              Wanhao D4S: Duet2
              https://forum.duet3d.com/post/296755
              K40 Laser, Duet2
              https://forum.duet3d.com/post/312082
              Wanhao D5S
              https://www.youtube.com/CNCModellerUK

              droftartsundefined 1 Reply Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @CNCModeller
                last edited by

                @CNCModeller No, not really. Both open and closed loop modes of the 1HCL use step-and-direction-based inputs, coordinated with other axes. Open loop mode is just like 'normal' stepper drivers. Closed loop mode is still coordinated with other Gcode based movements, just with feedback and, as you say, is a pseudo torque mode, ie will try to get to the position commanded, or generate an error if it doesn't. It's not acting like a spindle, which is turned on, runs at a given speed (usually rpm) while other axes control the coordinated movement, and then stops when commanded.

                Though perhaps such a 'spindle' mode for stepper drivers could be added to the firmware wishlist? I'm still not sure if it is an ideal use of a stepper motor, though.

                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

                o_lampeundefined 1 Reply Last reply Reply Quote 0
                • o_lampeundefined
                  o_lampe @droftarts
                  last edited by o_lampe

                  @droftarts said in Spindle nema 34 duet 2 wifi:

                  such a 'spindle' mode for stepper drivers could be added to the firmware wishlist?

                  I believe, we've asked infinite rotation as FW feature before.
                  But there was a good reason, why it's complicated to implement. Can't describe it with my own words. Brain is frozen 🌬 ❄

                  paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                  • paolozampini1973undefined
                    paolozampini1973 @o_lampe
                    last edited by

                    @o_lampe said in Spindle nema 34 duet 2 wifi:

                    @droftarts said in Spindle nema 34 duet 2 wifi:

                    such a 'spindle' mode for stepper drivers could be added to the firmware wishlist?
                    yes

                    I believe, we've asked infinite rotation as FW feature before.
                    But there was a good reason, why it's complicated to implement. Can't describe it with my own words. Brain is frozen 🌬 ❄

                    1 Reply Last reply Reply Quote 0
                    • JoergS5undefined
                      JoergS5
                      last edited by

                      Firmware organizes all axis movements in time frames (X moves n mm in 0.1 seconds, Y m mm in the same time etc.). A continuous movement doesn't have a time frame (because it's infinity time), so it's a problem.

                      A solution could be to add a separate FreeRTOS task which makes the continuous movement for a (stepper-)motor by generating own stepper signals without any time frame planning. It would run isolated from all other movements, but this needs to be added to the firmware, something for the wishlist.

                      o_lampeundefined paolozampini1973undefined 2 Replies Last reply Reply Quote 3
                      • o_lampeundefined
                        o_lampe @JoergS5
                        last edited by

                        @JoergS5
                        Even that solution wouldn't work for thread cutting. Just switching on the isolated pulse generator wouldn't happen in sync with acceleration of the other axis.
                        That way, you can only cut a thread in one go, but AFAIK you need several runs and always have to find the same starting point...

                        JoergS5undefined 1 Reply Last reply Reply Quote 0
                        • paolozampini1973undefined
                          paolozampini1973 @JoergS5
                          last edited by

                          @JoergS5 said in Spindle nema 34 duet 2 wifi:

                          Firmware organizes all axis movements in time frames (X moves n mm in 0.1 seconds, Y m mm in the same time etc.). A continuous movement doesn't have a time frame (because it's infinity time), so it's a problem.

                          A solution could be to add a separate FreeRTOS task which makes the continuous movement for a (stepper-)motor by generating own stepper signals without any time frame planning. It would run isolated from all other movements, but this needs to be added to the firmware, something for the wishlist.

                          thank you

                          paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                          • paolozampini1973undefined
                            paolozampini1973 @paolozampini1973
                            last edited by paolozampini1973

                            @dc42
                            firmware from what I understood from the various posts it seems that it is not possible to have with a stepper motor the same functionalities of the vfd motor because the firmware cannot handle it is it possible to implement this function please

                            1 Reply Last reply Reply Quote 0
                            • JoergS5undefined
                              JoergS5 @o_lampe
                              last edited by

                              @o_lampe said in Spindle nema 34 duet 2 wifi:

                              have to find the same starting point...

                              my proposal is to implement it step by step and start with a continuous axis in a separate task. This allows to gather experience wheter e.g. performance is sufficient.

                              In longer perspective

                              • FreeRTOS trasks are able to inter-process-communicate, i.e. tell each others the status, i.e. synchronize tasks
                              • the tasks could be delegated to separate cards then, so step signals don't disturb each other
                              • the tasks could execute different kinematics, so multiple kinematics become possible
                              • a synchronzation process for all boards through CAN can make sure that a global job scheduler can manage the movements. E.g. by synchronizing the system tick numbers
                              paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                              • paolozampini1973undefined
                                paolozampini1973 @JoergS5
                                last edited by

                                @JoergS5 said in Spindle nema 34 duet 2 wifi:

                                FreeRTOS

                                thanks for the answer But honestly I don't want to start writing a program to make a function that in my opinion was a very very very simple function

                                JoergS5undefined 1 Reply Last reply Reply Quote 0
                                • JoergS5undefined
                                  JoergS5 @paolozampini1973
                                  last edited by JoergS5

                                  @paolozampini1973 no, no, I don't mean that you do it, but one of the developers of RepRapFirmware. I meant this with wishlist: there is a list somewhere what features are wished to be added to future versions.

                                  A simple requirement, a single continuous axis without synchronization, which is useful for many users have a much higher chance to be implemented than the other ideas I wrote.

                                  paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                                  • paolozampini1973undefined
                                    paolozampini1973 @JoergS5
                                    last edited by

                                    @JoergS5 said in Spindle nema 34 duet 2 wifi:

                                    @paolozampini1973 no, no, I don't mean that you do it, but one of the developers of RepRapFirmware. I meant this with wishlist: there is a list somewhere what features are wished to be added to future versions.

                                    A simple requirement, a single continuous axis without synchronization, which is useful for many users have a much higher chance to be implemented than the other ideas I wrote.

                                    now i understand in the function wishlist But where is this list where you have to make the request?

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

                                      @paolozampini1973 @CNCModeller if there is enough interest then I can look at providing the option to run a stepper motor as a spindle in a future version of RRF. However, it's likely to be a Duet 3 feature only because of lack of flash memory on Duet 2.

                                      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

                                      jay_s_ukundefined CNCModellerundefined paolozampini1973undefined 3 Replies Last reply Reply Quote 1
                                      • jay_s_ukundefined
                                        jay_s_uk @dc42
                                        last edited by

                                        @dc42 it would be a good use case for the 1HCL boards. maintaining a certain RPM with feedback

                                        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

                                        o_lampeundefined 1 Reply Last reply Reply Quote 0
                                        • o_lampeundefined
                                          o_lampe @jay_s_uk
                                          last edited by

                                          @jay_s_uk
                                          That would make sense, if the feedback loop would control the spindle/stepper current. Or do you want to reduce XYZ-speed, when the stepper skips steps due to overload?

                                          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                          • jay_s_ukundefined
                                            jay_s_uk @o_lampe
                                            last edited by

                                            @o_lampe thats the thing to work out i suppose. i did think increase current but that would only do so much so slowing things down may make more sense

                                            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

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