PLC Wiring Diagram: Input/Output Connections

A Programmable Logic Controller (PLC) is the brain of most industrial automation systems. It reads inputs (sensors, switches, pushbuttons), executes a control program, and drives outputs (motors, solenoids, indicator lights). Understanding how to wire PLC inputs and outputs correctly is essential for anyone working in industrial controls, maintenance, or automation.

This guide covers PLC wiring fundamentals: input and output types, wiring diagrams for common configurations, power supply connections, and best practices for reliable installations.

PLC Architecture Overview

A typical PLC system consists of:

  1. Power supply module: Converts AC mains (120V or 240V) to DC (24V) for the PLC and field devices.
  2. CPU module: Contains the processor, memory, and communication ports. Runs the control program.
  3. Input modules: Read signals from field devices (sensors, switches, pushbuttons).
  4. Output modules: Control field devices (contactors, solenoids, indicator lights).
  5. Communication modules: Connect to HMI panels, SCADA systems, other PLCs, or networks (Ethernet/IP, Profinet, Modbus).

Small PLCs (Allen-Bradley Micro800, Siemens S7-1200, Mitsubishi FX5) combine all these into one compact unit. Larger systems use modular racks with separate modules on a backplane.

PLC Input Types

Digital Inputs (DI)

Digital inputs read on/off signals. A digital input is either TRUE (1) or FALSE (0).

Common digital input devices:

Input voltage levels:

Sourcing vs Sinking Inputs

This is the most confusing aspect of PLC wiring for newcomers:

Sinking input (NPN): The PLC input module provides the positive (+) voltage. The field device (sensor/switch) connects the input terminal to the negative (-) / common to turn it on. Current flows INTO the input module.

Wiring: Sensor NPN output connects between the PLC input terminal and 0V (common).

Sourcing input (PNP): The field device provides the positive (+) voltage to the PLC input terminal. Current flows OUT OF the input module to common.

Wiring: Sensor PNP output connects between +24V and the PLC input terminal.

Most modern PLCs accept both sourcing and sinking inputs depending on how you wire the common terminal. Check your PLC manual for the specific common connection.

Rule of thumb:

Analog Inputs (AI)

Analog inputs read variable signals proportional to a physical measurement.

Common analog signal types:

Wiring a 4-20mA sensor:

24V power supply (+) ---> Sensor power (+)
Sensor signal output ---> PLC analog input (+)
PLC analog input (-) ---> 0V / Common
Sensor ground ---> 0V / Common

Some analog inputs are loop-powered (2-wire), where the PLC provides the excitation voltage and reads the current in the loop. Others are externally powered (3-wire or 4-wire).

PLC Output Types

Digital Outputs (DO)

Digital outputs switch field devices on and off.

Three main output types:

1. Relay outputs:

2. Transistor outputs (DC only):

Sourcing transistor output: Provides +24V to the load when ON. Load's other terminal connects to 0V. Sinking transistor output: Connects the load to 0V when ON. Load's other terminal connects to +24V.

3. Triac outputs (AC only):

Analog Outputs (AO)

Analog outputs produce variable signals to control proportional devices.

Common analog output types:

Wiring a 4-20mA output to a VFD:

PLC analog output (+) ---> VFD analog input (+)
PLC analog output (-) ---> VFD analog input (-)

Use shielded cable for analog signals. Ground the shield at the PLC end only to prevent ground loops.

Power Supply Wiring

PLC Power Supply

AC-powered PLCs:

L (Line / Hot) ---> PLC power input L
N (Neutral) ---> PLC power input N
Ground ---> PLC ground terminal

Always use a dedicated circuit breaker for the PLC power supply. Size the breaker per the PLC power consumption specification.

DC-powered PLCs (24V DC):

External 24V power supply (+) ---> PLC +24V input
External 24V power supply (0V) ---> PLC 0V input

Field Device Power Supply

A separate 24V DC power supply (or the same one if the load permits) powers the field sensors and output devices.

Sizing the 24V power supply: Add up the current draw of all sensors, output devices, and the PLC itself. Oversize by 20-30% for safety margin.

Wiring Diagram: Complete PLC System

Here is a typical wiring diagram for a simple PLC system controlling a motor with start/stop buttons and a proximity sensor:

Power Supply Section

240V AC ---> Circuit breaker ---> 24V DC Power Supply
24V DC (+) ---> PLC power input, field device power
0V ---> PLC common, field device common

Input Section

