Understanding NPN (sink) and PNP (source) is the key to wiring sensors to a PLC. This guide uses the NX-PLC 300 and NX-PS proximity sensors as examples.
NPN vs PNP
| Type | Output behavior | PLC common S/S | Common in |
|---|---|---|---|
| NPN (sink) | Pulls output to 0 V | Connect to 24 V | Asia |
| PNP (source) | Outputs 24 V | Connect to 0 V | Europe / North America |
3-wire sensor wiring
- Brown (BN) → +24 V
- Blue (BU) → 0 V
- Black (BK) → PLC input (e.g. X0)
💡 NX-PLC 300 inputs are bidirectional — just change the S/S connection to work with NPN or PNP sensors.
Output wiring tips
- Add a free-wheeling diode when transistor outputs drive inductive loads (relays, solenoid valves).
- Relay outputs: max 2 A per point, 8 A per common.
- Use NX-RL slim relays for isolation and higher current.
Shielding & grounding
Use shielded twisted-pair cable for analog and high-speed counter signals, grounding the shield at the PLC side only. Route power and signal cables in separate ducts at least 100 mm apart.