Disturbance compensation for machine tools with linear motor drives door