I currently have a plc that only accepts an NPN (sinking) sensor input. I have a site which has both NPN and PNP sensors and I need a circuit that I can use that will accept either type of sensor and provide the appropriate input to the PLC.
“Glad to hear that the circuit worked for you, was wondering why it took so long to hear results. Built from one IC with a handful of discretes, I thought it was a clever, elegant solution. You'll have no problem putting that into production, as I've used similar solutions over the years quite successfully.”