Depending on the model, the electrical connection is made using a cable or a connector.
Know more about Balluff BML