gearchange

More
7 years 8 months ago #126854 by rakic8
gearchange was created by rakic8
Whether the gearchange function can be used for more than two spindle ranges.

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

More
7 years 8 months ago #126891 by pl7i92
Replied by pl7i92 on topic gearchange
you can add more then one gearchange fuinctions or vomponents
but you can also use a simple logic to do it
The following user(s) said Thank You: rakic8

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

More
7 years 8 months ago #127195 by andypugh
Replied by andypugh on topic gearchange
Here is a version I wrote years ago that handles up to 32 gears.

Install it with "sudo halcompile --install gearchange.comp"

That should also generate documentation.
The following user(s) said Thank You: anfänger, rakic8

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

More
5 years 9 months ago #196398 by anfänger
Replied by anfänger on topic gearchange
Hi,

@andypugh do you have an hal example?
I want to use it for my lathe which has 24 gears (3x4 manually switched and and two by an electic controlled hydraulic clutch) To make this more fun I added a VFD and now need a way to scale the output.

thanks Patrick

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

More
5 years 9 months ago #196408 by andypugh
Replied by andypugh on topic gearchange
The HAL setup would depend on how the system is configured to detect the selected gear.

For your setup I think that you would need some HAL logic to convert the 3 inputs into a gear number. Or you could modify the component to suit your system.

As it stands the component expects either an integer number for the selected gear, or a single input bit to be set for each gear. Your system has 8 inputs but they are used in combinations. You could potentially wire pairs of switches to each lever to give binary patterns to be sent to a weighted-sum component, but I think that modifying the component above to have three sets of input bits would be better.

It might actually be easier to use the VFD speed and measured spindle speed to auto-detect the selected gear. (Better still would be to use a speed sensor or encoder on the motor). This is what I do with my milling machine which has 8 gears.

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

More
5 years 9 months ago #196449 by anfänger
Replied by anfänger on topic gearchange
Thanks for answering. Sensors for the mechanical lever would be difficult.The electric clutch would be no problem. The spindle to measure the spindle speed is no problem it has an encoder but I can't fit an encoder to the motor.

I found thread of yours:
forum.linuxcnc.org/47-hal-examples/27071...indle-gear-detection

but I didn't understand it completely yet

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

Time to create page: 0.070 seconds
Powered by Kunena Forum