Start button (NO):    +24V ---> Start button ---> PLC Input I0.0
Stop button (NC):     +24V ---> Stop button ---> PLC Input I0.1
Proximity sensor:     +24V ---> Sensor (+), Sensor output ---> PLC Input I0.2, Sensor (-) ---> 0V
Emergency stop (NC):  +24V ---> E-stop ---> PLC Input I0.3
Overload relay (NC):  +24V ---> OL contact ---> PLC Input I0.4

PLC input common terminal connects to 0V (for sourcing input configuration).

Output Section

PLC Output Q0.0 ---> Contactor KM1 coil (one terminal)
Contactor KM1 coil (other terminal) ---> 0V
(For relay output: the PLC output relay switches the 24V to the contactor coil)

PLC Output Q0.1 ---> Running indicator light (+)
Light (-) ---> 0V

PLC Output Q0.2 ---> Alarm indicator light (+)
Light (-) ---> 0V

PLC Program Logic (Ladder Diagram)

Rung 1: [I0.3 (E-stop)]---[I0.1 (Stop)]---[I0.0 (Start) OR Q0.0 (seal)]---[I0.4 (OL)]--- (Q0.0 Motor)
Rung 2: [Q0.0]--- (Q0.1 Running light)
Rung 3: [I0.2]--- (Q0.2 Sensor indicator)

Wiring Best Practices

Cable Routing

Terminal Labeling

Protection

Grounding

Common PLC Wiring Mistakes

  1. Mixing up sourcing and sinking. If sensors do not match the PLC input type, the inputs will not read correctly. Check the sensor type (PNP or NPN) and wire the PLC common accordingly.

  2. Overloading outputs. Each PLC output has a current rating. A contactor coil that draws 3A on a 2A-rated output will damage the PLC. Use an interposing relay for loads that exceed the output rating.

  3. No suppression on inductive loads. Relay outputs switching contactors without a suppression diode or RC snubber will cause contact arcing and premature failure.

  4. Running analog cables near VFD cables. The EMI from VFD output cables corrupts analog signals. Maintain at least 12 inches of separation and use shielded cable.

  5. Shared commons between input groups. Some PLCs have grouped inputs sharing a common terminal. Mixing sourcing and sinking devices on the same group will cause incorrect readings.

Create Your Own PLC Wiring Diagram

A well-drawn PLC wiring diagram is essential for panel building, commissioning, and maintenance. With CircuitDiagramMaker, you can:

Create your PLC wiring diagram -- free

PLC I/O Terminal Identification

Every I/O module has a terminal strip with a mix of input terminals, output terminals, common terminals, and power terminals. The physical layout and labeling are not standardized across manufacturers, so always check the module's datasheet or the label printed on the module itself before wiring.

Terminal Function Typical Label Notes
Digital input point I0.0, I0.1 (Siemens); X0, X1 (Mitsubishi); I:1/0 or a tag-based address (Allen-Bradley) Addressing format is manufacturer- and platform-specific -- byte.bit, octal, and rack/slot/bit schemes are all in use
Digital output point Q0.0, Q0.1 (Siemens); Y0, Y1 (Mitsubishi); O:1/0 or a tag-based address (Allen-Bradley) Same addressing variation as inputs
Input common COM, IC, 0V Ties a group of inputs together; whether it is wired to +24V or 0V determines sourcing vs sinking operation
Output common COM, OC, 0V Same idea as input common, but for the output group
Power terminals 24VDC / 0V (DC units), L / N / PE (AC units) Powers the module logic; field device power is usually supplied separately

Some modules group several inputs or outputs on a single common terminal (for example, one common for I0.0 through I0.7). Others provide an individual common for every point. Check the module's wiring diagram in its datasheet to confirm which arrangement applies before you land wires.

Troubleshooting PLC I/O Wiring

Most PLC I/O problems trace back to wiring rather than the PLC itself. Work through the wiring before assuming a hardware failure.

Symptom Likely Cause Fix
Input never turns on Sensor output type doesn't match the input's sourcing/sinking wiring; failed sensor; blown input fuse Confirm the sensor is PNP or NPN and that the input common is wired to match; check sensor output voltage with a multimeter; check the input fuse if the module has one
Input stays on when it should be off Sensor stuck closed; miswired NC contact treated as NO in the program; leakage current from a nearby AC cable Verify the field device state directly at the terminal; recheck the ladder logic against the actual contact type; separate signal wiring from AC power runs
Output doesn't energize the load Output module fault; load current exceeds the output's rating; output common wired incorrectly Measure voltage at the output terminal with the point commanded on; add an interposing relay if the load exceeds the output rating; recheck common wiring
PLC goes into fault or stop state Program fault; I/O module missing, unseated, or misconfigured; watchdog timeout from electrical noise Read the fault code from the PLC display or programming software; reseat and reconfirm the I/O module configuration; check grounding and shielding if the fault is intermittent

