The invention relates to a grinding and/or eroding machine (10) and to a method for measuring and referencing the assembly (11) of multiple machine axes (12), each of which can be formed by a rotational or translational machine axis. For this purpose, a measuring disc (28) is inserted into a tool spindle (13), and a measuring gauge (27) is inserted into a workpiece holding device (14). The measuring gauge (27) is electrically connected to a reference potential, preferably ground (M). The measuring disc (28) is electrically connected to a supply voltage potential (UV). By establishing a contact between the measuring disc (28) and the measuring gauge (27), a measuring current (IM) flows between the supply voltage potential (UV) and the reference potential, e.g. from the supply voltage potential (UV) to ground (M). The flow of the measuring current (IM) can be detected in a monitoring device (31), and the current position of the machine axes (12) can be ascertained at the time the current flow of the measuring c