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
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

VFD Simulator Download – Free Yaskawa V1000 Software
Using Clock Memory Bits in TIA Portal – Siemens PLC
Switches, Repeaters, Bridges, Routers, Firewalls
PLC Energize or De-energize the Outputs based on Events
80+ PLC MCQ Questions
Example of Feedback System
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

Questions on Ratio Control System
#15 PLC Best Practices – Safe State when PLC Restarts
PLC Sizes and Applications
PLC Timer Example: Sequential Control of Three Lights with Reset
Types of PLC
What is a Data Block? Global Data Blocks in PLC
4-20 mA Transmitter Wiring Types : 2-Wire, 3-Wire, 4-Wire
Functional Block Diagram PLC Example for Traffic Light System

Keep Learning

Introduction to Schneider PLC

Different Types of Schneider PLC

Structured Text Automatic Gate Logic

Structured Text PLC Programming for Automatic Gate Control

How to Use Symbol Factory Software for Graphic Design in HMI or SCADA

How to Use Symbol Factory Software for Graphic Design in HMI or SCADA?

Connection between PLC and Contactor

Contactor – Basics, Wiring, Connection with PLC

How to Use the Shift and Rotate Instructions in PLC

How to Use the Shift and Rotate Instructions in PLC?

HART Transmitters Loop Checks

Loop Check of 4-20mA or HART Transmitters

PID block from the PLC library

How to Configure PID Controller in Various Schneider PLCs?

On Delay Timer using PLC

ON Delay Timer using PLC

Learn More

Top 100 Power Systems Projects

Top 100 Power Systems Projects – Electrical Engineering

Pneumatic valve operation in sequence mode

Sequential PLC Programming for the Pneumatic Valves

How to Start Writing SCL in Siemens PLC

Rules for Writing SCL Language in Tia Portal

Gas Turbine Troubleshooting Guide

Gas Turbine Troubleshooting Tips

cut way synchronous motor

Synchronous Motors MCQ – Multiple Choice Questions

Why Damper windings used in synchronous motors

Pinch Valve

What is Pinch Valve ?

Infrared Spectrometers Questions & Answers

Infrared Spectrometers Questions & Answers

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?