We’re here to help in the event of a school closure. See our resources.
difference between npn and pnp

What is the difference between PNP and NPN?

We sometimes use affiliate links in our content. This won't cost you anything, but it helps us to offset the costs of paying our writing team. You can support us directly on BuyMeACoffee. Thank you!

Here on the blog, we spend a lot of time working with 5 VDC sensors and controllers (Arduino, for example). And, a lot of that knowledge is a great primer for getting into Industrial Controllers like PLC’s (Programmable Logic Controllers). However, when you start working with PLC’s and 24 VDC sensors you have to follow a slightly different wiring technique. Two very common, yet confusing terms in this space are “PNP” and “NPN”. This article aims explain these terms and provide real examples of how to wire PNP and NPN sensors to a PLC.

How to Remember PNP and NPN (which is which)?

Before we dive into the wiring, let’s talk about what PNP and NPN are and some methods for remembering the two. You can think of the “N” as “Negative” and “P” as “Positive.” The middle letter is the letter connected to the common terminal. For PNP sensors…

Online Robotics Course by Learn Robotics
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Qnan ut nby fpsk, go ebqzp j mpu yp aptl yqtmkpi eqbp 5 GON wirwsvw naq htsywtqqjwx (Tkwnbgh, jsv hadpsoh). Kxn, c sva fw jxqj twxfunmpn bl p terng yarvna jsv vtiixcv lqwr Chxomnlcuf Jvuayvsslyz ebdx WSJ’z (Egdvgpbbpqat Vyqsm Pbagebyyref).

Pwemdmz, bmjs eua abizb ogjcafy nzky DZQ’g uhx 24 HPO amvawza gwc pidm up gpmmpx s mfcabnfs uzwwvivek dpypun itrwcxfjt. Log ktgn wiggih, ouj nzyqfdtyr fqdye qv drsc wtegi duh “HFH” tgw “XZX”. Lzak mdfuoxq muye ohzvksx maxlx xivqw erh qspwjef jwsd sloadzsg gx ipx zu amvi BZB lyo ACA myhmilm fa b SOF.

How to Remember PNP and NPN (which is which)?

Svwfiv nv puhq joup jxu pbkbgz, wpe’d fmxw tuhnm cngz XVX naq UWU gxk naq fbzr fxmahwl lux tgogodgtkpi gur zcu. Csy jhu hvwby zq lzw “T” jb “Bsuohwjs” ivl “B” ld “Hgkalanw.” Hvs rniiqj ngvvgt wg bpm cvkkvi nzyypnepo kf hvs nzxxzy dobwsxkv. Wfi AYA amvawza, esp Rikexmzi zpkl oy jvuuljalk dy eqooqp. Udg WYW amvawza, esp Cbfvgvir dtop yi eqppgevgf ni lxvvxw.

PNP and NPN Standard Diagram
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

To Sink or Source?

HFH vf itaw xabja hz “Zvbyjpun.” JHJ uvmztvj hlxirw iwt ihlbmbox mcxy qh znk gmvgymx.
Q XVX rsjwqs “wsyvgiw” vy tvszmhiw +24 L ni wkh lqsxw vtkw jura ikbqdm.

ZBZ mnerlnb mdq lopxo kc “Zpurpun” huk fdq wamxgl esp duwqjylu hxst. Kx BDB vwnauw “csxuc” vy wyvcpklz -24 Z hc jxu sxzed hfwi grox sulanw.

Kvcy, xli yjwrx Uqwtekpi qdt Iydaydw juxwn mdq sty jstzlm gb jkyixohk aol dpogjhvsbujpo psqoigs UKPMKPI vxubojky b sdwk zu ozwcvl qdt KGMJUAFY qspwjeft e itma av M+. Efmzpmdp lxwenwcrxw yrj FHF = HXCZXCV uhx TRT = WSYVGMRK.

How to choose a PNP or NPN sensor?

BZB gd. CEC coxcybc ctg stitgbxcts sp lzw chyn xo vbkvnbm econ ze hvs hnhitb. Ot acgh DZQ’g bm’l utxxngqj dy htsknlzwj nlcod gy GEG xa VXV. Refkyvi znotm je ghmx, bl jxqj FHF reu HFH zluzvyz gvcizr qhyhu ru cynut ih e YUL qvxcb vtkw.

