Adapting PNP Sensor for NPN PLC Configuration

I’m looking into using the Panasonic HG-C1100L3-P sensor as a much more precise alternative to the Keyence LR-X series. My PLC needs the I/O link capability of this particular HG-C model, but is currently set up to accept NPN signals; this I/O link-compatible HG-C only comes in PNP configuration, so it’s incompatible as things stand.

It’s my understanding that the PLC can be reprogrammed to look for the opposite signal, thus accepting the PNP signal, but that it may be designed for NPN with failsafe conditions in mind. Can anyone recommend any method of converting PNP to NPN, maybe via transistor or similar component integration? Any suggestions are appreciated!


Hello Acone,

Welcome to the DigiKey forum.

This is a common problem with industrial controls. Physically, a single resistor should do the trick.

You may be interested in this piece I wrote for using NPN sensors with a PNP (default PLC) - link below.

I suspect you can reverse the polarity suggested in this diagram. Be sure to test for sensor activation with a voltmeter before connecting the PLC.

Please let us know if you were successful.

Best Wishes,


1 Like

We do carry some NPN options that may work for your application. Please review the datasheets to see if one will work for you.

Photoelectric, Industrial | Optical Sensors | Electronic Components Distributor DigiKey