Use the Z-endstop to generate an out of boundaries alert
-
Hi,
I am replacing my smoothieboard by a Duet 6HC, and I would like to reproduce the behaviour of the "gamma_limit_enable" (see http://smoothieware.org/endstops). In other words I would like to:
- use classicaly the Z-endstop (as defined with M574).
- use the Z-endstop as an input to trigger, for exemple, an emergency stop if activated while printing/moving (as defined with M950 and M581).
However, a pin cannot be defined by M574 and M950 at the same time. Does anybody know how to recreate this feature?
Thank you.
-
@MathV you could map the pin to M574 and then at the end of the homing move, free it up for use as a trigger. E.g.
M574 Z0 p"nil"
Most things can be set dynamically and not just through the config.g file
-
@jay_s_uk thanks a lot. It works perfectly.
-
It's also possible to configure a trigger to work directly from an endstop, without configuring a GpIn pin for it.
-
@dc42 said in Use the Z-endstop to generate an out of boundaries alert:
It's also possible to configure a trigger to work directly from an endstop, without configuring a GpIn pin for it.
Could you elaborate on that and/or point me to the documentation please? I'm not seeing anything under M581 other than using the "J" parameter in M950.
-
@deckingman, good point, that aspect wasn't documented! I have updated https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M581_RepRapFirmware_3_01RC2_and_later.
-
@dc42 said in Use the Z-endstop to generate an out of boundaries alert:
@deckingman, good point, that aspect wasn't documented! I have updated https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M581_RepRapFirmware_3_01RC2_and_later.