Hi,
Yes, Hood is correct. Delete linearity.dat
Then, don't play with the spindle calibration again.

A few notes on setting up a Mach2 PWM controlled spindle.
If using the parallel port you don't need to set a speed or acceleration in the spindle axis tuning tab. If you are using a Smooth Stepper, you Do need to set up an acceleration value.
Controlling a spindle via a 0-10V signal is an Open Loop control. Putting aside Mach3 closed loop function that has some problems, there is no feedback loop to to ensure that the speed you are asking for is actually being obtained by the motor. The
The control voltage is generated as a ratio of the speed set by the S over the maximum speed set for the Mach3 pulley being used.
So, if you are using Pulley 1 and have set its maximum speed to 5000 rpm, then when you set the speed in Mach3 to 1000 rpm , 2 volts is generated as
1000rpm/5000rpm * 10V = 2V
or a 1/5 of the maximum speed.
Now,the speed of most spindles is fairly linear with respect to the control voltage. More so for VFD controlled spindles as they have their own feedback loop.
A DC spindle is very linear in the 10% to 90% speed range. Below 10% the spindle needs to overcome the drive chain friction and so the actual speed will usually be lower than asked for.
Above 90%, the spindle speed saturates and again is usually lower than asked for. So, the response is 'S' shaped. The important thing to note is that it is linear in the spindle working range. After all, if you want the spindle to go flat out it doesn't matter that it is off by 5%. But, if you want the spindle speed to be 1000 rpm it is important to be as close to that as possible.
You use the Max Pulley speed setting to calibrate the spindle. This is how I do it;
1. Initially let the spindle warm up for 10 minutes running at around 50%
2. Initially set the Max pulley speed to 1000rpm
3. In Mach3 set the speed to 1000rpm and measure the actual speed. (say 3145rpm)
4. Enter 3145 into the Max speed pulley setting
5. Set the speed to around 50%, say 1500rpm and measure the actual speed. It will probably be low.
6. If the actual speed is low, increase the Max speed pulley setting and repeat steps 5 & 6 until the actual speed matches.
Basically, you want to adjust the Max pulley speed to that the actual speed matches the set speed in the area that you do most of the work on you lathe. I can usually get the actual speed within a few rpm of what I set.
Hope this helps.
Cheers,
Peter.