Yes that is exactly what I am looking to do. I will do my research to see if I have this in stock and wiring.
Thank You
- - - Updated - - -
Would you have a suggestion to how my wiring should go?
Steve, I am not sure you refer to my response about the SN 7407. But if so:
Find the manual of the SN 7407 on the internet. The drawing will tell you there are seven input/output pairs, pin one is input with pin two as complementing output. Etc.
Connect pin 14 with 5 Volts, pin 7 with ground.
The 7407 is from the 7400 TTL family, inputs are activated by drawing current out of the port. (max 1.6 mA)
Test the output from from the photosensor if it can sink (absorb) 1.5 mA current:
The photosensor is dark, 0 Volt. Connect a 2700 Ohm resistor between the 5 Volts and the output of the photosensor. Is the voltage over the sensor less than 1 Volt?
If yes, you can connect the photosensor straight away to the input of a ' 7407 port.
(If not, let us know, you will need a different approach, with a LM 339 perhaps.)
The output is an open collector, capable of sinking 30 mA. (But not all outputs at the same time! Between you and me, keep the max sum of currents below 100 mA.)
Connect the output of the port to the input of your PLC and via a resistor to the 24 Volts line.
I would start with a value of 22 k Ohm, or 27 k Ohm, if the environment is noisy, you might go lower
Hope to be of help,
wish you a happy and successfull new year
Harry.