Thermal distortion compensation is activated in the PLC and based on temperature readings from additionally installed temperature sensors. They are located at characteristic points of the machine tool and compensation is made there.