brake inhibitor

More
23 Jan 2020 00:58 #155481 by RobotMatic
brake inhibitor was created by RobotMatic
I am setting up a lathe that has a mechanical spindle brake [disc brake like cars]. I have it working !!. I have connected a selector to allow the operator to activate or deactivate the spindle brake system.i use :

motion.spindle-brake [pin-out] for external conexion.

halui.spindle.brake-on
halui.spindle.brake-off

the selector operates on the halui ,correctly actuate the brake or not. but i need inhibit the braking system. linuxcnc linuxcnc always activates the pin motion.spindle-brake.

I can't find the input pin to inhibit.and I suspect there isn't. Can someone help me with this? thanks

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

More
23 Jan 2020 12:06 #155535 by BigJohnT
Replied by BigJohnT on topic brake inhibitor
If the selector is a physical selector switch, why not use that to inhibit the brake?

In hal you could pass the motion.spindle-brake though an and2 with the input from the selector on one input and the motion.spindle-brake on the other input then connect the output to the brake.

JT

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

More
23 Jan 2020 12:22 - 23 Jan 2020 12:23 #155537 by RobotMatic
Replied by RobotMatic on topic brake inhibitor
thankssssssss !!!!!!, I didn't know how to do it, I will also use it for the Cooland flood to.

thanks for always helping me !!!
Last edit: 23 Jan 2020 12:23 by RobotMatic.

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

More
26 Jan 2020 21:10 #155856 by andypugh
Replied by andypugh on topic brake inhibitor
On my lathe I have three-position switches for spindle brake, coolant and spindle high-low.

These all have on, off and auto positions, where "auto" means that the software is in charge.

As I recall I did this in HAL with a mux component. (mux-generic, 4 way bit type)

The switches are wired to two input pins to select the mux input with is either fixed 0 or 1, or the HAL output pins (such as motion.spindle-brake (or spindle.0.brake on newer LinuxCNC).

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

More
27 Jan 2020 12:48 #155897 by RobotMatic
Replied by RobotMatic on topic brake inhibitor
I'm going to study the mux component.
It can make everything work with and2 as you explained. I'm going to attach the custom.hal file tomorrow, I'd like you to see it, I'm starting with Hal. I found it very difficult to understand at first, but I am taking speed day by day.

i am use halui.......is-idle to know if I have control or have it linuxcnc

thank !! thank !! thank !! Muchas Gracias!!! Thanks for your great help

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

More
27 Jan 2020 13:09 #155899 by andypugh
Replied by andypugh on topic brake inhibitor
loadrt mux_generic config="bb4"
addf mux-gen.0 servo-thread

net manual-on mux-gen.00.sel-bit00 some-io-device-00
net manual-off mux-gen.00.sel-bit01 some-io-device-01
net brake-command spindle.0.brake mux-gen.00.in-00
setp mux-gen.00.in-01 1
setp mux-gen.00.in-02 0

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

More
27 Jan 2020 13:17 #155902 by RobotMatic
Replied by RobotMatic on topic brake inhibitor
Now I understand, it is much simpler !!!! thanks a lot

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

More
28 Jan 2020 17:35 #156028 by RobotMatic
Replied by RobotMatic on topic brake inhibitor
Dear Andy. I attached the file cunstom.hal where I programmed the brake without mux_generic.

I used many functions that from what I could see in mux_generic are already incorporated as the debounce.

This is my first configuration HAl on the real machine, next, i am use mux_generic.

Thank you very much for your great help.

I am with new configuration challenges and I hope to continue counting on your help

N.E.G
Attachments:

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

Time to create page: 0.173 seconds
Powered by Kunena Forum