Electromechanical contact-making and breaking devices acting as pulse generators for setting