I am putting together a small automation machine on a short budget. I raided my "goody box" of salvaged electronics. I found a PLC with sufficient I/O and an assortment of solid state sensors. Some are PNP and others are NPN. I know the difference between the two and how to hook them up to the PLC.
- PNP sources current from DC+ to the load ( the PLC input in this case)
- NPN sinks current from the load to DC-
The question I have (and have always had) is if there are any reasons to prefer one type of device over the other in any particular application. I have used both without any problems, but my intuition prefers PNP. Put the switch before the load.
NOTE: I am not an EE! I'm a tool and die maker that got into electronics by the back door, out of shear necessity.