SpindleHub hal component to manage spindle enable near speed etc

More
25 Jan 2023 20:22 - 03 Feb 2023 00:09 #262902 by smc.collins
I needed this as some of my custom hal components need spindle enable and disable and sharing the iocontrol pins isn't always a option. You can pipe your iocontrol for spindle  here and hub it out to upto 5 hal components. Also has Estop feature to shut the spindle down. it handles spindle enable, spindle brake, estop, spindle at speed "with a tolerance input" etc. hope it helps somebody. Code is given as is, no warranty yada yada yada, may kill you might not etc. updated 1 -28-2023, changed the tolerance scheme from absolute value to percentage of spindle commanded versus actual for spindle at speed calculation. Oversight on my part not thinking about super low spindle speeds and a large error tolerance.FYI I am using this component in my main hal file to reduce and uncomplicate the hal file pin naming. ymmv. in fact I have been moving most of my hal components into my main hal file.updated and removed previous comp file.
Attachments:
Last edit: 03 Feb 2023 00:09 by smc.collins.

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

More
28 Jan 2023 17:29 - 28 Jan 2023 17:29 #263098 by andypugh
You can share a single HAL output pin with as many input pins as needed. There is no need for any extra handling.

net some_signal output_1
net some_signal input_1 input_2 input_3
net some_signal input_4
net some_signal input_5
etc.

Each signal can only have one output pin, but can have as many inputs as needed.
Last edit: 28 Jan 2023 17:29 by andypugh.

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

More
03 Feb 2023 00:10 #263561 by smc.collins
added fabs to arguments and math.h to handle inverse numbers for spindle speed, oversight on my part found some wierd math issues with CCW operation of the spindle. updated 2-1-2023
Attachments:

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

More
11 Apr 2023 15:07 - 11 Apr 2023 15:07 #268828 by smc.collins
I'm adding C axis pass through / management to this hal component, I'm going to start testing soon, anyone interested in testing ???
Last edit: 11 Apr 2023 15:07 by smc.collins.

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

Time to create page: 0.240 seconds
Powered by Kunena Forum