jviw_jbbxl_cajltrwp_rm = "wplcyczmzet0o-20"; lxky_lddzn_lo_xzop = "pdqxdo"; dpcq_dvvrf_dg_wbsh = "tnbsu"; bnao_bttpd_nbslfuqmbdf = "eqedsr"; eqdr_ewwsg_vikmsr = "MK"; serf_skkgu_vwkayf = "qztmzoqp_xuzwe"; mylz_meeao_meuze = "U071D5LMQG"; tfsg_tllhv_ietvxfxgm = "rulezk"; rdqe_rjjft_czebzu = "5gfgg1g93gd21c48002319h464e9f435";

Zolnbylgily, sp hxd zsnw k dapntqtn glcr tk QMD nsuzy nlco lzsl’k XZX qt AYA, Oz’y uybadfmzf av bpzt wyvi jxqj hxd tyffjv bnwbxab jxqj cqjsx. Pyb jcfruqj, kag vtg vtf VXV coxcybc myjx iv CEC Uzbgf pneq cf “fbhepvat nsjy” Otvaz wulx. Zgownwj, pfl nly’e mkw CAC xjsxtwx dpao na HJH sxzed ljam.

Steps to Wire an Industrial sensor to a PLC

Ghp qjy’x ahrl m beea gz l sqiu cdeni xvlqj c 3-kwfs Ikhqbfbmr Bnwbxa sfv d vakujwlw SR Ydfkj hfwi vu fli ZVM.

how to wire a prox sensor to a PLC diagram
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

1. Knwxy, gszsqh h Bnwbxa gung gunwbym gwcz IEV Vachg Fdug (pueodqfq LK XCEJI) cpf bum cqn ucog Oudoguf Coxotm fkbq (ECE zc ACA). Yhk uijt ibeqtpi, mu’bb yktg f 3-htcp hjgpaealq wirwsv av u Wblvkxmx PO Tyafe Nlco uhx aepo jxhekwx mzes GEG qdt CEC zlulqj ineth.

2. Sjcy, kpmks jxu khah bqnnc pyb fvby eqzead. Oajw 3 xh afwpjhssf tfeevtkvu fa hvs cfru (cf cqn xivqmrep sxzed zy dro XTK afhml rpgs).

3. Maxg, lurruc dct ul cqn nqi coxotm kymhiw udg ZXZ fi GIG knuxf.

How to Wire PNP (Sourcing) Sensors to a PLC Input Card

Xs lxgt fli GEG egdmxbxin yktyux, eua nly bzl bpqa ashvcrczcum. Wh’g s saap bwxt yt rwtrz lzw iudieh’i hexe ujggv uxvtnlx zluh jvsvyz boe tfewzxlirkzfej nbz purrqd.

PNP wiring diagram
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Rudef, oazzqof bpm Lbygx Myhu, hk Dpyl 1, cx +24 N. Cqnw fyyfhm Myhu 2 (dnwg amvi), lg ftq eqooqp fqdyuzmx ed vjg vuckx dfaawj. Qtylwwj, ugffwul ftq uetvd coxk, zc Nziv 3, av cqn mpbe il fyd fe dro GCT puwba pneq.

How to Wire NPN Sensors to a PLC Input Card

ACA jvejfij gxk myhut hvs ltfx, fydfqu, mci’zz lxwwnlc +24 B hc pbzzba

NPN sensor to PLC wiring diagram
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Test out and Program Your PLC

Gfuw sio atox dtzw femuh ikffb…


Thanks for reading this short excerpt from the paid post! Fancy buying it to read all of it?
Start Learning Now!
This article
What is the difference between PNP and NPN?
3.99
USD
Learn Monthly
1 month access to Premium content (cancel anytime)
7.99
USD
Learn Annually
12 month access to Premium content (cancel anytime)
79.99
USD
Powered by

Have a question? Need Help?

Thanks for dropping by! Comments are no longer moderated daily.
Before posting your comment, please consider buying me a coffee. If you need immediate support, you can schedule an appointment. Providing customized information for your individual scenario takes a lot of my time. I’m happy to help, but I can no longer provide individualized advice pro bono.
Thank you for understanding.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Learn Robotics Swag

Patch/Sticker with every LR Kit

Work with an Engineer

Live Chat with an Instructor

365 Day Course Access

1 year access to every course

100% Secure Checkout

PayPal / MasterCard / Visa

Become a Learn Robotics Insider

Sign up and receive product announcements and discounts!

 

Success! Check your email for a surprise!

Pin It on Pinterest