A device for detecting and correcting the positions of electrodes to a predetermined distance d symmetrically about a specified point in three dimensions at which an electrical arc or discharge is to be generated between said electrodes, said point being referred to as the focus, electrode advance means being provided for advancing and retracting each electrode, wherein the device comprises detector means movably mounted in said device to be disposed at and retracted from a predetermined point in space, referred to as the detection point and situated on the path over which the electrodes move, said detector means detecting the presence of an electrode at said detection point.