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

    Endstop wired in series, RRF3

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    6
    222
    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.
    • Anto0131undefined
      Anto0131
      last edited by

      Hello all,

      I usually find my answers in the previous posts but didn't have any luck with this one.

      I run RRF3 (3.2) with a duet Ethernet.

      I want to use 2 endstops for Y axis and 2 for Z axis (Big 2d cartesian printer with 2 Y motors, 2 Z motors and independent dual X axis for two head).

      Attached is the simple schematic of what I want to achieve with my 2 endstop linked in series. My endstop are mechanical NC switch. In my config, I have the M574 configured like this,

      M574 Y1 S1 P"ystop+e1stop"                           
      M574 Z1 S1 P"ystop+e1stop"

      136089891_1170809910002283_5138190751730782776_n.png

      When I perform the homeall, it goes through the X and Y but give me this error on the Z axis :

      G28
      Error: Failed to enable endstops

      When I home X and Y, I move away from the endstop so its not an hardware problem (I also check the endstop with the leds and its all good for Z and Y).

      homeall.g looks like :

      G91                     ; relative positioning
      G1 H2 Z5 F6000          ; lift Z relative to current position
      G1 H1 X-480 Y-480 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
      G1 H2 X5 Y5 F6000       ; go back a few mm
      G1 H1 X-480 Y-480 F360  ; move slowly to X and Y axis endstops once more (second pass)
      G90
      G0 X-40 Y0              ; move away from the endstop
      G91
      G1 H1 Z-405 F360        ; move Z down stopping at the endstop
      G90                     ; absolute positioning
      G92 Z-2.4                  ; Adjust Z offset (if + then substract to this value)
      G1 Z20
      

      Can someone help me with this?

      Thank you.

      A.

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

        Because you can't have a pin name used more than once.
        If you run M98 P"config.g" you'll see the error.
        You'll have you change your wiring.
        Or, map the endstops in the homing files.

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

          I could remap the endstop in the homeall file? Its not elegant but i guess it would do the trick.

          How do I do that? If I send M574 Z1 S1 P"ystop+e1stop" it will still give me the error of already having a sensor on the ystop.

          thanks.

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            You may have to unbind the pin first by giving it nil as a pin name.

            https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet

            Z-Bot CoreXY Build | Thingiverse Profile

            Anto0131undefined 1 Reply Last reply Reply Quote 0
            • Anto0131undefined
              Anto0131 @Phaedrux
              last edited by

              @Phaedrux Wow this is working! I added this before the Z homing lines and everything work properly.

              I also added the switch back to initial mapping at the end (so I don't do this trick to the homey.g also)

              ; homeall.g
              ; called to home all axes
              ;
              G91                     ; relative positioning
              G1 H2 Z5 F6000          ; lift Z relative to current position
              G1 H1 X-480 Y-480 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
              G1 H2 X5 Y5 F6000       ; go back a few mm
              G1 H1 X-480 Y-480 F360  ; move slowly to X and Y axis endstops once more (second pass)
              G90
              G0 X-40 Y5
              G91
              M574 Y1 S1 P"nil"
              M574 Z1 S1 P"ystop+e1stop"
              G1 H1 Z-405 F360        ; move Z down stopping at the endstop
              G90                     ; absolute positioning
              G92 Z-2.4               ; Adjust Z offset
              G1 Z20
              M574 Z1 S1 P"nil"
              M574 Y1 S1 P"ystop+e1stop"
              

              Thank you Jay and Phaedrux for your help.

              A.

              1 Reply Last reply Reply Quote 1
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Now you've learned the power of on the fly configuration!

                Z-Bot CoreXY Build | Thingiverse Profile

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