Controlling a lathe with a stepper spindle #696
Replies: 4 comments 21 replies
-
Should be possible since the stepper spindle binds to an axis motor. Seamlessly might be an issue, it may require some code changes to sync the current position on a switchover. The stepper spindle uses a 64 bit position counter to avoid overflow since it may run continuously for a long time. The axis positions are 32 bit so a conversion must to be done on a switchover? Or C has to be homed before it can be used?
It should be possible to use standard gcode for threading since the stepper spindle provides the encoder signals - derived from the position.
It should work but until I add the option to specify axisletters to use for axes > Z it will display positions for A, B, and C. And the 3D viewer is currently limited to displaying X, Y and Z. For board requirements see above. Anyway, the functionality you require is within the scope of what should be supported and it would be nice if you would try it out/refine it together with me. I cannot do it on my own since I do not have a lathe with a stepper driven spindle to verify on nor do I know the finer details of how it should work. |
Beta Was this translation helpful? Give feedback.
-
I configured the firmware for the board today and installed it to try out whether the interaction with iOSender works as planned. Everything mostly worked out, except for one thing: |
Beta Was this translation helpful? Give feedback.
-
Hi @terjeio ! :-) Unfortunately it shows somewhat weird behaviour:
I've tried to catch this in a quick youtube short: Do you have an idea what I might have configured wrong? |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm in the process of converting a mini lathe to a cnc lathe as well. Although I have quite a bit of experience with different CNC mills, I find that the information about lathes is very minimal. Thankfully projects like grblhal from @terjeio don't forget lathes (unlike fluidnc for example), but it would be great to find more practical information about the builds. I would like to use the BTT Scylla for example (STM32H7) and figuring out XZ is not a problem, but the spindle setup is still something I'm not certain about. Using a stepper as a spindle sounds great since the wiring would be extremely simple and there wouldn't be a need for an external encoder for simple threading (if there are no missed steps off course, but not everybody needs an extremely over engineered rigid machine. I'm more into small aluminium stuff for hobby work). What is your experience up until now? @terjeio support for XZC in the core would be really beneficial if this stepper approach works well. It would allow a CNC lathe to be much more approachable I think. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
first of all thank you for developing such a nice motion control software!
I'm building a small CNC lathe at the moment and am unsure, whether grblHAL supports my needs.
I am using a (closed loop) stepper as a spindle motor since I want to do light turning, threading and C-Axis indexing.
I've seen that there a stepper spindle is supported which is nice unique feature.
Does the stepper spindle allow the user to seamlessly use the stepper as a normal C-Axis? I was also planning to use the stepper to do threading without an extra encoder.
Would this setup work in conjunction with iosender and are there special requirements regarding the board to effectively use the stepper spindle?
Best regards!
Beta Was this translation helpful? Give feedback.
All reactions