Spindle brake delay
28 Apr 2014 05:23 #46392
by Duc
Spindle brake delay was created by Duc
Looking to make the brake be delayed by seconds before activating so the VFD doesnt error out from the instant braking.
According to Halcmd the timedelay function is working perfect. I can see the timedelay.0.in activate and timedelay.elapsed counts to 3 seconds then timedelay.0.out activates. Im having issues tying the timedelay.0.out to the output to activate the air solenoid.
Code so far
Error
Error: pin 'spindle-delayed' not found
According to Halcmd the timedelay function is working perfect. I can see the timedelay.0.in activate and timedelay.elapsed counts to 3 seconds then timedelay.0.out activates. Im having issues tying the timedelay.0.out to the output to activate the air solenoid.
Code so far
loadrt timedelay count=1
addf timedelay.0 servo-thread
# --- SPINDLE-BRAKE ---
#net spindle-brake hm2_5i25.0.7i76.0.0.output-00
net spindle-brake => timedelay.0.in
linksp timedelay.0.out-b spindle-delayed
net spindle-delayed => hm2_5i25.0.7i76.0.0.output-00
setp timedelay.0.on-delay 3
setp timedelay.0.off-delay 0
# ---setup spindle control signals---
net spindle-brake <= motion.spindle-brake
Error
Error: pin 'spindle-delayed' not found
Please Log in or Create an account to join the conversation.
28 Apr 2014 06:04 - 28 Apr 2014 07:05 #46395
by PCW
Replied by PCW on topic Spindle brake delay
I would change
to
linksp timedelay.0.out-b spindle-delayed
net spindle-delayed => hm2_5i25.0.7i76.0.0.output-00
net spindle-delayed timedelay.0.out hm2_5i25.0.7i76.0.0.output-00
Last edit: 28 Apr 2014 07:05 by PCW.
The following user(s) said Thank You: Duc
Please Log in or Create an account to join the conversation.
28 Apr 2014 06:09 #46397
by Duc
Replied by Duc on topic Spindle brake delay
New rror code is
Pin 'timedelay.0.out-b' does not exist.
Pin 'timedelay.0.out-b' does not exist.
Please Log in or Create an account to join the conversation.
28 Apr 2014 07:06 #46403
by PCW
Replied by PCW on topic Spindle brake delay
yeah the -b is spurious
Please Log in or Create an account to join the conversation.
28 Apr 2014 07:19 #46405
by Duc
Replied by Duc on topic Spindle brake delay
Works like a charm after I looked up what the word meant.
Final code. Increase delay to 8 seconds to give the VFD time to ramp down otherwise it kept trying to drive the spindle.
Final code. Increase delay to 8 seconds to give the VFD time to ramp down otherwise it kept trying to drive the spindle.
loadrt timedelay count=1
addf timedelay.0 servo-thread
# --- SPINDLE-BRAKE ---
net spindle-brake => timedelay.0.in
net spindle-delayed timedelay.0.out => hm2_5i25.0.7i76.0.0.output-00
setp timedelay.0.on-delay 8
setp timedelay.0.off-delay 0
Please Log in or Create an account to join the conversation.
- DeckelHead
- Offline
- Elite Member
Less
More
- Posts: 166
- Thank you received: 2
22 Apr 2018 00:19 #109413
by DeckelHead
Replied by DeckelHead on topic Spindle brake delay
Instead of starting a new thread on this topic, I thought it might be better if I just extended the original one for the benefit of newbies trying to figure stuff out...
Like the original poster, I want a delay before the application of the brake so that the VFD can slow the spindle down (well, actually I'm not sure where to get the brake pads and I don't want to wear them!). My problem is this... I like being able to turn the brake on and off when the spindle is OFF (i.e. not moving). The configuration as shown, however, always has the delay. So...
1. Spindle moving? Introduce the delay
2. Spindle not moving? No delay
The problem here is that I don't think LinuxCNC really has a history of whether or not the spindle turned on since the last application of the brake (some corner cases there but, by and large, this would be an acceptable route). I should state that eventually I plan to have an encoder on my spindle. In that scenario, the decision as to whether or not the spindle was moving as a function of some minimum RPM.
Is any of this possible?
Like the original poster, I want a delay before the application of the brake so that the VFD can slow the spindle down (well, actually I'm not sure where to get the brake pads and I don't want to wear them!). My problem is this... I like being able to turn the brake on and off when the spindle is OFF (i.e. not moving). The configuration as shown, however, always has the delay. So...
1. Spindle moving? Introduce the delay
2. Spindle not moving? No delay
The problem here is that I don't think LinuxCNC really has a history of whether or not the spindle turned on since the last application of the brake (some corner cases there but, by and large, this would be an acceptable route). I should state that eventually I plan to have an encoder on my spindle. In that scenario, the decision as to whether or not the spindle was moving as a function of some minimum RPM.
Is any of this possible?
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
22 Apr 2018 08:06 #109421
by Mike_Eitel
Replied by Mike_Eitel on topic Spindle brake delay
All this is easy in ladder logic.
It's fast enough and has different delay functions.
It's fast enough and has different delay functions.
Please Log in or Create an account to join the conversation.
- DeckelHead
- Offline
- Elite Member
Less
More
- Posts: 166
- Thank you received: 2
22 Apr 2018 15:18 #109428
by DeckelHead
Replied by DeckelHead on topic Spindle brake delay
That sounds fair. I assumed a logic ladder would work, but I've gone down the path of thinking I needed a LL a few times now and have been told that normal HAL components would suffice. I guess I've finally reached something that needs a bit more HP... I'll probably stick with what I've got until I have the console built and the machine running well. Then I'll do tweaks like the brake management.
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
22 Apr 2018 15:35 #109429
by Mike_Eitel
Replied by Mike_Eitel on topic Spindle brake delay
That is a good decision.
Once you understand how to use the ll implementation it will cost U only a few hours to solve your break.
I do my spindle control with it. Have a fairly mix between lcnc and 7 manual hw switches, as i can do old style tapping with minZ switch.
Have fun.
Once you understand how to use the ll implementation it will cost U only a few hours to solve your break.
I do my spindle control with it. Have a fairly mix between lcnc and 7 manual hw switches, as i can do old style tapping with minZ switch.
Have fun.
Please Log in or Create an account to join the conversation.
01 May 2018 21:27 #109947
by andypugh
Replied by andypugh on topic Spindle brake delay
Why not have logic that only applies the brake when the measured spindle speed (from the spindle encoder) is below a limit?
I have exactly this on my mill (though it actually disables the drawbar rather than the brake).
All done in simple HAL, no ladder needed. Just a wcomp connected to encoder.4.velocity ought to work.
I have exactly this on my mill (though it actually disables the drawbar rather than the brake).
All done in simple HAL, no ladder needed. Just a wcomp connected to encoder.4.velocity ought to work.
The following user(s) said Thank You: DeckelHead
Please Log in or Create an account to join the conversation.
Time to create page: 0.115 seconds