Hello, I'm currently retrofitting an old mini lathe to CNC using LinuxCNC as controller.
My goal is to understand how to setup a servo motor as a spindle and how to synchronize it with the Z carriage in order to do rigid tapping and plain threading (I probably won't ever do rigid tapping on this machine but for future projects it will certain come in handy knowing how to do it).
As far as I know for plain single point threading only the encoder index signal is needed, instead for tapping the encoder quadrature phase A and B are required too.
My current hardware is composed of: PCI express parport, a cheap chinese 5 axis breakout board with optoisolated inputs, Leadshine 57bl180d servo motor + ACS806 servo drive, one nema17 stepper for the X axis and one nema23 stepper for the Z axis.
The servo drive works with pulse/dir signals (I've tried to set it up as the X axis, using stepconf wizard to configure its parameters, and it works fine) and outputs the encoder differential quadrature phase A, B and index Z.
Unfortunately I've no experience at all with advanced HAL programming other than using the stepconf wizard so any advice and suggestions would be greatly appreciated!!
Thanks, Matteo