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

    Invert Endstops

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    10
    3.7k
    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.
    • Adamfilipundefined
      Adamfilip
      last edited by

      My X & Y endstops need to be inverted but
      M119 X1 Y1 1

      doesnt seem to do it.
      is there another command?

      1 Reply Last reply Reply Quote 0
      • tomasfundefined
        tomasf
        last edited by

        M119 is for getting endstop status. You configure endstops using M574. Use the S parameter to invert the signal.

        1 Reply Last reply Reply Quote 0
        • Adamfilipundefined
          Adamfilip
          last edited by

          ok so how do you define a endstop as Min or Max for each Axis

          1 Reply Last reply Reply Quote 0
          • elmoretundefined
            elmoret
            last edited by

            http://reprap.org/wiki/G-code#M574:_Set_endstop_configuration

            1 Reply Last reply Reply Quote 0
            • Adamfilipundefined
              Adamfilip
              last edited by

              Thanks I have been looking at the documentation but it still hard to decipher

              1 Reply Last reply Reply Quote 0
              • Dougal1957undefined
                Dougal1957
                last edited by

                Why is it hard to decipher for example lets deal with just the X endstop

                M574 X1 S1 means that the endstop is at the low end (Min) and the S1 param means it is Active high

                If you need to invert when the endstop triggers maks the S param a 0 if you want the endstop at the High (max) end then make the X param X2.

                Do the same for the Y and Z to construct the full line if you need some endstops to be Active High and some Low then you will need 2 lines

                The recomended is to have them wired NC Active high so if you wanted all of them to be at Min and wired as per recomended then it would look like

                M574 X1 Y1 Z1 S1

                if they were all at the max then it would be

                M574 X2 Y2 Z2 S1

                Hope this helps a little bit

                1 Reply Last reply Reply Quote 0
                • Adamfilipundefined
                  Adamfilip
                  last edited by

                  M574 X1 S1 means that the endstop is at the low end (Min) and the S1 param means it is Active high

                  I assume you meant S0 🙂

                  I find all the parameter options hard to figure out. and sometimes things are not always obvious

                  Example high and low. Why not min and max

                  1 Reply Last reply Reply Quote 0
                  • Dougal1957undefined
                    Dougal1957
                    last edited by

                    No I meant S1 S0 would mean it is active low?

                    1 Reply Last reply Reply Quote 0
                    • iDeveloundefined
                      iDevelo
                      last edited by

                      @Dougal1957:

                      No I meant S1 S0 would mean it is active low?

                      Correct.

                      X1 low end X2 high end
                      Y1 low end Y2 high end
                      And so on…

                      1 Reply Last reply Reply Quote 0
                      • Dougal1957undefined
                        Dougal1957
                        last edited by

                        yes and the S param says whether the FW expects the endstop switch to be either open or closed depending on the setting of it?

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