A method for calibrating a rotary apparatus mounted on a movable part of a coordinate measuring machine, which rotary apparatus has a first part, which is fastened to the movable part of the coordinate measuring machine, and a second part which is rotatable relative to the first part about an axis of rotation of the rotary apparatus and on which a measurement sensor for measuring workpieces is mountable, including the steps of:
- moving the rotary apparatus, or a body connected to the second part, by operation of a drive system of the coordinate measuring machine, into a spatial region of a position determining device which is connected to a base of the coordinate measuring machine,
- determining a position of the rotary apparatus, or of the body connected to the second part, relative to the position determining device by means of a plurality of sensors arranged on the position determining device, wherein the position relative to the position determining device is determined with respect to a plurality of linear degrees of freedom of movement by means of the plurality of sensors,
- bringing the rotary apparatus into different rotary positions and, in each of the different rotary positions, determining the position of the rotary apparatus, or of the body connected to the second part, relative to the position determining device by means of the plurality of sensors of the position determining device while the rotary apparatus, or the body connected to the second part, is situated in the spatial region of the position determining device, and
- calibrating the rotary apparatus in accordance with the positions determined by means of the plurality of sensors of the position determining device.