<p>A method for controlling a machine tool is provided to perform a precise operation by changing an initial acceleration and the final deceleration according to the weight of an object for preventing vibration of the object. The optimum transfer data of an object according to the weight of the object is received and stored(100). The weight of the object is received. An object transfer signal is outputted based on the previously stored optimum transfer data(200). The transfer data includes initial acceleration and the final deceleration according to the weight of the object. A weight sensing unit senses a table to load the object.</p>