Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Difference Between PNP and NPN Sensors
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Difference Between PNP and NPN Sensors

Difference Between PNP and NPN Sensors

In this article, you will learn the difference between PNP and NPN sensors. Also, we call them as Sinking and Sourcing Sensors.

Last updated: August 22, 2023 10:01 am
Hussien Ghareb
PLC Tutorials Control Systems
3 Comments
Share
6 Min Read
SHARE

Many PLC configurations and standards are variable, even from a single vendor.

Contents
Types of Input SignalsDifference Between PNP and NPN SensorsStructure of Sink and Source sensorsNPN Sensor (Sinking)PNP Sensor (Sourcing)

But, in each of these, there are common components and concepts. Sink & Source connections are these types of connections presented in most of PLC’s vendors.

Today we are going to learn how to make a Sink or Source connection and also, we will clarify the difference between both the connections.

Types of Input Signals

Inputs to, and outputs from, a PLC are necessary to monitor and control a process. Both inputs and outputs can be categorized into two basic types: logical and continuous.

Consider the example of a light bulb. If it can only be turned on or off, it is logical control. If the light can be dimmed to different levels, it is continuous. Continuous values seem more intuitive, but logical values are preferred because they allow more certainty, and simplify control.

As a result, most control applications (and PLCs) use logical inputs and outputs for most applications. Hence, we will discuss logical I/O and leave continuous I/O for later.

Inputs come from sensors that translate physical phenomena into electrical signals.

Typical examples of sensors are listed below in relative order of popularity.

  • Proximity Switches – use inductance, capacitance or light to detect an object logically.
  • Switches – mechanical mechanisms will open or close electrical contacts for a logical signal.
  • Potentiometer – measures angular positions continuously, using resistance.
  • LVDT (linear variable differential transformer) – measures linear displacement

continuously using magnetic coupling.

Difference Between PNP and NPN Sensors

First of all, you have to notice that the difference between the sink and source connections depends on if you’re talking about PLC inputs or outputs, here we are talking about PLC inputs.

Considering the proximity switches as an example would help you to clarify this point.

We have two types of proximity switches (PNP – NPN):

Electrically, a PNP type of proximity switch outputs the current from the sensor with (+) voltage. An NPN type of proximity switch receives the current to the sensor with (-) voltage. As shown in Fig. (1).

Difference Between PNP and NPN Sensors
Figure 1

Structure of Sink and Source sensors

Sinking sensors allow current to flow into the sensor to the voltage common, while sourcing sensors allow current to flow out of the sensor from a positive source.

For both of these methods, the emphasis is on current flow, not voltage.

NPN Sensor (Sinking)

As shown in Fig. (2) the sensor responds to a physical phenomenon. If the sensor is inactive (nothing detected) then the active line is low and the transistor is off, this is like an open switch.

That means the NPN output will have no current in/out.

NPN Sensor (Sinking)
Figure 2

When the sensor is active, it will make the active line high. This will turn on the transistor and effectively close the switch.

This will allow current to flow into the sensor to the ground (hence sinking). The voltage on the NPN output will be pulled down to V-.

Note:

The voltage will always be 1-2V higher because of the transistor. When the sensor is off, the NPN output will float, and any digital circuitry needs to contain a pull-up resistor.

PNP Sensor (Sourcing)

Here in Fig. (3) we can see that the sensor responds to the physical phenomenon.

If the sensor is inactive (nothing detected) then the active line is low and the transistor is off, this is like an open switch. That means the PNP output will have no current in/out.

PNP Sensor (Sourcing)
Figure 3

When the sensor is active, it will make the active line high. This will turn on the transistor and effectively close the switch. This will allow current to flow from V+ through the sensor to the output (hence sourcing). The voltage on the PNP output will be pulled up to V+.

Note:

the voltage will always be 1-2V lower because of the transistor. When off, the PNP output will float, if used with digital circuitry a pull-down resistor will be needed.

Resources

  • Automating Manufacturing Systems with PLC.

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Scan Cycle in SIEMENS PLC
  • Cloud-Based SCADA Projects
  • PLC-based Gas Detection System
  • Create New Project in Studio 5000
  • Rockwell Allen Bradley PLC Projects
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

List of 100 Distributed Control Systems Questions (DCS)
Single-acting Cylinder OR Logic Operation (PLC and Sensors)
Various Types of Delta PLC used in Industrial Automation
Difference Between PLC and CNC Machine
How to Add Unspecified CPU in Tia Portal?
What is CODESYS? Why Do You Need to Learn it?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
3 Comments
  • DAVID KANM says:
    October 29, 2022 at 11:39 am

    I like the question🙋

    Reply
  • Eliecer Méndez says:
    June 27, 2023 at 3:18 am

    Perfecto, me gustó la aclaración. Muy útil para los trabajos que realizo. Muchas gracias.

    Reply
  • Rick H says:
    January 23, 2025 at 9:20 am

    Something not right. You keep saying for NPN and PNP “The voltage will always be 1-2V higher because of the transistor”

    The NPN when active (base high) will short to GND with a voltage near 0. The PNP will conduct from V+ so when active (base low), it will provide a voltage within mV to V+.

    Now, when not active the NPN output (collector) will float, so whatever pull up resistor will provide the voltage from the pull up voltage, that can be different from V+. The pull up will drop a bit of voltage by its resistive value and ohms law, but with a logic load that typically has high impedance, only millivolts are lost. Finally for PNP when not active is also floating, so a mid value pull down is needed to guaranty a logic 0 in the presence of leaks or noise.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Electrical Ladder Diagram Control using Timers Example
Data Types in PLC – Bit, Byte, Integer, Real, String
Demo of a SCADA Software – Level Control System
Factory Acceptance Test (FAT) of a PLC Panel
Structured Text in PLC: Parking Information Systems
PID Controller Tunning Parameters Simulator
Electrical and Instrumentation – Automation Pre-engineering Documents
Types of Cables used in Industrial Automation

Keep Learning

Difference between Power Cables and Signal Cables

Difference between Power Cables and Signal Cables

Siemens S7 300 CPU Status and LED Errors Explanation

Siemens S7 300 CPU Status and LED Errors Explanation

PLC Program for Automatic Mixing Controlling in a Tank

PLC Program for Automatic Mixing Control in a Tank

Variable Speed Control of Propulsion Motor for VSI and CSI type Frequency Converters

Speed Control of Ship Electrical Motor Propulsion

Comparison of Control Loops - Open, Closed, Cascade, Feedforward, Ratio

Comparison of Control Loops – Open, Closed, Cascade, Feedforward, Ratio

Top Automation Vendors

Top Automation Vendors from Around the World – An Overview

PLC Wiring

PLC Wiring Questions for Technicians and Engineers

PID Tuning recommendations

PID Tuning Recommendations based on Process Dynamics

Learn More

Difference Between Single-stage and Multi-stage Compressor

Difference Between Single-stage and Multi-stage Compressor

C-Type Bourdon Tube

Types of Bourdon Tube

Integral Wind-Up Limitation

What is Integral Wind Up ?

Feedforward Control Questions & Answers

Feedforward Control Questions and Answers

Example of PID Control Instruction

How to Configure PID in Siemens PLC?

Code Block Comparison

Compare Online and Offline PLC Programs

How to choose between PLC and DCS Systems

How to choose between PLC and DCS Systems ?

How to Use Loop Calibrator

Troubleshooting with Loop Calibrator

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?