During calibration, a deviation of an object from a previously referenced position is corrected. The advintec TCP tool measuring system ensures automatically and during operation that the robot program is corrected for the tolerance deviation and that the tool always works at the correct position.