The present invention is related to a method for compensating positioning errors of a die-sinking electro-
discharge machine tool, wherein the
machine tool comprises a worktable and a
machine head with a
rotational axis device, wherein a machine chuck is detachably mounted at the
rotational axis device, wherein a tool
electrode can be mounted on the machine chuck and a workpiece can be mounted on the machine table, wherein the
machine tool comprises three linear axes (X, Y and Z) and a rotation axis (C), by which the tool
electrode and the workpiece can be moved relative to each other, wherein the
machine tool comprises a
control unit configured to control the position of the linear axes. The method comprises the following steps: a. mounting a first touch probe (45) on the worktable; b. mounting a
reference device (60) on the machine chuck, wherein the
reference device has a clamping portion (61) for clamping the
reference device into the machine chuck and a measurement portion (62), wherein the measurement portion has a plate-like shape with a top surface and a bottom surface, wherein the clamping portion is formed on the top surface and a reference hole (65) is formed on the bottom surface, wherein the reference hole is arranged in a manner that the central axis of the reference hole is aligned with the central axis of the machine chuck when the reference device is clamped in the machine chuck; c. contacting the inner surface of the reference hole at a plurality of positions by the first touch probe, in particular at least four positions in the reference hole; d. determining the center position of the reference hole based on the measured positions; e. calculating a concentricity deviation (CD_X, CD_Y) by comparing the determined center position of the reference hole with the position of the
rotational axis (C-axis), wherein the concentricity deviation defines the radial distance between the rotational axis of the machine head (9) and the central axis of the machine chuck (21); f. measuring a tool
electrode offset by a coordinate
measurement device; g. calculating a tool-electrode correction amount for a target position of the machine axes (X, Y, Z, C) on the basis of the calculated concentricity deviation and the tool- electrode offset; h. adapting the target position of the machine axes to a real position by adding the calculated tool-electrode correction amount; and i. applying the real position for controlling the machine axes by the
control unit of the
machine tool.