Synchronize feed and spindle speed as function of pitch of screw, thread