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.
    • droftartsundefined
      droftarts administrators @paolozampini1973
      last edited by

      @paolozampini1973 Rotation axes are usually configured so that one rotation is 360mm, so 1mm is 1 degree. Your DM860H stepper driver sets the number of steps per motor revolution (see section 7 of https://www.kocomotion.de/webshop/DM860.pdf); I'd probably set it to 16 microsteps on a 1.8 degree stepper (because you don't get better accuracy using more steps, when the full step accuracy for the stepper motor is usually +/-5%), for 3200 steps per revolution. This would be 360/3200 = 8.889 steps per mm at the motor. You have a 2:1 gear ratio, so this increases to 17.778 steps per mm. That can go in your config.g as M92 A17.778, assuming your rotational axis is A. If you want continuous rotation, you can either set it as an extruder axis E, or set M208 for the axis to a very large number, eg 10,000,000mm (I can't remember what the limit is).

      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 paolozampini1973undefined 2 Replies Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @droftarts
        last edited by

        @droftarts said in Spindle nema 34 duet 2 wifi:

        or set M208 for the axis to a very large number, eg 10,000,000mm (I can't remember what the limit is).

        I just wanted to point out the same...
        it would be cool, if we could config eg. M208 A'max' R1, and FW would automatically allow max length (HW-dependend?)

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

          @droftarts said in Spindle nema 34 duet 2 wifi:

          @paolozampini1973 Rotation axes are usually configured so that one rotation is 360mm, so 1mm is 1 degree. Your DM860H stepper driver sets the number of steps per motor revolution (see section 7 of https://www.kocomotion.de/webshop/DM860.pdf); I'd probably set it to 16 microsteps on a 1.8 degree stepper (because you don't get better accuracy using more steps, when the full step accuracy for the stepper motor is usually +/-5%), for 3200 steps per revolution. This would be 360/3200 = 8.889 steps per mm at the motor. You have a 2:1 gear ratio, so this increases to 17.778 steps per mm. That can go in your config.g as M92 A17.778, assuming your rotational axis is A. If you want continuous rotation, you can either set it as an extruder axis E, or set M208 for the axis to a very large number, eg 10,000,000mm (I can't remember what the limit is).

          Ian

          Ok thank you I will let you know when I have assembled the machine I wanted to ask you instead for the cutter the ratio is 3:1 ratio with a nema 17 How do I make it work FOR MILLING AND DRILLING ?

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

            @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

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

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