https://www.vishay.com/docs/83741/83741.pdf example 2
I have existing H22A2 optocouplers that I am trying to run 12vdc through to get a plc input to turn on and off. I am using a 1k resistor on the 5vdc LED. I am using a 2.7k resistor on the OPTOTRANSISTOR side with the 12vdc. I can get the input to turn on and off, but the voltage drop is so minimal that it is way to sensitive to be consistent. Any ideas?
plc model from automation direct BX-DM1E-18ED13 specs https://cdn.automationdirect.com/static/specs/bxdm1e_18ed13.pdf
H22A2 datasheet https://media.digikey.com/pdf/Data%20Sheets/Fairchild%20PDFs/H22A1,2,3.pdf
I will have 4 of the optos going to 4 separate inputs.
'>9.0vdc ON <2.0vdc OFF for inputs
simulate this circuit – Schematic created using CircuitLab