SEARCH

How to tell if PLC is NPN or PNP: A Practical Guide for American Users

Understanding PLC Input/Output Types: NPN vs. PNP Explained

If you're working with Programmable Logic Controllers (PLCs) in the United States, you'll inevitably encounter the terms NPN and PNP. These designations refer to how the PLC's digital inputs and outputs are wired and how they source or sink current. Understanding this difference is crucial for correctly connecting sensors, switches, and other devices to your PLC, ensuring reliable operation and preventing potential damage. This article will break down what NPN and PNP mean in the context of PLCs and provide practical methods for identifying which type you're dealing with.

What Does NPN and PNP Mean in PLC Terms?

At its core, the NPN and PNP classification relates to the internal circuitry of the PLC's input modules and how they interact with external devices. Think of it as defining whether the PLC's input module will "pull" a signal (NPN) or "push" a signal (PNP) from a sensor or switch.

NPN (Negative-Positive-Negative)

In an NPN configuration, the PLC's input module effectively connects the input terminal to ground (0V) when a signal is active. It's called "NPN" because the current flows from a positive voltage source, through the external device (like a sensor), and then into the "N" semiconductor material, through the "P" material, and finally out through another "N" material to ground. For our practical purposes, an NPN input module sinks current. This means the sensor or switch needs to provide a positive voltage to the PLC input to register an "on" state.

PNP (Positive-Negative-Positive)

Conversely, a PNP configuration means the PLC's input module will connect the input terminal to the positive voltage supply (typically 24V DC) when a signal is active. It's called "PNP" because the current flows from the positive voltage source, through the "P" material, then the "N" material, and finally out through another "P" material, which is connected to the external device. In simpler terms, a PNP input module sources current. This means the sensor or switch needs to connect the PLC input to ground (0V) to register an "on" state.

Key Takeaway:

  • NPN Inputs Sink Current: The sensor/switch provides the positive voltage.
  • PNP Inputs Source Current: The sensor/switch connects to ground.

Why Does This Matter?

Connecting a sensor or switch designed for an NPN input to a PNP PLC input (or vice versa) can lead to several problems:

  • Incorrect Operation: The PLC might not detect the signal correctly, leading to unexpected behavior in your automated process.
  • Device Damage: Applying the wrong voltage to a sensor or switch can permanently damage it.
  • Wiring Errors: Incorrect wiring can cause intermittent faults or complete system failure.

Therefore, identifying the type of PLC input/output is a fundamental step in any PLC wiring project.

Practical Methods to Tell if a PLC Input is NPN or PNP

Fortunately, there are several reliable ways to determine whether your PLC inputs are NPN or PNP. You won't always have the manual handy, so knowing these methods is invaluable.

Method 1: Checking the PLC Manufacturer's Documentation (The Most Reliable Way)

The most definitive way to know is to consult the PLC manufacturer's documentation. This will typically be found in:

  • The PLC's user manual.
  • The datasheet for the specific input/output module.
  • The PLC's technical specifications sheet.

Look for terms like "Input Type," "Wiring Diagram," or "Sink/Source." The documentation will explicitly state whether the module is NPN or PNP. Most manufacturers will also provide clear wiring diagrams showing how to connect devices.

Method 2: Examining the PLC Module's Labeling and Markings

Many PLC manufacturers will provide visual cues directly on the module itself:

  • Color Coding: While not universal, some manufacturers use color-coded terminals or markings. For instance, terminals for positive voltage might be red, and ground might be blue or black. Check the manufacturer's legend if available.
  • Symbolic Markings: Look for symbols near the input terminals. Sometimes, you'll see a small arrow pointing away from the terminal (indicating sourcing, typically PNP) or an arrow pointing towards the terminal (indicating sinking, typically NPN). Other times, you might see "L+" or "+" for the positive supply and "M" or "-" for ground.
  • Specific Designations: Some modules will explicitly state "NPN" or "PNP" on the label near the input terminals.

Example: A common convention is that a terminal labeled "+V" or "L+" is the positive supply, and "0V" or "M" is ground. The input terminals themselves will then be designed to interact with these.

Method 3: Using a Multimeter (Requires Power)

This method is very effective but requires the PLC to be powered on and connected to its power supply. Always exercise caution when working with live electrical equipment.

You will need:

  • A digital multimeter (DMM).
  • A small jumper wire or probe.

