I have changed the standard spindle motor on my Boxford lathe as the original no longer functioned correctly.
In place is a 240v servo and drive rated at a maximum of 3000 rpm
The drive uses the 0-10v analogue input for speed control.
I am using LinuxCNC to deliver a PWM signal into a small DAC pcb which is then delivered to the drive as the 0-10v Analogue signal.
Rotation is controlled via a relay PCB to swap the signal from + to -
I can control on/off, direction and rpm
The system works fine, but I need to understand how to control the spindle speed more closely to the actual speed requested by LinuxCNC.
I have in my HAL a scale set to 3000, but I don't understand what frequency value I require or indeed what other parameters I must set to achieve what is required. Currently as I request RPM values via LinuxCNC if I look at the displayed RPM at the actual servo drive there is a mismatch which can either be higher or lower than requested and the differance can vary wildly. It appear the differance is non linear.
I like the sound of Andy's linear component, but I need help in understanding the basics first.
Once I have this set pretty close to what is required, I can then introduce my closed loop encoder to assist a more precise control.