(Solved) Power Draw Bar - Spindle Inhibit
15 Oct 2021 03:28 #223158
by spumco
Power Draw Bar - Spindle Inhibit was created by spumco
Next puzzle I could use some help with...
(please don't suggest lut5 unless someone just gives me a lut5 copy-paste. My brain hurts trying to read that one
Any suggestions on how to prohibit the button/solenoid from working if the spindle is on?
Thanks,
Ralph
- I have a pretty standard pneumatic power draw bar actuated by a solenoid valve
- Air cylinder has a piston position proxy connected to an input
- Momentary pushbutton on the mill head for manual tool changes
- If spindle is on the air cylinder cannot actuate
- Spindle cannot start if
- Button is pressed or
- Cylinder is extended or
- solenoid energized
(please don't suggest lut5 unless someone just gives me a lut5 copy-paste. My brain hurts trying to read that one
Any suggestions on how to prohibit the button/solenoid from working if the spindle is on?
Thanks,
Ralph
Please Log in or Create an account to join the conversation.
15 Oct 2021 12:59 #223200
by andypugh
Replied by andypugh on topic Power Draw Bar - Spindle Inhibit
I have a special HAL component called spindle-interlock for this.
forum.linuxcnc.org/10-advanced-configura...in-conditions#137653
forum.linuxcnc.org/10-advanced-configura...in-conditions#137653
Please Log in or Create an account to join the conversation.
15 Oct 2021 15:44 - 15 Oct 2021 16:02 #223209
by spumco
Replied by spumco on topic Power Draw Bar - Spindle Inhibit
That looks perfect Andy, thank you.
How do I get this new component and pins in to Lcnc?
EDIT - I read the user manual on HAL component configuration, but I don't really get the 'nuts-and-bolts' of doing it.
I don't have the development version installed, just bog-standard 2.8.2. I had so much trouble trying to get the various configurations of 2.8.2/2.9 + python2/python3/QtPyVCP/Probe Basic installed that I'm petrified of breaking a configuration that's been working for (a record) 4 days in a row.
So I install -dev per the user manual here: linuxcnc.org/docs/2.8/html/hal/comp.html
Do I have to run this -dev version every time from now on? i.e. I copy my working-ish config over to -dev, and then more-or-less abandon the non-dev version of LCNC?
How do I get this new component and pins in to Lcnc?
EDIT - I read the user manual on HAL component configuration, but I don't really get the 'nuts-and-bolts' of doing it.
I don't have the development version installed, just bog-standard 2.8.2. I had so much trouble trying to get the various configurations of 2.8.2/2.9 + python2/python3/QtPyVCP/Probe Basic installed that I'm petrified of breaking a configuration that's been working for (a record) 4 days in a row.
So I install -dev per the user manual here: linuxcnc.org/docs/2.8/html/hal/comp.html
Do I have to run this -dev version every time from now on? i.e. I copy my working-ish config over to -dev, and then more-or-less abandon the non-dev version of LCNC?
Last edit: 15 Oct 2021 16:02 by spumco. Reason: Clarification
Please Log in or Create an account to join the conversation.
15 Oct 2021 16:20 #223211
by andypugh
Replied by andypugh on topic Power Draw Bar - Spindle Inhibit
You shoould just need to do this:
linuxcnc.org/docs/2.8/html/hal/comp.html...side_the_source_tree
ie,
Then "man spindle_inhibit" should display (limited) documentation and "loadrt spindle_inhibit / addf spindle_inhibit.0 servo-thread" in the HAL file.
linuxcnc.org/docs/2.8/html/hal/comp.html...side_the_source_tree
ie,
sudo halcompile --install spindle_inhibit.comp
Then "man spindle_inhibit" should display (limited) documentation and "loadrt spindle_inhibit / addf spindle_inhibit.0 servo-thread" in the HAL file.
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
16 Oct 2021 04:08 #223275
by spumco
Replied by spumco on topic (Solved) Power Draw Bar - Spindle Inhibit
Thanks, got LCNC to stop throwing errors on startup once i figured out it's named spindle_interlock and not spindle_inhibit.
I'll have a go at it in the morning, appreciate the assistance.
-R
I'll have a go at it in the morning, appreciate the assistance.
-R
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds