This document describes a machine for electric machining of conductive materials. It uses a servo-mechanism to control the distance between an electrode tool and the workpiece. The improved servo-mechanism uses an electromagnetic device tapped into the average voltage between the electrode and workpiece. This controls a hydraulic distributor and hydraulic system to shift the electrode position in response to changes in the voltage gap. It allows for very precise and rapid control of the electrode distance during machining.