A connector for supplying electric power to a machine or other devices that require electrical energy, the connector facilitating and securing the connection, thereby preventing possible accidental disconnection. The connector comprises a male connector element, a protective piece, and a blocking device that, in a closed position of the connector, provides double blocking on a single element forming part of the male connector element, to prevent the connector of the invention from disconnecting. The blocking device is configured to block pins from tilting in the closed position of the connector, wherein the blocking device comprises rear projections solidly connected to the protective piece, and end portions solidly connected to the pins.