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

Configuring limit switches or changing default H0

Scheduled Pinned Locked Moved
Config Tool
3
4
159
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.
  • undefined
    D.J. Klomp
    last edited by 5 Mar 2024, 12:22

    I am configuring a DUET3 board and want the end-stops to act as limit switches, but I cannot seem to find that option.

    I Configured my endstops as follows:
    ; Endstops
    M574 X1 S1 P"^io0.in"
    M574 Y1 S1 P"^io2.in"
    M574 Z2 S1 P"^io4.in"
    and they work correctly when homing and are also correctly registering during movement when I push them.

    What I want is that if after homing a limit switch (endstop) is hit the machine stops. Are the endstops configurable in this way.
    Alternatively I could use G1 H4 X Y, but I do not want to have to adjust all my other programs to include H4. Is there a way to set H4 as default for a G1 move instead of the H0.

    Thanks in advance for any help/suggestions.

    undefined 1 Reply Last reply 5 Mar 2024, 12:24 Reply Quote 0
    • undefined
      jay_s_uk @D.J. Klomp
      last edited by 5 Mar 2024, 12:24

      @D-J-Klomp you would have to reconfigure them using M581. You can do this in the homing files after they have been used for homing

      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

      undefined 1 Reply Last reply 5 Mar 2024, 14:21 Reply Quote 0
      • undefined
        D.J. Klomp @jay_s_uk
        last edited by 5 Mar 2024, 14:21

        @jay_s_uk Thanks works like a charm. For any interested, I reconfigure the endstop with as M581 X T2 S1 in the homex.g macro. The only thing I also need to do of course is to make sure to disable it at the beginning of the homex.g with M581 T2 P-1 so that I can press home twice if I want to.

        undefined 1 Reply Last reply 5 Mar 2024, 16:16 Reply Quote 1
        • undefined
          droftarts administrators @D.J. Klomp
          last edited by 5 Mar 2024, 16:16

          @D-J-Klomp There's a thread about this, and having max and min limit switches wired together, here: https://forum.duet3d.com/topic/34395/wiring-multiple-endstops-in-parallel-or-series-with-duet-6xd/
          Initially a different way of setting up the endstop pins, trigger pins and triggers was used, until we remembered the X and Y parameter in M581, and came up with pretty much the same as you, here: https://forum.duet3d.com/post/329959

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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