![]() |
| PNP vs NPN Sensors – MY CREATIVE ENGINEERING (myce.com.my) |
Wiring a 3-wire proximity sensor to a PLC? The first thing to get right is whether the sensor is PNP or NPN, and whether your PLC input is sourcing or sinking. Match them correctly and the sensor works first time; mismatch them and the input never switches.
Step 1: Check the PLC input type
Confirm whether your PLC digital input is a sinking input (it expects +24 V from the sensor) or a sourcing input (it expects the sensor to pull it to 0 V). Check the PLC manual or the input terminal marking.
Step 2: Identify the sensor wires
Most 3-wire sensors use Brown = +24 V, Blue = 0 V and Black = output. Wire colours can vary, so always check the sensor datasheet.
Step 3: Wire a PNP sensor
A PNP (sourcing) sensor switches +24 V to the PLC input when it turns ON. Use it with a sinking PLC input.
Step 4: Wire an NPN sensor
An NPN (sinking) sensor switches the PLC input to 0 V when it turns ON. Use it with a sourcing PLC input.
Quick wiring check
- PNP output ON → the PLC input receives +24 V
- NPN output ON → the PLC input is pulled to 0 V
- Confirm the input common wiring before powering up
Quick reference
| Sensor | Output ON | PLC input type |
|---|---|---|
| PNP | +24 V | Sinking |
| NPN | 0 V | Sourcing |
Safety first
- Isolate power before wiring
- Verify the PLC input ratings and the manufacturer's instructions
- Check polarity and terminal labels before switching on
- Have mains-voltage work done by a qualified person
Remember: match the sensor type to the PLC input wiring.
Looking for sensors, relays, PLC accessories and other electrical, electronic and engineering components? Visit myce.com.my and follow @MyCreativ3 for more practical tips.

No comments:
Post a Comment