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

    Hoe to invert endstops

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    5
    180
    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.
    • ortondaleundefined
      ortondale
      last edited by

      Core XY
      Duet 3 mini 5+ firmware 3.4.5
      ToolBoard 1LC
      Just upgraded printer with above boards replacing a Duet 2 Maestro set up.
      At the same time upgraded to latest firmware
      Require home to be back left corner as per old set up
      Y axis homes to the back, but x axis homes to the right, not the left as required
      Config.g
      ; Endstops
      M574 X1 S1 P"121.io2.in" ; Running on 1LC board
      M574 Y2 S1 P"io6.in" ; Running on Duet 3 mini board
      As I understand by putting ! in the command line it should invert the end stop position
      M574 X1 S1 P"!121.io2.in"
      This results in the X axis moving 5mm to the left then stopping

      homex.g
      G91 ; relative positioning
      G1 H2 Z5 F3000 ; lift Z relative to current position
      G1 H1 X235 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 X-5 F3000 ; go back a few mm
      G1 H1 X235 F360 ; move slowly to X axis endstop once more (second pass)
      G1 H2 Z-5 F3000 ; lower Z again
      G90 ; absolute positioning
      homeall.g
      G91 ; relative positioning
      G1 H2 Z5 F3000 ; lift Z relative to current position
      G1 H1 X235 Y215 F1800 ; move quickly to X or Y endstop and stop there (first pass)
      G1 H1 X235 ; home X axis
      G1 H1 Y215 ; home Y axis
      G1 X5 Y-5 F3000 ; go back a few mm
      G1 H1 X235 F360 ; move slowly to X axis endstop once more (second pass)
      G1 H1 Y215 ; then move slowly to Y axis endstop
      G1 H1 Z-205 F360 ; move Z down stopping at the endstop
      G90 ; absolute positioning
      G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

      Any help to solve this problem would be much appreciated at 78 years of age the old grey matter is getting a bit thin.

      deckingmanundefined 2 Replies Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @ortondale
        last edited by

        @ortondale The "!" will depend on what type of switch and how it's wired. Usually, with micro-switches, you connect one wire to gnd and the other to signal in and use the normally closed contacts. If that's how you have wired the end stops, then there is no need to invert the pin.

        Your problem is actually the move commands for homing X. Because the end stop is low end, you need to move in the negative direction - i.e. X-235 towards the end stop. Then to back away from the end stop, you need to move in the positive direction so remove the "-" sign in that G1 X-5 and make it G1 X5 . Your Y end stop is at the high end so those Y moves are correct (positive).

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        1 Reply Last reply Reply Quote 0
        • deckingmanundefined
          deckingman @ortondale
          last edited by

          @ortondale said in Hoe to invert endstops:

          This should work

          homex.g
          G91 ; relative positioning
          G1 H2 Z5 F3000 ; lift Z relative to current position
          G1 H1 X-235 F1800 ; move quickly to X axis endstop and stop there (first pass)
          G1 X5 F3000 ; go back a few mm
          G1 H1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
          G1 H2 Z-5 F3000 ; lower Z again
          G90 ; absolute positioning
          homeall.g
          G91 ; relative positioning
          G1 H2 Z5 F3000 ; lift Z relative to current position
          G1 H1 X-235 Y215 F1800 ; move quickly to X or Y endstop and stop there (first pass)
          G1 H1 X-235 ; home X axis
          G1 H1 Y215 ; home Y axis
          G1 X5 Y-5 F3000 ; go back a few mm
          G1 H1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
          G1 H1 Y215 ; then move slowly to Y axis endstop
          G1 H1 Z-205 F360 ; move Z down stopping at the endstop
          G90 ; absolute positioning
          G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          ortondaleundefined 1 Reply Last reply Reply Quote 1
          • ortondaleundefined
            ortondale @deckingman
            last edited by

            @deckingman
            Many thanks for the info works a treat

            deckingmanundefined 1 Reply Last reply Reply Quote 0
            • deckingmanundefined
              deckingman @ortondale
              last edited by

              @ortondale said in Hoe to invert endstops:

              @deckingman
              Many thanks for the info works a treat

              glad it worked. We septuagenarians must help each other out where we can. ☺

              Ian
              https://somei3deas.wordpress.com/
              https://www.youtube.com/@deckingman

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined Phaedrux marked this topic as a question
              • Phaedruxundefined Phaedrux has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA