Write a Review (requires login)
Don't have the shipment yet, but the wiring
reference cited is the correct data.
Use the NPN scheme. The optical sensor output will be sinking the relay current to ground.
Connect your 24 volt supply (+) to the points marked NPN Sensor +24VDC, and to the point marked “Positive” +24VDC, which is the + coil terminal of your 12VDC relay.
From the – coil terminal of the 12VDC Relay, connect a 220 Ohm resistor, the other end of the resistor going to the point marked “Switched Negative” on the NPN sensor. Connect the point on the NPN sensor
marked “0VDC Negative to the (-) side of your 24 VDC supply (ground).
So, the current path that operates your 12VDC relay will be:
From Ground (- side of your 24 Volt supply)
to the internal switch contacts in the sensor,
out of that switch to through the path marked “Switched Negative”, through the 220 ohm dropping resistor to your 12 VDC relay coil (-) terminal, through the coil and out of the coil (+) terminal to the point marked “Positive +24 VDC”.
Wattage dissipated by the dropping resistor will be 12V X 60 mA (current value given by you)=0.72 W, so the resistor needs to be at least a 1W type. You need to use a relay with a built-in swamping diode, or connect a 1N4001 or equivalent diode across your 12 volt relay coil in reverse polarity. Otherwise the "NPN Sensor" could be damaged by the counter EMF generated when the relay coil is de-energized.
I can draw the schematic for all this on paper and photograph it but how would I upload the .png file to the review page on ALL Electronics.com? I hope this helps.
TEST
[Note from All Electronics: sorry there's no function on the site for adding an image to reviews.]
I ordered 14 sensors for a project to make measurements. One of sensor was showing on the indicator that it was working properly but the output for the PNP (black wire) was not switching on and off. I called ALL Electronics and ordered 2 more and asked for a replacement for the bad one. They sent 3 and randomly the one that they sent to replace the bad one did not work. I did some more testing and it looks like the NPN white wire output is working properly but the PNP black wire is not working on the 2 that I could not get to work. I am really happy with the sensors for $10 each.