Configuring limit switches or changing default H0
-
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.
-
@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
-
@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.
-
@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/329959Ian