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

    Halting G1 Command on Endstop Hit

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    495
    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.
    • johnundefined
      john
      last edited by

      On a different board the default behavior was to halt motor movement when an endstop was hit during a move. It seems to me that the Duet uses the S1 flag for homing. For example, in homex.g:

      G1 S1 X-605 F6000
      G1 X5 F1000
      G1 S1 X-605 F1000
      G1 X12 F1000

      When the endstop is hit in line 1, the Duet moves to the second line (+5 on X). After homing is completed I want to catch all endstop hits as errors and halt the movement.

      Is there a way to do this on the Duet? I do not want to just proceed to the next gcommand in the queue.

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

        You can use the M581 command to set a trigger on the endstops to cause an emergency stop when an endstop is triggered. See https://duet3d.dozuki.com/Wiki/GCode#Section_M581_Configure_external_trigger.

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

          Thanks for your response. I will look into this more.

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