IEC vs ANSI/NEMA Standards for Control Panel Wiring

Which standard applies to a PLC panel depends on where it will be installed. IEC 61131 defines the PLC programming languages, including ladder logic, and is used worldwide regardless of region. IEC 60947 covers the control circuit devices themselves -- contactors, switches, circuit breakers -- and is the reference standard in most of the world outside North America.

In the United States, panel wiring practices instead follow NEMA ICS standards and UL 508A, which cover items like wire ampacity, terminal spacing, enclosure ratings, and labeling for industrial control panels. A panel built to UL 508A for a US customer and a panel built to IEC 60947 for a European customer will differ in component certification and some construction details, even if the PLC program and I/O wiring logic are identical. Panel builders who ship equipment across regions need to confirm which standard the destination requires before finalizing the panel design.

Key Takeaways

Plc Circuit Diagram — circuit diagram showing component connections+-24V DC SupplyStart ButtonStop Button (NC)PLC INI0I1I2I3I4I5PLC Input ModulePLC OUTQ0Q1Q2Q3Q4Q5PLC Output ModuleKContactor K1M3~Motor M1PLC Motor Control CircuitPLC program controls output
Plc Circuit Diagram — open the interactive version of this diagram to customise and export it.
Plc Diagram — circuit diagram showing component connections+-24V DC SupplyStart ButtonStop Button (NC)PLC INI0I1I2I3I4I5PLC Input ModulePLC OUTQ0Q1Q2Q3Q4Q5PLC Output ModuleKContactor K1M3~Motor M1PLC Motor Control CircuitPLC program controls output
Plc Diagram — open the interactive version of this diagram to customise and export it.
Plc Panel Wiring Diagram — circuit diagram showing component connections+-24V DC SupplyStart ButtonStop Button (NC)PLC INI0I1I2I3I4I5PLC Input ModulePLC OUTQ0Q1Q2Q3Q4Q5PLC Output ModuleKContactor K1M3~Motor M1PLC Motor Control CircuitPLC program controls output
Plc Panel Wiring Diagram — open the interactive version of this diagram to customise and export it.

Frequently asked questions

What is the difference between sinking and sourcing in PLC wiring?

Sourcing (PNP) outputs and inputs supply positive voltage to the load or signal path; sinking (NPN) devices switch the ground or negative side instead. The two are not directly interchangeable -- a sinking sensor wired into a sourcing-only input, or the reverse, will not read correctly unless the module supports both and the common terminal is wired to match.

Can I connect a 120V device directly to a PLC output?

Only if the output point is rated for AC voltage, such as a relay or triac output. Transistor outputs are DC-only, typically 24V DC, and connecting 120V AC to one will damage the module. Always check the output's voltage and current rating on the datasheet before wiring any load to it.

Why does my PLC input stay on when the sensor is off?

Common causes are a sensor stuck in its on state, a normally closed contact wired where the program expects normally open, or leakage current from a nearby AC cable inducing a false signal on the input wiring. Verify the actual field device state at the terminal before assuming the PLC or program logic is at fault.

What wire gauge is used for PLC I/O wiring?

PLC I/O wiring is signal-level, so gauge is set more by terminal size and mechanical strength than by current draw -- 18-22 AWG stranded wire with ferrules is common for input and output signal wiring. Power wiring to the PLC and field devices should instead be sized for actual current per the applicable electrical code.

Do PLC outputs need external fuses?

Many output modules do not include built-in overcurrent protection for every point, so an external fuse or circuit protection per output group (or per point on some modules) protects the module if a connected load short-circuits. Check the module datasheet -- some outputs have integrated electronic protection, others require external fusing.

Can sinking and sourcing sensors be mixed on the same PLC?

It depends on the module. Many modern input modules support both types at once because the sourcing/sinking behavior is set by how the common terminal is wired, not by the module itself. However, sensors sharing the same common terminal group must match, since mixing types on one group causes incorrect input readings.

Interactive diagrams for this guide

Related guides