11/10/2026
1a131f77a9dcbcb56771b10715ce4e35

A PNP sensor switches the positive supply to its output wire (a "sourcing" output); an NPN sensor switches the output wire to the negative supply (a "sinking" output). The PLC input must complete that circuit in the opposite direction: a PNP sensor works into a sinking PLC input (common to 0 V), and an NPN sensor works into a sourcing PLC input (common to +V). Verify both data sheets before wiring — terminology varies by vendor and region.

Key Takeaways

  • PNP and NPN describe which supply rail the sensor switches. PNP sources current to the load; NPN sinks current from the load. Neither is "better" — they must simply match the PLC input circuit.
  • The matching rule is directional. PNP sensor → PLC input common connected to 0 V (sinking input). NPN sensor → PLC input common connected to +V (sourcing input).
  • NO/NC is a separate decision. Normally-open versus normally-closed describes the output's switching logic, not the transistor type. Do not confuse the two axes.
  • A mismatched pair usually does not damage equipment immediately — it simply does not work. Wiring errors become destructive mainly through short circuits, overcurrent or wrong supply polarity, which is why every connection is verified before power-up.
  • All wiring statements in this article are general engineering practice. The exact circuit must be confirmed against the data sheets of the specific sensor and PLC input card, and installation must be performed or approved by a qualified electrician.

What PNP and NPN Outputs Actually Are

Most industrial DC sensors are 3-wire devices: a brown wire for the positive supply, a blue wire for the negative supply (0 V), and a black wire for the switched output. The terms PNP and NPN name the transistor type in the sensor's output stage, and they define the direction in which current flows through the load — in this case, the PLC input.

  • PNP (sourcing) output. When the sensor switches on, it connects the output wire to the positive supply internally. Current flows out of the sensor, through the PLC input, to 0 V. The PLC input "sinks" the current the sensor sources.
  • NPN (sinking) output. When the sensor switches on, it connects the output wire to the negative supply (0 V) internally. Current flows from the positive supply, through the PLC input, into the sensor's output. The PLC input "sources" the current the sensor sinks.

2-wire sensors are a different case: the sensor sits in series with the load on a single pair of wires, so the same pair carries both supply and signal. They simplify wiring but pass a small leakage current when off, which can falsely trigger sensitive inputs — check the PLC card's minimum off-state current tolerance when using them.

The PLC Input Side: Sourcing and Sinking Inputs

A PLC digital input is not a passive terminal — it is one half of the current loop. Input cards are built in two mirror-image forms:

  • Sinking input (common connected to 0 V): the input accepts current flowing into it. This is the standard partner for a PNP sensor.
  • Sourcing input (common connected to +V): the input delivers current outward. This is the standard partner for an NPN sensor.

The matching rule, stated once and memorized: the sensor and the input must be opposites. PNP sensor pairs with sinking input; NPN sensor pairs with sourcing input. Many modern PLC input cards support both conventions by re-wiring the common terminal — check the card's manual for its common-terminal scheme. A regional convention note worth knowing: PNP-sourcing practice is dominant in European-designed equipment, while NPN-sinking practice is common in many Japanese and Asian-designed systems. When equipment crosses these ecosystems, mismatches appear — which is exactly when this article's checklist matters.

NO/NC Is a Separate Axis

NPN/PNP and NO/NC answer different questions, and confusing them causes real wiring errors:

  • NPN vs PNP — which supply rail the output transistor switches (the electrical axis).
  • NO vs NC — whether the output conducts when the sensor is activated or when it is idle (the logic axis). A "normally open" output closes its circuit on detection; a "normally closed" output opens on detection.

Both axes are printed on the sensor's data sheet and often on its label. Many KJT Sensors models, such as the published TLS-30C laser distance sensor, offer selectable PNP/NPN digital output on one device, which removes the electrical-axis question at ordering time — the logic axis (and for that model, invertible output behavior) is then set during commissioning. Confirm both axes for the exact model before wiring.

Can a PNP Sensor Connect to an NPN-Style PLC Input?

Directly — no. The current loop cannot close because both devices are oriented the same way. This mismatch does not normally damage anything; the input simply never switches. Engineering options when a mismatch cannot be avoided:

  1. Select a sensor with the matching or selectable output. The cleanest fix is at ordering: many KJT Sensors products publish NPN/PNP output options, and the TLS-30C publishes PNP/NPN as selectable on one model.
  2. Re-configure the PLC input card's common, if the card supports both conventions.
  3. Use an interposing relay, so the sensor drives the relay coil and the relay contact feeds the input — this also provides isolation.
  4. Resistor-based conversion (pull-up or pull-down) exists as a field technique, but it changes thresholds and noise margins; treat it as an engineered modification, not a quick fix, and have it reviewed by a qualified controls engineer.

