Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to wire pnp senor with data acquasition card

I would like to know how to wire PNP sensor with Data acquasition card as i used to wire it with the normal wirring wire with 12v and other GND and the last signal to the card !! and not working

0 Kudos
Message 1 of 4
(4,204 Views)

Sensors with pnp output are rather designed for a PLC environment, the inputs of PLCs usually react to the presence of a certain voltage level with the detection of a logic HIGH state and will detect LOW level when there is no voltage, i.e. if they are disconnected.Most, if not all, DAQ and other PC interface cards I have seen rather have TTL compatible inputs which need a certain voltage level to detect a logic HIGH state and must be tied to GND level (or at least close to it) to detect a logic LOW level. Since a PNP output cannot tie anything to GND you will need some interface circuitry. The most simple one will be a simple transistor circuit with an NPN transistor, with the base tied to your sensor output via a current limiting resistor, the collector connected to +5VDC (many cards provide an auxiliary +5VDC output) via a load resistor, and the emitter tied to GND. A resistor should be tied between the base of the transistor and GND to sink the leakage current of the PNP output to GND. A TTL compatible signal can be obtained directly from the collector of the transistor. The collector will be close to GND (i.e. logic LOW level) when the sensor output is switched on, and will be at logic HIGH level when the sensor output is switched off. 

 

0 Kudos
Message 2 of 4
(4,201 Views)
Thanks for posting on the forums. I would recommend building the external circuitry that Buechen suggested in the above post. This will allow you to interface with a digital I/O board. If this does not work for one reason or another let us know and give us some more details about the exact behavior that you are seeing. Thanks!
Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 3 of 4
(4,184 Views)
BTW I just had the same problem: interfacing of a PLC output running on 24VDC to a TTL compatible input. We solved it by using a commercially available level converter. I work in Germany so I can tell you about german sources for such devices only.
0 Kudos
Message 4 of 4
(4,174 Views)