Electronic gearbox with linuxcnc
- vmihalca
- Offline
- Platinum Member
Less
More
- Posts: 344
- Thank you received: 21
08 Nov 2016 15:10 #82591
by vmihalca
Electronic gearbox with linuxcnc was created by vmihalca
Hello,
I am configuring now my control box with mesa 7i76e.
I have a manual lathe that was converted to cnc, currently with trapezoidal screws.
I still do manual turning and I need to keep that function. Right now I have an ABZ encoder on the spindle, so I would like to do some software gearbox even without a gcode program running.
I just want the leadscrew to turn at a specific speed proportional to spindle speed, and change the feed rate somewhere in the software from 0.1 to 0.01/rev.
From what I've inspected so far, linuxcnc seems quite flexible so I have the feeling this could be done.
Can anyone give any thoughts on this so that I can dig deeper and see how to actually get this done.
I am configuring now my control box with mesa 7i76e.
I have a manual lathe that was converted to cnc, currently with trapezoidal screws.
I still do manual turning and I need to keep that function. Right now I have an ABZ encoder on the spindle, so I would like to do some software gearbox even without a gcode program running.
I just want the leadscrew to turn at a specific speed proportional to spindle speed, and change the feed rate somewhere in the software from 0.1 to 0.01/rev.
From what I've inspected so far, linuxcnc seems quite flexible so I have the feeling this could be done.
Can anyone give any thoughts on this so that I can dig deeper and see how to actually get this done.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4862
09 Nov 2016 16:44 - 09 Nov 2016 16:47 #82614
by andypugh
Replied by andypugh on topic Electronic gearbox with linuxcnc
It is entirely possible to do what you describe, though you will need LinuxCNC running.
If you have LinuxCNC running then you might as well use something like my lathe macros or nativeCAM or ngcgui .
That way you can work like on a manual lathe with auto-feed, except the auto-feed stops and repeats at the end of the cut, and can do tapers and radiuses.
I used my lathe macros yesterday to make a new spindle-end plug for holding a centre. I only needed to type in 5 numbers and press "go" to make an MT2 mandrel, then change the diameters and angle to turn the OD to suit the spindle (the part already had an MT2 socket). I have just got a touch-screen version working, and will add it to the thread when I remember.
If you have LinuxCNC running then you might as well use something like my lathe macros or nativeCAM or ngcgui .
That way you can work like on a manual lathe with auto-feed, except the auto-feed stops and repeats at the end of the cut, and can do tapers and radiuses.
I used my lathe macros yesterday to make a new spindle-end plug for holding a centre. I only needed to type in 5 numbers and press "go" to make an MT2 mandrel, then change the diameters and angle to turn the OD to suit the spindle (the part already had an MT2 socket). I have just got a touch-screen version working, and will add it to the thread when I remember.
Last edit: 09 Nov 2016 16:47 by andypugh.
Please Log in or Create an account to join the conversation.
- ttt
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 21
21 Jan 2020 17:08 #155335
by ttt
Replied by ttt on topic Electronic gearbox with linuxcnc
This is an old post but it since this shows up as the first hit on Google here is my config to do exactly what the poster wanted to do:
forum.linuxcnc.org/47-hal-examples/38233...arbox-mode-for-lathe
forum.linuxcnc.org/47-hal-examples/38233...arbox-mode-for-lathe
The following user(s) said Thank You: vmihalca
Please Log in or Create an account to join the conversation.
- vmihalca
- Offline
- Platinum Member
Less
More
- Posts: 344
- Thank you received: 21
21 Jan 2020 17:24 #155336
by vmihalca
Replied by vmihalca on topic Electronic gearbox with linuxcnc
Awesome, can’t wait to try it!
I scrolled a bit the code from my phone browser, and I have a question, does it works with metric leadscrew?
If not I will have to make a fork and add a pull request after trying it.
Thanks!
I scrolled a bit the code from my phone browser, and I have a question, does it works with metric leadscrew?
If not I will have to make a fork and add a pull request after trying it.
Thanks!
Please Log in or Create an account to join the conversation.
- ttt
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 21
21 Jan 2020 18:21 #155344
by ttt
Of course. You have to customize Z, X and A scale values for your machine no matter what since it's very unlikely you will have the same setup I have an imperial lead screw and cross slide but my .hal and python code is all mm internally.
Replied by ttt on topic Electronic gearbox with linuxcnc
does it works with metric leadscrew?
Of course. You have to customize Z, X and A scale values for your machine no matter what since it's very unlikely you will have the same setup I have an imperial lead screw and cross slide but my .hal and python code is all mm internally.
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds