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

    Duex5 wiring/config check

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    11
    1.4k
    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.
    • fmaundefined
      fma
      last edited by

      Hi!

      As I finally received my Duex5, I will use it for all extruding stuff.

      I will power up the boards with 24V; the onboard DC/DC converter of the Duex5 will allow me to keep my 12V fans.

      Could you check my wiring and config, and tell me if I didn't make mistakes?

      https://sys.gbiloba.org/owncloud/index.php/s/YhXpFNIeNTIMm2M
      https://sys.gbiloba.org/owncloud/index.php/s/enmBpaBrJiwccAF

      And my config (only the mapings):

      [[language]]
      ; Drives
      M584 X0 Y1 Z2 E5 ; Apply custom drive mapping
      
      ; Heaters
      M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
      M305 P1 T100000 B4725 C7.060000e-8 R4700 X3 ; Set thermistor + ADC parameters for heater 1 and remap it to channel 3
      
      ; Tools
      M563 P0 D2 H3 ; Define tool 0
      
      ; Fans
      M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      
      

      The last part (Fans) is my previous one, without Duex5; I don't see how to remap them on fan outputs of the Duex5…

      Thanks for your help.

      Frédéric

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

        Wiring looks OK to me. For the hot end fan, just change P1 to Pn where n is the fan number that you have the hot end fan connected to. For the print fan, fan mapping is done in the M563 command for the tool.

        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
        • fmaundefined
          fma
          last edited by

          Thanks for the hardware check.

          Could you tell me what M563 command I should use? Is mine supposed to be correct? Because I always get a "wring drive number' error, or so. I'm not sure to clearly understand the naming, between config and wiring diagram… Is there some sort of table/tutorial explaining this relation?

          For example, there are often 2 names in the wiring diagram, and config param is another name... Not easy to understand. I also read (can't retreive it) there is a shift of 1 in one of the numbering...

          Thanks for your help.

          Frédéric

          1 Reply Last reply Reply Quote 0
          • fmaundefined
            fma
            last edited by

            I'm not at home to check, but is this config ok:

            [[language]]
            ; Drives
            M584 X0 Y1 Z2 E5 ; -> extruder drive 0 is now motor E2/Drive5?
            
            ; Heaters
            M305 P0 T100000 B4138 C0 R4700 ; set thermistor + ADC parameters for heater 0 (bed)
            M305 P3 T100000 B4725 C7.06e-8 R4700 ; set thermistor + ADC parameters for heater 1 (hotend)
            
            ; Tools
            M563 P0 D0 H1 ; Define tool 0, using extruder drive 0, and heater 1
            
            

            Frédéric

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

              Those look ok, but if you want to use Fan 3 as the print cooling fan, add F3 to the M563 command.

              The fan outputs on the Duet allow you to change the PWM frequency, which is useful with some fans. The ones on the X5 are fixed PWM frequency.

              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
              • fmaundefined
                fma
                last edited by

                I can't use Duet fans outputs, as they are 24V… I have to use the 12V DC/DC converter of the Duex.

                As my fans are connected to fan3 (PLA fan), and fan4 (hotend fan), the Fan section should be:

                ; Fans
                M106 P3 S0 I0 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                M106 P4 S1 I0 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
                
                

                Not sure with P and H params…

                Frédéric

                1 Reply Last reply Reply Quote 0
                • fmaundefined
                  fma
                  last edited by

                  Ok, I finally found the correct config:

                  ; Drives
                  M584 X0 Y1 Z2 E5 ; Remap axes
                  
                  ; Heaters
                  M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
                  M305 P3 T100000 B4725 C7.06e-8 R4700 ; Set thermistor + ADC parameters for heater 3
                  
                  ; Fans
                  M106 P3 S0 I0 F500 H-1 ; Set fan 3 value, PWM signal inversion and frequency. Thermo. control turned off
                  M106 P4 S1 I0 F500 H3 T45 ; Set fan 4 value, PWM signal inversion and frequency. Therm. control turned on
                  
                  ; Tools
                  M563 P0 D0 H3 F3 ; Define tool 0 using Drive 0, Heater 3 and Fan 3
                  
                  

                  The problem, now, is that M106 does not drive the correct fan; without fan number (as slicers use it), it drives Fan0, and I want it to drive Fan3. Duet web interface doesn't show Fan3 neither…

                  How can I fix that?

                  Frédéric

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

                    M106 with no P parameter will control fan 0 if no tool is active. If a tool is active, it will control the fan(s) specified in the F parameter of the corresponding M563 command. This is to allow different tools to use different fans, which is useful on IDEX printers.

                    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
                    • fmaundefined
                      fma
                      last edited by

                      Good!

                      And what about the GUI? Is there a way to remap fan buttons?

                      Frédéric

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

                        Good question! I guess the Fan 0 slider should be called the print Cooling Fan slider instead, and send M106 commands without a P parameter. I'll email chrishamm about this.

                        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
                        • fmaundefined
                          fma
                          last edited by

                          Thanks.

                          Frédéric

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