I connected each wire of the magnetic switch to the wires 7 and 8 of the rj45 cable; one goes to 7 the other goes to 8 from the magnetic switch. I assigned voltage 1 to the socket that a light is plugged in to, but im not sure how its supposed to turn on/off the light. Im messing with settings in the PLC but i dont see anything happening when the switches come in contact and then break the contact