Can I delay action on an endstop condition?
-
I will be using a water cooled heatsink, and have found a low flow volume flow sensor that, while flowing as little as 0.9l/hr, will work in a NC condition, and gonopen if there’s no liquid flow. The issue I can see is upon startup, while it build pressure and a minimum flow rate to go from open to closed. I can foresee getting stuck with a shutdown before it even can start, if the condition is processed before enough flow occurs to send the switch into a closed condition.
Here’s the part ....
-
Maybe you can jerry rig something like this
M581 triggers on pin on rising(?) edge
rewrite trigger to execute the end goal
use G4 to dwell for your deadband time
use M582 to determine if the trigger is still asserted, and if it is hopefully the rewritten code is used.Another trigger on the falling edge to reset the trigger (maybe you can get away with incorporating this in the first trigger)
-
Alternatively use a G4 in the config.g to allow the system time to start flowing before activating the endstop/trigger in the first place.