gearchange

More
21 Feb 2019 09:51 #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
22 Feb 2019 07:51 #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
26 Feb 2019 21:28 #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.
Attachments:
The following user(s) said Thank You: anfänger, rakic8

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

More
24 Jan 2021 11:32 #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
24 Jan 2021 14:38 #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
24 Jan 2021 18:54 #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.

More
24 Jan 2021 19:16 #196454 by andypugh
Replied by andypugh on topic gearchange
Maybe some sort of sensor detecting the motor fan blades?

This might not be necessary with a modbus-controlled VFD. The one on my mill is controlled by analogue voltage so I don't have the actual motor speed, just the commanded.

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

More
24 Jan 2021 19:58 #196463 by anfänger
Replied by anfänger on topic gearchange
yea same here. just analog out. But I think it can talk modbus. but why would this be better compared to an analog control?
Couldn't I calculate from the voltage and the rpm of the motors it speed.
can't simply set the gear with an hal input

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

More
24 Jan 2021 20:04 #196466 by andypugh
Replied by andypugh on topic gearchange

yea same here. just analog out. But I think it can talk modbus. but why would this be better compared to an analog control?


With Modbus the VFD reports back the current speed. With analogue control your motor speed is only the programmed speed once the ramp up and ramp-down have finished.

can't simply set the gear with an hal input


Is that a question or a statement? You certainly could enter the currently-selected gear in a VCP box and connect that to the gearchange comp in HAL, but that seems inelegant.

My lathe has only two gears, I think that I am glad about that :-) (And I have managed to program it to switch speeds on-the-fly during G0 moves)

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

More
24 Jan 2021 22:06 #196474 by anfänger
Replied by anfänger on topic gearchange
Yes it would be an quick and dirty solution. An alternative start would would be using 2400 and 1600 rpm with the electric clutch.
I am slowly getting an idea how I can build something to automatically change the manual gears

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

Time to create page: 0.140 seconds
Powered by Kunena Forum