Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Solved How to use duex5 end stops with RepRap3 firmware

    Duet Hardware and wiring
    3
    8
    139
    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.
    • dteel
      dteel last edited by

      Hello,

      I'm nearing the completion of the 3d printer im building, and through some probably curious design choices by some people, I have 4x Z motors, 2x Y motors, and 1 X motor.

      I want to make use of 4x end stops in the Z axis and 2x in the Y axis.

      I'm currently trying to get the Y axis working before I get the Z axis working, and for the love of me I cant figure it out. I've got everything moving like it should, I just cant figure out how to get the duex end stops to affect.

      Excerpts from my config.g

      
      M584 X0 Y1:5 Z2:6:7:8 E3                                                 ; set drive mapping, this works fine as everything moves in unison
      
      M574 Y1 S1 P"ystop+duex.e2stop"                                                      ; configure active-high endstop for low end on Y via pin ystop
      

      I've tried using the M950 command below in many different variations and have tried the other pin name that looked promising (exp.e2stop) but to no avail.

      M950 J45 C"!^duex.e2stop"
      

      tl;dr

      I want to have one endstop for each of my motors, I have 7 motors for all the axises (4x - Z, 2x - Y, 1x - X), and I cant figure out how to use the endstop connections in the duex 5.

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

        @dteel said in How to use duex5 end stops with RepRap3 firmware:

        Excerpts from my config.g
        M584 X0 Y1:5 Z2:6:7:8 E3 ; set drive mapping, this works fine as everything moves in unison M574 Y1 S1 P"ystop+duex.e2stop" ; configure active-high endstop for low end on Y via pin ystop

        That looks correct to me. When you send M98 P"config.g" to re- run them, do you get any error messages?

        If you don't see any error messages, what happens when you try to home Y?

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

          When I hit Home Y, the machine crashes until it timeouts because it thinks it went the entire distance of the axis. I have the end stop wired to the right connector on the Duex5 with both of the NC Switch's leads on the two outside pins (GND/STOP)

          There is no LED on the Duex5 e2endstop being lit up like it does on the Duet, do I have to enable a pullup or something?

          1 Reply Last reply Reply Quote 0
          • dteel
            dteel last edited by dteel

            Well I've got it working now, I did need to enable the pullup which I guess I do by putting a preceding ^ before the name in M574, very confusing.

            Working code

            M584 X0 Y1:5 Z2:6:7:8 E3                                                 ; set drive mapping
            
            .....
            
            M574 Y1 S1 P"ystop+^duex.e2stop"                                          ; configure active-high endstop for low end on Y via pin ystop
            

            I actually cant find it documented anywhere in https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration to even use a "^" at all, possibly add this to the wiki to prevent people in the future running into the problem I had?

            Phaedrux 1 Reply Last reply Reply Quote 1
            • dc42
              dc42 administrators last edited by

              Does the LED for that endstop input on the DueX5 work?

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

                Not that I can tell, there was no noticeable difference other than it homes correctly now. I just had to add the ^.

                dc42 1 Reply Last reply Reply Quote 0
                • Phaedrux
                  Phaedrux Moderator @dteel last edited by

                  @dteel said in How to use duex5 end stops with RepRap3 firmware:

                  possibly add this to the wiki to prevent people in the future running into the problem I had?

                  Done.

                  Z-Bot CoreXY Build | Thingiverse Profile

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

                    @dteel said in How to use duex5 end stops with RepRap3 firmware:

                    Not that I can tell, there was no noticeable difference other than it homes correctly now. I just had to add the ^.

                    The endstops on the DueX have LEDs close to the endstop connectors. The LED and its resistor act as the pullup, so it should not be necessary to enable the internal pullup resistor. However, if the LED is missing or open circuit, then it certainly would be necessary to enable the internal pullup resistor to make it work.

                    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