Why don't you simply pick sensor with NPN output?
Just call your local reps and tell them what you need.
(polarity, sensing distance, diffuse with background suppression etc.)
Take alook at the
https://www.ab.com/catalogs/sensors/catalognumberpdf/ch1/1-99_1-102.pdf
You will notice that 42BA S2LNAE-A2 is NPN so you don't have to change anything. You can use PNP output to drive small relay (700HK slim line from Allen Bradley for example or their twin G2R-SND from Omron).
Use relay contact to turn on PLC input. Even better - use compact relay in form of terminal block or polarity converter block (they are not as popular and hence cost more than relay).
You can also add just simple resistor to PNP sensor (load for open collector - 2.2k 1/2watt is fine) and invert the bit in PLC.
You might be tempted to simply switch "light on/dark on" option on your sensor instead of editing program. Be sure this is safe for the process/machine.
NPN is very common for sensors and PLC comming from Japan and all their equipment I've worked on so far was always using NPN types.
In Europe and America PNP is much more popular but
it's not like you can't find the NPNs as well. I use them all the
time for all Honda and Toyota projects. You are more likely to have
better selection and more readily available sensors if you stick
with Japanese parts (Omron for example). Allen Bradley is
leading brand in America but if you face the long delivery time, try to convert the signal via relay or Nigel's circuit.
This is not preffered method since requirements in industrial enviroment are a bit different and it wouldn't last long when handled by most electricians I know but it would work.
If you go this route just make sure to pick 1/2watt resistors and try to
put it on DIN rail mountable bases (Phoenix Contact or Weidmuller).
Also add LED to show operation and one or two diodes to protect it from
reversed polarity. I would also add current limiting resistor in the collector circuit so the shorts on the output wouldn't kill it.
Have fun
You might want to check industrial automation forums. They normally handle this type of questions:
www.mrplc.com
www.plcs.net