Your connection to machine safety supply in ChinaFor OEMs, machine builders & integrators EN / GLOBAL
MACHINE SAFETY / WIRING BASICS

NPN vs PNP:
wiring and fault behavior

A PNP output switches +24 V to the load. An NPN output switches the load to 0 V. That one difference decides which PLC or relay input you need, and what happens when a cable gets damaged.

Published 9 November 2026 · By JOYLINKTECH · Sources are listed at the end of the page.

Three-wire DC sensors have a +24 V lead, a 0 V lead and a switched signal lead. NPN and PNP describe how that signal lead switches. Pair a PNP output with a sinking input, and an NPN output with a sourcing input. In the words of the RS article, the PLC input "must be complementary (opposite) of the field device type."

How each output connects to the load

Three-wire DC sensor outputs
PNP (sourcing)NPN (sinking)
Output when ONSignal lead goes to about +24 VSignal lead is pulled to 0 V
Load or input connects betweenSignal lead and 0 V+24 V and signal lead
PLC input type to pair withSinking inputSourcing input
What the input reads as "true"+24 V on the channel0 V on the channel

The input pairing comes from the RS article listed below. RS also notes that the terms are sometimes used "in an alternate manner": a diagram may describe an input as compatible with sourcing devices, which means the input itself is sinking. When a label could refer to either side, check the wiring diagram rather than the label.

RS also warns that the PNP and NPN versions of a sensor are sometimes separated by a single character in the part number, and that some devices offer both outputs. Check the order code before purchase.

What happens when a cable is shorted or cut

On a machine with 0 V connected to the frame earth, the case Omron describes, a damaged signal wire touching the frame is a short to 0 V.

Effect on the load or input, 0 V tied to frame ground
Fault on the signal wirePNP outputNPN output
Short to 0 V or frameNo voltage reaches the load, so it switches off. The sensor output can be damaged if it is not short-circuit protected.The load sees a complete circuit and switches on, or the input reads a false "true".
Short to +24 VThe load stays on regardless of the sensor.The load switches off. When the sensor turns on, its output shorts +24 V to 0 V and can be damaged if it is not short-circuit protected.
Wire brokenThe load switches off.The load switches off.

The broken-wire row assumes the load wiring in the first table. A high-impedance input without a defined pull-down (PNP) or pull-up (NPN) can float instead, and RS warns that sensor leakage current can falsely turn on an input.

For safety, the short to 0 V is the dangerous case. With an NPN output, a frayed cable rubbing on a grounded frame can hold a load on with no way for the sensor to drop it. Omron describes this case for its F3SN/F3SH safety light curtains and calls it "very dangerous". RS describes the same short as a "false true signal" on an ordinary PLC input.

The second row is the weak spot of plain PNP: a short to +24 V keeps the load energized. Safety outputs handle that fault with test pulses.

Why most safety sensors use PNP outputs

Omron's answer for its safety light curtains is that, where equipment is connected to a common 0 V earth, the PNP output prevents a malfunction from an earth fault. If the output lines short to earth, the loads stop because no voltage reaches them. Omron adds that a system connected to "24VDC ground" can also use NPN output equipment, and it offers NPN versions of its F3SN-B series.

An OSSD (output signal switching device) usually builds on the PNP output, although NPN OSSD variants exist, including in the NEWMAZZ table below. For dual channels, test pulses and the fault table versus ordinary PNP, see what is OSSD. The Wikipedia article on OSSDs describes two current-sourcing PNP channels, OSSD1 and OSSD2, that sit at 24 V when the guard is clear. In that state each channel briefly pulses low on a staggered schedule. A channel shorted to +24 V can no longer pulse, and a short between the two channels shows up in the pattern. The device checks that its own outputs actually go low during the pulse, and a safety relay or controller that evaluates the pulses can catch the same faults. Whether a given relay evaluates them or only tolerates them depends on the model. A broken wire drops the channel to 0 V, which is already the safe state.

The PNP output covers the short to 0 V and the test pulses cover the short to +24 V. A plain PNP proximity sensor has only the first protection.

Matching a safety switch to a safety relay

A safety relay module with semiconductor inputs has to match the output type of the switches feeding it, the same way a PLC input card does. The NEWMAZZ catalog lists both polarities, so the variant has to be stated on the order.

Output and input options in the NEWMAZZ 2026 selection manual
SeriesListed output or inputManual pages
MAS01 RFID non-contact switchDual NPN or dual PNP outputs; a cascade wiring diagram with a safety relay module40 to 44
MAS02 non-contact switchOSSD, PNP or NPN transistor, load current up to 200 mA45 to 49
MAS03 switch with magnetic holdingOSSD, PNP or NPN transistor, load current up to 200 mA50 to 55
MAS11 magnetically coded switchNormally closed safety contacts, no transistor output58 to 62
MA9Z safety relay moduleInput variants: dual NPN NC, dual PNP NC, or dual-channel contact input (MA9Z-S) for E-stop buttons and safety doors63 to 64

Keep the polarity consistent: a PNP switch output calls for a PNP-input relay variant, and an NPN output for an NPN-input variant. The manual includes a wiring diagram for MAS01 with a safety relay module; for other combinations, confirm the pairing against the manual's wiring pages or with the supplier before ordering. Treat a polarity mismatch as a wiring error. Depending on the input design, the relay may never see the switch, leakage or pull-up and pull-down resistors can leave the input in an undefined state, or test-pulse checking can stop working. Contact-type switches such as MA1 and MAS11 point to the contact-input variant, MA9Z-S; confirm the input wiring on the MA9Z pages of the manual before ordering. This page does not reproduce that wiring diagram.

The non-contact safety switches page compares the MAS families side by side, and the emergency stop safety relay guide covers inputs and reset modes for E-stop circuits.

Regional habits

Based on what RS calls anecdotal investigation, most European and North American designers choose PNP sensors with sinking inputs, while Asian markets have leaned toward NPN with sourcing inputs. RS also argues that +24 V meaning "on" is easier for programmers and technicians to use and troubleshoot than 0 V meaning "on".

FAQ

Can an NPN sensor connect to a sinking input?

Not directly. The input expects +24 V for "true" and an NPN output only pulls to 0 V. Order the PNP version of the sensor or use an input module of the matching type.

Is PNP better than NPN?

Neither is better in general. PNP is the safer choice on machines with 0 V tied to the frame, which is why most safety outputs use it. NPN is fine when the control system is built for it, and Omron offers NPN versions of its F3SN-B safety light curtains for systems connected to 24 V ground.

Does a safety relay care whether the switch is NPN or PNP?

Yes, if its inputs are semiconductor inputs. MA9Z, for example, is listed with dual NPN NC and dual PNP NC input variants for transistor outputs, plus a contact-input variant, MA9Z-S, for E-stop buttons and door switches. Choose the one that matches the switch output.

Sources

Checked 8 November 2026.

  1. Kim Jackson, Sensor Connections: PNP versus NPN and Sourcing versus Sinking, RS, 31 May 2019. Input pairing, alternate terminology, part numbers, short-to-ground behavior, regional habits.
  2. OMRON Industrial Automation, FAQ02285: Why does the safety light curtain F3SN/F3SH employ the PNP output? Earth-fault reasoning and NPN models for 24 V-grounded systems.
  3. Wikipedia, Output signal switching device, revision of 7 April 2026. OSSD channels, test pulses and fault detection.
  4. NEWMAZZ 2026 Safety Door Switches selection manual (PDF), pages 40 to 64. Output and input variants for MAS01, MAS02, MAS03, MAS11 and MA9Z.

The fault table combines the sources above with basic circuit behavior for a load wired as shown in the first table. Confirm wiring against the datasheet of the exact model before installation.

LET'S TALK ABOUT YOUR APPLICATION

Have a part number.
Or a guarding problem to solve?

Start your inquiry

We use Microsoft Clarity to understand website visits and improve this site. Website privacy notice