Any of options 2–4 modifies the control circuit. Have the change designed or approved by a qualified electrician or controls engineer, and update the wiring documentation.

Pre-Wiring Compatibility Checklist

Work through this checklist before connecting any sensor to a PLC input. It is the original working tool of this article — print it, and tick every line against the two data sheets, not from memory.

# Check What to verify Where it is stated
1 Supply voltage and polarity Sensor supply range (e.g., the TLS-30C publishes 10–30 V DC) matches the available supply; brown = +, blue = − Sensor data sheet
2 Output type PNP, NPN, or selectable; push-pull and relay outputs follow different rules Sensor data sheet / label
3 PLC input type Sinking, sourcing, or configurable-common PLC input-card manual
4 Common reference Input common wired to 0 V for PNP sensors, to +V for NPN sensors PLC input-card manual
5 Load current Sensor output current rating covers the input's draw (TLS-30C publishes ≤100 mA output current) Both data sheets
6 Logic axis NO/NC (or invertible) behavior defined; consequences of a wire break considered (fail-safe logic) Sensor data sheet; machine risk review
7 Connector pinout Pin numbers match the pin assignment drawing — a typical A-coded M12 4-pin DC assignment is pin 1 = brown (+), pin 3 = blue (−), pin 4 = black (signal), with pin 2 (white) used for a second function on some models; verify against the exact model's drawing Sensor pinout drawing
8 Wiring practice Power off during wiring; continuity checked with a meter before power-up; shielding and cable condition confirmed; qualified electrician signs off Site electrical procedure

If the machine uses M8 or M12 connectors, pin counts, coding and cable quality affect the same compatibility question — see the dedicated M8-vs-M12 connector guide . And if a previously working input became unstable after a cable or bracket was replaced, that is a troubleshooting case covered in.

When the Question Is Not NPN/PNP at All

Two adjacent decisions are outside this article's scope by design:

  • Analog and digital interface selection (S41/S109). Choosing between 4–20 mA, 0–10 V, RS485 and IO-Link is a different comparison — cable length, noise immunity, diagnostics and update rate trade against each other. That decision is owned by the interface-selection guide . Note only the boundary here: NPN/PNP are discrete (on/off) outputs; 4–20 mA and 0–10 V are analog; RS485 and IO-Link are digital communication. A sensor model may offer several of these on different variants — the TLS-30C, for example, publishes PNP/NPN switching plus 0–10 V / 4–20 mA analog plus RS485 Modbus RTU on one device.
  • Intermittent inputs after correct wiring. If a correctly matched sensor-input pair still flickers, the causes are usually electrical noise, marginal voltage, contact problems or input filtering — the intermittent-PLC-input troubleshooting guide works through that diagnosis.
  • Custom interface electronics. When a machine needs non-standard signal conditioning, protocol conversion or a purpose-built input stage, that is a control-board engineering task; see the custom control-board specification guide. KJT Sensors' automation division publishes PCBA development, microcontroller development and industrial control-board capabilities for such projects.

1a131f77a9dcbcb56771b10715ce4e35

KJT Sensors Connection and Interface Evidence

Verified KJT Sensors published material relevant to this article (2026-10):

  • Sensors with documented output options. The TLS-30C laser distance sensor page publishes PNP/NPN-selectable digital output (≤100 mA), 0–10 V / 4–20 mA analog, RS485 Modbus RTU, 10–30 V DC supply, an M12 connector and a wiring-diagram section — an example of the data-sheet information the checklist above asks for.
  • Connection accessories. The KJT Sensors accessories page lists pin-and-socket connectors, flange plugs, cable glands, connecting and extension cables, bus cables, junction boxes, field-wireable variants and M8/M12 patch cords, plus sensor brackets — the hardware layer that turns a correct circuit design into a reliable installation.
  • Custom control electronics. The automation and intelligent control division publishes custom sensor development, PCBA development and production, microcontroller development and industrial control-board design for non-standard interface requirements.

Browse the full portfolio in the KJT Sensors product center.

