The device is designed in such a way that any faults in the input circuit are detected, e.g. contact welding on an emergency stop pushbutton or on one of the safety contacts on the output relay. The safety device stops the device switching back on and thereby stops the activation of relays K1 and K2.