Steps:

  1. Identify the Common Terminal: Each input module will have a common terminal. This is the terminal that all inputs on that module share. It's usually labeled "C," "COM," or might be connected internally to the positive voltage supply or ground depending on the type.
  2. Measure Voltage at the Common Terminal: Set your multimeter to measure DC voltage. Probe the common terminal and the 0V (ground) terminal of the power supply connected to the PLC. Note the voltage reading – this is your system's DC supply voltage (e.g., 24V DC). Then, probe the common terminal and the positive voltage terminal of the power supply. If it reads 0V, your common is likely connected to ground. If it reads your system's DC voltage, your common is likely connected to the positive supply.
  3. Test with a Known Input (e.g., a simple switch): Connect a simple momentary push-button switch to two input terminals and the common terminal.
  4. If the PLC is NPN: The common terminal of the NPN input module is connected to 0V (ground). When you press the button, it will connect the input terminal to the positive 24V. Your PLC input module then "sinks" this current to ground. To test, connect the common terminal of the input to ground. Connect one side of the switch to a 24V source and the other side of the switch to an input terminal. When you press the button, the input terminal should read 24V with respect to ground.
  5. If the PLC is PNP: The common terminal of the PNP input module is connected to the positive 24V. When you press the button, it will connect the input terminal to ground (0V). Your PLC input module then "sources" this current from the 24V supply to the ground. To test, connect the common terminal of the input to 24V. Connect one side of the switch to an input terminal and the other side of the switch to ground. When you press the button, the input terminal should read 0V with respect to ground.

Simplified Multimeter Test (if you can identify the common and a 24V source):

  • Connect your multimeter's red probe to an input terminal and the black probe to the common terminal of that input group.
  • If the PLC is PNP: When the common is connected to 24V and the input terminal is floating (no switch connected), you should read close to 24V. When you momentarily connect the input terminal to ground (via a switch), the reading should drop to near 0V.
  • If the PLC is NPN: When the common is connected to ground (0V) and the input terminal is floating, you should read near 0V. When you momentarily connect the input terminal to 24V (via a switch), the reading should jump to near 24V.

Method 4: Observing Sensor Wiring (if known)

If you are confident about the type of sensor or switch you are using and how it's wired, you can infer the PLC input type:

  • Sensors/Switches wired to 24V DC: If your sensor or switch is connected to the positive 24V supply and its output is then wired to the PLC input, the PLC input is likely NPN (sinking).
  • Sensors/Switches wired to 0V DC (Ground): If your sensor or switch is connected to ground and its output is then wired to the PLC input, the PLC input is likely PNP (sourcing).

Important Note: This method relies on the assumption that the sensor/switch is wired correctly according to its own specifications and the PLC's requirements.

Common PLC Manufacturers and Their Preferences

While manufacturers offer both NPN and PNP modules, some tend to favor one over the other for certain product lines or regions:

  • Rockwell Automation (Allen-Bradley): They offer a wide range of both NPN and PNP modules. It's essential to check the specific product codes.
  • Siemens: Similar to Rockwell, Siemens provides both options. Their documentation will be your best guide.
  • Omron: Omron also offers both NPN and PNP input modules.
  • Keyence: Keyence is known for offering both, with clear labeling on their modules.

Always verify with the specific model number and documentation.

Common Pitfalls to Avoid

  • Assuming all inputs on a module are the same type: While typically true, always confirm if there are any exceptions within a module.
  • Mixing NPN and PNP devices on the same input module: This is generally not recommended and can lead to confusion and errors.
  • Confusing input and output types: The NPN/PNP designation applies to how inputs receive signals and how outputs send them. Outputs can also be NPN or PNP (sourcing or sinking).
  • Not accounting for wiring conventions: Ensure your ground and positive voltage connections are correctly identified and utilized.

Conclusion

Distinguishing between NPN and PNP PLC inputs is a fundamental skill for anyone working with industrial automation in the USA. By understanding the underlying principles of current sinking and sourcing, and by employing the practical methods outlined above – checking documentation, examining labels, using a multimeter, and observing sensor wiring – you can confidently identify the type of PLC input/output you are dealing with. This knowledge will save you time, prevent costly errors, and ensure the reliable operation of your automated systems.

Frequently Asked Questions (FAQ)

How do I know if my PLC output is NPN or PNP?

Similar to inputs, PLC outputs can also be NPN or PNP. An NPN output will sink current (connect to ground), while a PNP output will source current (connect to the positive supply). The documentation for the output module and its labeling will indicate its type, often with symbols or explicit text. Multimeter testing, with the output active, can also confirm if it's connecting to 0V or the positive supply.

Why is it important to match the sensor's NPN/PNP type to the PLC's input type?

Matching the types ensures that the correct voltage levels are present for the PLC to reliably detect the sensor's state (on or off). If you connect an NPN sensor to a PNP input, the PLC might not receive the correct voltage, or you could potentially damage the sensor or the PLC input module due to improper voltage sourcing or sinking.

Can I mix NPN and PNP sensors on the same PLC input module?

Generally, it is not recommended to mix NPN and PNP sensors on the same input module. Most input modules are designed to be exclusively NPN or PNP. Trying to mix them can lead to incorrect readings, unpredictable behavior, and potential damage to the components if the common terminal is wired incorrectly for one of the sensor types.

What happens if I wire an NPN sensor to a PNP PLC input?

If you wire an NPN sensor to a PNP PLC input, the sensor is designed to provide a positive voltage to the PLC, and the PLC input is designed to accept a connection to ground. This mismatch means the PLC input will likely not see the correct voltage transition to register the "on" state. In some cases, depending on the specific circuitry and voltage levels, it could also lead to damage to either the sensor or the PLC input module.

How to tell if PLC is NPN or PNP