Limitations and Safety Notes

  • This article explains general DC sensor-to-PLC wiring practice. It is not a wiring diagram for any specific installation: the exact connection must follow the data sheets and drawings of the specific sensor model and PLC input card, and applicable electrical codes.
  • AC sensors, relay outputs, push-pull outputs, NAMUR circuits and safety-rated outputs follow different rules and are not covered here. Safety-related circuits must be designed and reviewed under the applicable safety standards by qualified personnel.
  • Never wire or re-terminate with power applied. Verify supply voltage, polarity and pinout with a meter before power-up. Installation and modification must be performed or approved by a qualified electrician.
  • Published KJT Sensors figures quoted here (supply range, output current, interfaces) are manufacturer-stated and model-specific; confirm them on the exact model's current data sheet.

Frequently Asked Questions

What is the difference between sourcing and sinking? Sourcing and sinking describe which direction conventional current flows through the load. A sourcing (PNP) device delivers current to the load; a sinking (NPN) device receives current from the load. The sensor and the PLC input must be opposites — one sources, the other sinks — or the current loop never closes and the input never switches.

Can a PNP sensor connect to an NPN PLC input? Not directly; the circuit cannot complete. Practical fixes, in order of preference: order the sensor with the matching or selectable output (KJT Sensors publishes NPN/PNP options on multiple families), re-configure the input card's common if it supports both conventions, or insert an interposing relay. Resistor conversion is an engineered modification that needs qualified review.

What must be checked before wiring a sensor to a PLC? Eight things: supply voltage and polarity, the sensor's output type, the PLC input type, the common-terminal reference, output current rating, NO/NC logic, connector pinout against the model's drawing, and a power-off continuity check before energizing. The full checklist with source references is in the table above.

Does NPN vs PNP affect the sensor's detection performance? No. NPN and PNP describe only the output circuit, not the sensing element. Detection range, repeatability and response are identical for the same sensing design; the output type must simply match the controller. Choose by the PLC input convention of the machine, not by sensing performance.

Is NO/NC the same as NPN/PNP? No. NPN/PNP is the electrical axis (which supply rail the output switches); NO/NC is the logic axis (whether the output conducts on detection or at idle). Both are stated separately on the data sheet. Some models also allow the logic to be inverted in software during commissioning.

What happens if I wire the output to the wrong common? With the common on the wrong rail, the input typically stays permanently off or permanently on — the circuit is incomplete or shorted through unintended paths. The greater risks are short circuits and reverse polarity, which can damage the output stage. This is why the checklist ends with a power-off continuity check and qualified sign-off before energizing.

Conclusion

NPN versus PNP is a matching problem, not a performance problem: PNP sensors source current into sinking inputs, NPN sensors sink current from sourcing inputs, and the common terminal ties the loop together. Verify both data sheets, work through the eight-point compatibility checklist, and have the installation reviewed by a qualified electrician — then NPN/PNP stops being a source of commissioning surprises.

Need help matching sensors to your controller? Send KJT Sensors your PLC input-card model and the sensor data sheet or application details — the application team will confirm output compatibility and recommend suitable models and connection accessories. Browse sensor connection accessories or start from the product center.


Sources

# Source Type Used for
1 KJT Sensors TLS-30C model page — https://www.kjt-sensors.com/show-559.html (verified 2026-10-10) KJT Sensors first-party PNP/NPN-selectable digital output; ≤100 mA; 0–10 V / 4–20 mA; RS485 Modbus RTU; 10–30 V DC; M12 connector; wiring-diagram section (all manufacturer-stated)
2 KJT Sensors accessories page — https://www.kjt-sensors.com/list-cgqpj.html (verified 2026-10-10) KJT Sensors first-party Connector portfolio: pin/socket connectors, flange plugs, cable glands, connection/extension/bus cables, junction boxes, field-wireable variants, M8/M12 patch cords, brackets
3 KJT Sensors automation and intelligent control division — https://www.kjt-sensors.com/list-zdhznkzsyb.html (verified 2026-10-10) KJT Sensors first-party Custom sensors, PCBA development, microcontroller development, industrial control boards
4 KJT Sensors product center — https://www.kjt-sensors.com/list-product.html (verified 2026-10-10) KJT Sensors first-party Portfolio navigation
5 KJT Sensors inductive proximity page — https://www.kjt-sensors.com/list-jjkg.html (verified 2026-10-09) KJT Sensors first-party Proximity families with NPN/PNP output options (session-verified)
6 KJT Sensors Automation Control Equipment and Sensor Accessories Category Knowledge Bases (internal, 2026) KJT Sensors internal documentation Accessory selection guidance; connector/cable/bracket application context

 

https://www.kjt-sensors.com/
KJT Sensors

About Author

Leave a Reply

Your email address will not be published. Required fields are marked *