Patent ID: 8545145

Claim:
A machine tool having a spindle to which a tool for machining a workpiece is attached, and a structure supporting the spindle, the machine tool comprising: a spindle inclination detector including, a string hanging vertically with an upper end fixed to the structure and with a lower end attached to a weight, and any one of a distance sensor attached to the string to measure a distance to a measurement portion of the structure, and a distance sensor attached to the structure to measure a distance to a measurement portion of the string; temperature adjustment means which adjusts temperature of the structure; and a spindle inclination correction controller which corrects an inclination of the spindle due to thermal deformation of the structure, by correcting the thermal deformation of the structure while controlling the temperature adjustment means on the basis of a distance measured by the distance sensor, wherein the spindle inclination correction controller calculates an average distance measured by the distance sensor, and corrects an inclination of the spindle due to thermal deformation of the structure by correcting the thermal deformation of the structure while controlling the temperature adjustment means on a basis of the calculated average.