Electronic gearbox with linuxcnc

More
08 Nov 2016 15:10 #82591 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.

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

More
09 Nov 2016 16:44 - 09 Nov 2016 16:47 #82614 by andypugh
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.
Last edit: 09 Nov 2016 16:47 by andypugh.

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

More
21 Jan 2020 17:08 #155335 by ttt
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
The following user(s) said Thank You: vmihalca

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

More
21 Jan 2020 17:24 #155336 by vmihalca
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! ;)

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

More
21 Jan 2020 18:21 #155344 by ttt

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.076 seconds
Powered by Kunena Forum