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

    External driver and Duet 1XD issues

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    4
    16
    566
    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.
    • p_vnctundefined
      p_vnct
      last edited by

      Hello there,

      i am trying to set up an external driver DM860T connected to 1xd board with a duet 3 6HC.
      I have wired the external driver to 1xd in differential connection.
      I have assigned this motor to U axis for easier testing but it will be the extruder motor.

      i not able to make any move of this motor (nema34) with the external driver.

      I have tried different combination of M569 S, R and T parameters as well as different microstepping or steps/mm but nothing happens when i try to move U axis

      Also tried different pulse/rev on the stepper

      Here is my config file :

      ; General preferences
      G90                                          ; send absolute coordinates...
      M83                                          ; ...but relative extruder moves
      M550 P"BIG 2"                          	 ; set printer name
      G4 S2 										 ; wait for expansion boards to start
      
      
      ; Network
      M552 P192.168.1.198 S1                             ; enable network and acquire dynamic address via DHCP
      M586 P0 S1                                   	   ; enable HTTP
      M586 P1 S0                                   	   ; disable FTP
      M586 P2 S0                                  	   ; disable Telnet
      
      ; Drives
      M569 P0.0 S0                                     ; physical drive 0.0 goes forwards X
      M569 P0.1 S0                                     ; physical drive 0.1 goes forwards Y
      M569 P0.2 S0									 ; physical drive 0.2 goes backward Y2
      ;M569 P0.3 S1                                    ; physical drive 0.3 goes forwards Extruder
      ;M569 P0.4 S1								     ; physical drive 0.4 goes backwards Extruder
      M569 P0.5 S1                                     ; physical drive 0.6 goes forwards Z
      M569 P122.0 T2.7:2.7:2.7:2.7;					     ; Set External Driver for Extruder
      M569 P122.0 S0 R0;
      
      M584 X0.0 Y0.1:0.2 Z0.5                          ; set drive mapping
      M584 U122.0                                      ; set drive mapping extruder
      M350 X16 Y16 Z16 I1                              ; configure microstepping with interpolation YXZ
      M350 U1 I1                                     ; configure microstepping with interpolation E
      M92 X320 Y320:320 Z640.00                        ; set steps per mm XYZ
      M92 U400.00                                     ; set steps per mm
      M566 X300 Y300 Z120.00 U120.00                   ; set maximum instantaneous speed changes (mm/min)
      M203 X12000.00 Y12000.00 Z3600.00 U10000.00      ; set maximum speeds (mm/min)
      M201 X200.00 Y200.00 Z1000.00 U3000.00           ; set accelerations (mm/s^2)
      M906 X4000 Y4000:4000 Z4200 I30                  ;set motor currents (mA) and motor idle factor in per cent
      M84 S30                                      	 ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 U0 S1                              ; set axis minima
      M208 X1120 Y1000 Z1280 U2000 S0                  ; set axis maxima
      

      M122 gives this result :

      M122 B122
      Diagnostics for board 122:
      Duet EXP1XD firmware version 3.4.4 (2022-10-14 11:45:39)
      Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1)
      All averaging filters OK
      Never used RAM 5556, free system stack 88 words
      Tasks: Move(notifyWait,0.0%,153) HEAT(notifyWait,0.1%,115) CanAsync(notifyWait,0.0%,64) CanRecv(notifyWait,0.0%,77) CanClock(notifyWait,0.0%,64) MAIN(running,96.5%,441) IDLE(ready,0.0%,40) AIN(delaying,3.4%,144), total 100.0%
      Last reset 00:03:44 ago, cause: power up
      Last software reset data not available
      Driver 0: pos 0, 400.0 steps/mm, steps req 0 done 0
      Moves scheduled 0, completed 0, in progress 0, hiccups 0, step errors 0, maxPrep 0, maxOverdue 0, maxInc 0, mcErrs 0, gcmErrs 0
      Peak sync jitter 1/5, peak Rx sync delay 198, resyncs 0/0, no step interrupt scheduled
      VIN voltage: min 36.9, current 36.9, max 37.0
      MCU temperature: min 21.4C, current 23.3C, max 23.4C
      Last sensors broadcast 0x00000000 found 0 86 ticks ago, 0 ordering errs, loop time 0
      CAN messages queued 1700, send timeouts 0, received 1056, lost 0, free buffers 37, min 37, error reg 0
      dup 0, oos 0/0/0/0, bm 0, wbm 0, rxMotionDelay 0
      

      What am i missing ?

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

        @p_vnct Most likely, if you have connected the enable wires, disconnect them. From the datasheet:

        Enablesignal: This signal is used for enabling/disabling the drive. High level (NPN control
        signal, PNP and differential control signals are on the contrary, namely low level for enabling.)
        for enabling the drive and low level for disabling the drive. Usually left UNCONNECTED
        (ENABLED).

        https://www.omc-stepperonline.com/download/DM860T.pdf

        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

        p_vnctundefined 1 Reply Last reply Reply Quote 0
        • p_vnctundefined
          p_vnct @droftarts
          last edited by

          @droftarts Just tried to disconnect the enable wires.

          no difference still not moving

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

            @p_vnct It looks like your timings might be a bit fast:

            M569 P122.0 T2.7:2.7:2.7:2.7
            

            a)t1: ENA must be ahead of DIR by at least 5us. Usually, ENA+ and ENA- are NC (not connected). See
            “Connector P1 Configurations” for more information.
            b)t2: DIR must be ahead of PUL effective edge by 5us to ensure correct direction;
            c)t3: Pulse width not less than 2.5us;
            d)t4: Low level width not less than 2.5us.

            Try M569 P122.0 T5:5:10:10, and if that works, work down to T2.5:2.5:5:5.

            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

            p_vnctundefined 1 Reply Last reply Reply Quote 0
            • p_vnctundefined
              p_vnct @droftarts
              last edited by

              @droftarts said in External driver and Duet 1XD issues:

              T5:5:10:1

              Thanks Ian, it is working now with T5:5:10:10 for timings.
              Doesn't work with lower timings.

              I had also to remove M92 for the U axis and modify the R parameter to R1 in M569 to get it work.

              droftartsundefined dc42undefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @p_vnct
                last edited by

                @p_vnct Did you reconnect the enable wires, and that part is working?

                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

                p_vnctundefined 1 Reply Last reply Reply Quote 0
                • p_vnctundefined
                  p_vnct @droftarts
                  last edited by

                  @droftarts No i didn't !

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

                    @p_vnct said in External driver and Duet 1XD issues:

                    I had also to remove M92 for the U axis and modify the R parameter to R1 in M569 to get it work.

                    That should only matter if you connected the Enable wires.

                    @p_vnct said in External driver and Duet 1XD issues:

                    it is working now with T5:5:10:10 for timings.

                    According to the data sheet, it should work with 2.5:2.5:5:0. What wiring scheme did you use between the 1XD and the driver?

                    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

                    p_vnctundefined 1 Reply Last reply Reply Quote 0
                    • p_vnctundefined
                      p_vnct @dc42
                      last edited by

                      @dc42

                      About the R parameter, you are right this should matter only with the Enable wires, but with R1 and the enable wires connected it didn't work.

                      I used the differential wiring without the enable wires and if i go 2.5:2.5:5:0 timing values it does not work anymore.

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

                        @p_vnct said in External driver and Duet 1XD issues:

                        I used the differential wiring without the enable wires and if i go 2.5:2.5:5:0 timing values it does not work anymore.

                        In that case, it appears that the driver isn't meeting its specification. Just to check, if you set 2.5:2.5:5:5 and then send M569 P122.0 with no other parameters, what timing does it report? The first figure should be quite accurate, but the other figures will be rounded up to the next available value.

                        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

                        p_vnctundefined 1 Reply Last reply Reply Quote 0
                        • droftartsundefined droftarts referenced this topic
                        • p_vnctundefined
                          p_vnct @dc42
                          last edited by

                          @dc42 Late response apologies !

                          M569 reports 2.7:2.7:2.7:2.7.
                          but when i enter this values the motor do not move anymore.

                          I have worked down to T4:4:4:4 and the stepper moves.

                          But i have a feeling that something lower the torque of the motor.
                          Indeed the nema 34 is rated 13Nm under 60v @ 2000steps/rev.

                          But i clearly do not have this torque available, what could influence the torque in the duet settings ? i guess not very much as this is related to the external driver, right ?

                          jay_s_ukundefined dc42undefined 2 Replies Last reply Reply Quote 0
                          • jay_s_ukundefined
                            jay_s_uk @p_vnct
                            last edited by

                            @p_vnct said in External driver and Duet 1XD issues:

                            i guess not very much as this is related to the external driver, right ?

                            correct

                            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

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

                              @p_vnct said in External driver and Duet 1XD issues:

                              But i have a feeling that something lower the torque of the motor.
                              Indeed the nema 34 is rated 13Nm under 60v @ 2000steps/rev.

                              The torque is determined by the motor current, which is set by your external driver. Most external drivers have switches to set the current.

                              btw the 6HC can drive many Nema 34 motors directly, without the need for an external driver.

                              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

                              p_vnctundefined 1 Reply Last reply Reply Quote 0
                              • p_vnctundefined
                                p_vnct @dc42
                                last edited by

                                @dc42

                                actually i drive a nema 34 from another Duet 6HC on another similar printer . but found that i do not use the entire torque of the nema as the Duet is "limited" to 36v and 4A.

                                As this Nema 34 is used for a pellet extruder, i am currently trying to drive it (on my second upgraded pellet printer) with the external driver set up at 6A-7.2A peak on 60V to see if i can achieve better flowrate and without a planetary gearbox.

                                For now without the planetary gearbox i cannot extrude at an acceptable flowrate with the external driver nor the drivers on the 6HC.

                                I'll try with a planetary gearbox like my first printer but with the external driver and see if i get better results with it.

                                Another thing i quickly tried but without success is to set up a second extruder motor but drived from the 6HC.
                                I think i don't have the right syntax for that.

                                Because if i map :

                                M584 E122.0:0.4
                                

                                Then what should i set in :

                                M350 E??:16 I1       
                                M92 E??:100           
                                M906 E??:1000 I30    
                                
                                

                                As if i understand correctly those values are now set on the external driver ?

                                p_vnctundefined 1 Reply Last reply Reply Quote 0
                                • p_vnctundefined
                                  p_vnct @p_vnct
                                  last edited by p_vnct

                                  @p_vnct

                                  i Have tried :

                                  M584 E122.0:0.4
                                  M350 E1:16 I1
                                  M92 E14.00:100.00
                                  M906 E0:1500 I30
                                  

                                  Motor on external driver is working but not the second one, even if the duet report it moving.

                                  EDIT: my bad , i just forgot to add the drive to M563... now it is working 🙂

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

                                    @p_vnct thanks, I'll mark this as solved then.

                                    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
                                    • dc42undefined dc42 marked this topic as a question
                                    • dc42undefined dc42 has marked this topic as solved
                                    • droftartsundefined droftarts referenced this topic
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA