Spindle brake delay vs E-Stop

More
09 Jun 2020 20:41 #170865 by Tom_R2E3
Hopefully this hasn't been asked before...

My Mill has a spindle brake. I would like to have a delay to the activation of the brake when I stop the spindle, UNLESS I have activated E-stop. Is there a simple way to set this up in the HAL file?

This is my spindle brake section at the moment:
# -------------------------- SPINDLE BRAKE ------------------------------------
# Intended operation: motion.spindle-brake controls the brake UNLESS the button connected to input-10 is held down

loadrt timedelay count=1
addf timedelay.0 servo-thread

net spindle-brake xor2.0.in0				<=  motion.spindle-brake
net spindle-brake-button xor2.0.in1			<=  hm2_5i25.0.7i77.0.0.input-10

setp hm2_5i25.0.7i77.0.0.output-00-invert 1
net spindle-brake-both xor2.0.out 			=> timedelay.0.in

net spindle-delayed timedelay.0.out => hm2_5i25.0.7i77.0.0.output-00
setp timedelay.0.on-delay 5
setp timedelay.0.off-delay 0

So at the moment I have a second delay for the spindle brake in all conditions.

Thanks in advance,
Tom

Please Log in or Create an account to join the conversation.

More
09 Jun 2020 21:12 #170877 by tommylight
Using inverted spindle-on pin might have been easier and better, in my opinion.
Adding a timedelay when stopping the spindle and adding AND to e-stop out, so the brake will be delayed when stopping it normally and would engage immediately on E-stop.
Something like:
spin-on>invert>timedelay>
------------------------------------|and >brake
estop>>>>>>>>>>>>>>>>

Please Log in or Create an account to join the conversation.

More
09 Jun 2020 21:57 - 09 Jun 2020 22:03 #170883 by alkabal
I have do something similar with enable signal that work fine i think you can check and adapt for brake.

Br
# timedelay before disable enable output for ramp the brake
loadrt timedelay names=timedelay.spindle-enable-soft-stop
addf timedelay.spindle-enable-soft-stop    servo-thread

setp                             timedelay.spindle-enable-soft-stop.on-delay 0
setp                             timedelay.spindle-enable-soft-stop.off-delay 0.85

net spindle-enable            <= spindle.0.on
net spindle-enable            => timedelay.spindle-enable-soft-stop.in
net spindle-enable-soft-stop  <= timedelay.spindle-enable-soft-stop.out
net spindle-enable-soft-stop  => pid.spindle.enable
net spindle-enable-soft-stop  => [HMOT](CARD0).7i83.0.0.analogena0

forum.linuxcnc.org/10-advanced-configura...le-soft-stop?start=0
Last edit: 09 Jun 2020 22:03 by alkabal.

Please Log in or Create an account to join the conversation.

More
10 Jun 2020 06:38 #170915 by bbsr_5a
cand you use a simple ramp UP and Ramp down
linuxcnc.org/docs/html/examples/spindle....#_spindle_soft_start

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum