Grinding and/or erosion machine having a tool spindle that can be driven about a spindle axis, said tool spindle being configured for the accommodation of a grinding or erosion tool, having a workpiece holding device being disposed for accommodating a workpiece, having a machine axis arrangement comprising several machine axes, said axis arrangement being configured for the rotational or translational movement or for the positioning of the tool spindle and/or the workpiece holding device, wherein the workpiece holding device can be rotated or pivoted by means of a rotation axis about the axis of rotation in order to adjust the angle between a longitudinal axis of the workpiece holding device and the spindle axis, having a position detecting device, said device being configured for detecting the position of each of the present machine axes, having an electrically conductive first measuring body, said measuring body configured to be accommodated in the workpiece holding device and with an electrically conductive second measuring body configured to be accommodated in the tool spindle, wherein the second measuring body accommodated in the tool spindle can be connected to a supply voltage potential and a monitoring device, and wherein the first measuring body accommodated in the workpiece holding device can be connected to a specified reference potential, having a control device that is connected to the monitoring device and to the position detecting device and is configured to performing a method for gauging and/or referencing, comprising the following steps: - Posistioning the workpiece holding device in a first position of the rotation axis at a specified angle of rotation about the axis of rotation, - Driving at least one machine axis in order to move the measuring bodies (27, 28) relative to each other and to bring them into contact with each other at a contact location, - Storing in memory the actual positions of the at least one driven machine axis when the monitoring device detects that, due to a contact, a measuring current flows between the measuring bodies (27, 28), - Posistioning the workpiece holding device in another position of the rotation axis at a specified angle of rotation about the axis of rotation and moving to a contact location in the other position of the rotation axis. having a tool spindle that can be driven about a spindle axis, said tool spindle being configured for the accommodation of a grinding or erosion tool, having a workpiece holding device being disposed for accommodating a workpiece, having a machine axis arrangement comprising several machine axes, said axis arrangement being configured for the rotational or translational movement or for the positioning of the tool spindle and/or the workpiece holding device, wherein the workpiece holding device can be rotated or pivoted by means of a rotation axis about the axis of rotation in order to adjust the angle between a longitudinal axis of the workpiece holding device and the spindle axis, having a position detecting device, said device being configured for detecting the position of each of the present machine axes, having an electrically conductive first measuring body, said measuring body configured to be accommodated in the workpiece holding device and with an electrically conductive second measuring body configured to be accommodated in the tool spindle, wherein the second measuring body accommodated in the tool spindle can be connected to a supply voltage potential and a monitoring device, and wherein the first measuring body accommodated in the workpiece holding device can be connected to a specified reference potential, having a control device that is connected to the monitoring device and to the position detecting device and is configured to performing a method for gauging and/or referencing, comprising the following steps: - Posistioning the workpiece holding device in a first position of the rotation axis at a specified angle of rotation about the axis of rotation, - Driving at least one machine axis in order to move the measuring bodies (27, 28) relative to each other and to bring them into contact with each other at a contact location, - Storing in memory the actual positions of the at least one driven machine axis when the monitoring device detects that, due to a contact, a measuring current flows between the measuring bodies (27, 28), - Posistioning the workpiece holding device in another position of the rotation axis at a specified angle of rotation about the axis of rotation and moving to a contact location in the other position of the rotation axis. - Posistioning the workpiece holding device in a first position of the rotation axis at a specified angle of rotation about the axis of rotation, - Driving at least one machine axis in order to move the measuring bodies (27, 28) relative to each other and to bring them into contact with each other at a contact location, - Storing in memory the actual positions of the at least one driven machine axis when the monitoring device detects that, due to a contact, a measuring current flows between the measuring bodies (27, 28), - Posistioning the workpiece holding device in another position of the rotation axis at a specified angle of rotation about the axis of rotation and moving to a contact location in the other position of the rotation axis.