How to decide between PNP and NPN

Nov. 5, 2016
What signal level sensors and I/O modules should you standardize on?

Control Design reader writes: My question arises due to machines we received at our manufacturing plant in Arizona from an OEM in Asia. All of the PLC 24 Vdc digital input modules were NPN (sourcing 24 V dc) and our plant’s standard is PNP inputs (sinking 24 Vdc inputs). These signal levels (sourcing input module with sinking sensor vs. sinking input with sourcing sensor) seem like they will double the number of input modules and sensor spare parts we stock. We need to make some decisions on NPN vs. PNP transistors.

I’ve been asked to clearly document the electrical standards related to NPN vs. PNP and other I/O signal levels, in a machine standard. The question is what signal level sensors and I/O modules should I standardize on—NPN or PNP—in our U.S. plant, and why do the signal levels seem to be different (negative vs. positive type) on the equipment from Asia? Also, do I have the terminology correct, such as a sourcing sensor connects to a sinking input is a PNP configuration?

In the standards, I also wanted to document when to use a pull-up resistor. Is that a way to convert an NPN to a PNP signal level, or am I confusing that with an open collector input? Or is a better solution to install an opto-isolator or just replace the I/O module and sensors? Finally, are there other signal voltage levels I should document such as 5 Vdc and 120 Vac that would have NPN vs. PNP or other signal issues?

PNP sensors for the U.S. plant

Thomas Kolleck, sensor technology engineer, TurckFor the U.S. market, standardizing on PNP sensors would be the better option as they are more popular and easier to find than their NPN counterparts. PNP sensors are also easier to understand and troubleshoot by technicians, since the sensor will give a high-level voltage signal when the output is active. However, it almost always comes down to personal preference and which sensors are easier for you to source.

Historically, Asia standardized early on NPN sensors, while in Europe the popular choice is PNP.

Generally speaking, the sourcing sensor and sinking input terminology is correct. However, some manufacturers will label an input for the corresponding output device, rather than the actual function of the input itself. In the above example you would use a PNP sensor to connect to a PNP input, even though it is technically a sinking (NPN) input.

An external pull-up resistor could be used to convert an NPN sensor to work with a sinking input. However, care must be taken, as this will invert the logic of the sensor. When the output of the NPN sensor is off, the sinking input will be pulled high. Alternatively, a pull-down resistor can be used to convert from PNP to NPN.

For dc sensors, in addition to NPN or PNP, you might also come across two-wire sensors, which could be wired into a PNP or NPN input in either configuration. However, you should always consider the off-state operational current of the sensor in those cases, as it can sometimes cause problems depending on the voltagelevel requirements of the input.

[sidebar id=2]

About the Author

Mike Bacidore | Editor in Chief

Mike Bacidore is chief editor of Control Design and has been an integral part of the Endeavor Business Media editorial team since 2007. Previously, he was editorial director at Hughes Communications and a portfolio manager of the human resources and labor law areas at Wolters Kluwer. Bacidore holds a BA from the University of Illinois and an MBA from Lake Forest Graduate School of Management. He is an award-winning columnist, earning multiple regional and national awards from the American Society of Business Publication Editors. He may be reached at [email protected] 

Sponsored Recommendations

2024 State of Technology Report: PLCs and PACs

Programmable logic controllers (PLCs) and programmable automation controllers (PACs) are the brains of the machine in many regards. They have evolved over the years.This new State...

2024 State of Technology Report: Packaging Equipment

Special considerations and requirements make packaging equipment an interesting vertical market unto itself. This new State of Technology Report from the editors of ...

High Sensitivity Accelerometers to Monitor Traffic and Railroad Vibration for Semiconductor Manufacturing

This paper examines highly sensitive piezoelectric sensors for precise vibration measurement which is critical in semiconductor production to prevent quality and yield issues....

Simulation for Automation Guide

How digital twin solutions are expanding the capabilities of plant engineers.