Previous in Forum: Sine Wave/Periodic/Variable Frequency Power   Next in Forum: Help with Electrical Diagram
Close
Close
Close
6 comments
Rate Comments: Nested
Associate

Join Date: Apr 2013
Posts: 39

NPN to PNP

05/01/2013 1:22 PM

Can an external pull up resistor be used to convert an NPN output from a sensor to a PNP input to the PLC?

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#1

Re: NPN to PNP

05/01/2013 2:33 PM

I believe there is more to it to change from sourcing to sinking, quick here search showed this,

http://cr4.globalspec.com/thread/18551/Replacing-an-NPN-Sensor-with-a-PNP-Sensor#comment192715

I'm sure there is more out there.

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Associate

Join Date: Apr 2013
Posts: 39
#2
In reply to #1

Re: NPN to PNP

05/01/2013 3:04 PM

The I/O module on the CoDeSys controller I have has PNP inputs. Here is the single channel rotary pulse generator/linear sensor combination (with NPN output) that I want to use.

It is being used to measure length of a masking paper for indexing after each cycle of a machine.

Register to Reply
Power-User

Join Date: Aug 2008
Location: Melbourne, Australia
Posts: 476
Good Answers: 32
#3
In reply to #2

Re: NPN to PNP

05/02/2013 12:32 AM

Yes you can but you will have to make sure that the pull-up is sufficient to get the input to a high enough voltage to work correctly. The max. output current of your device is 40mA so if you arrange for about a 10mA pull up that should suffice. If it doesn't work as expected check the output on a CRO once connected (you probably know that...).

__________________
johny451
Register to Reply
Participant

Join Date: Apr 2013
Posts: 3
#4

Re: NPN to PNP

05/02/2013 7:54 AM

I've used this cable sometimes to convert the input to a PNP input: http://www.ifm.com/products/us/ds/EVC01E.htm

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#5

Re: NPN to PNP

05/03/2013 4:37 PM

I would say that you would be better off driving a PNP transistor with your NPN output through a resistor to the base. Connect the PNP emitter to +V and its collector to your PNP input of the PLC.

Register to Reply
Power-User

Join Date: Jul 2010
Location: North Carolina, USA
Posts: 423
Good Answers: 9
#6

Re: NPN to PNP

05/06/2013 8:26 AM

I am pretty sure Keyence, and maybe some other sensor manufacturers or terminal block manufacturers make a NPN-PNP converting terminal block. If I am remembering correctly the Keyence part was in the $10-20$ range and was in a convenient 6mm terminal block form.

Register to Reply
Register to Reply 6 comments
Copy to Clipboard

Users who posted comments:

jcwelch111 (1); Johny451 (1); JRiversW (1); phoenix911 (1); Rixter (1); tim.conklin (1)

Previous in Forum: Sine Wave/Periodic/Variable Frequency Power   Next in Forum: Help with Electrical Diagram

Advertisement