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

    Endstop with duet3

    Scheduled Pinned Locked Moved
    General Discussion
    endstop duet3
    3
    3
    284
    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.
    • anaghundefined
      anagh
      last edited by

      I am using duet3 in CNC mode. I have wired an optical endstop on the X-axis. The status on the DWC accurately shows if the endstop is triggered or not. All I want to happen is for the X motor to stop moving (and maybe backup away from the endstop) when the endstop is triggered not while homing, but during regular operation. Can this be done? If yes, how should I go about it?
      Right now, when the endstop is triggered, the motor still moves. Thank you!

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

        Yes, yuo can do this.
        You need to look at M581 to set an input as a trigger.
        I would suggest adding the changes to your start.g so the endstop is only changed to a trigger when a job is started.
        Then add the gcode to change the endstops back as part of the cancel.g and stop.g

        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

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

          @jay_s_uk said in Endstop with duet3:

          stop.g

          Make sure to include M0 at the end of your job so that stop.g is called.

          Z-Bot CoreXY Build | Thingiverse Profile

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