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

Key Takeaways