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:
- Power supply module: Converts AC mains (120V or 240V) to DC (24V) for the PLC and field devices.
- CPU module: Contains the processor, memory, and communication ports. Runs the control program.
- Input modules: Read signals from field devices (sensors, switches, pushbuttons).
- Output modules: Control field devices (contactors, solenoids, indicator lights).
- 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:
- Push buttons (start, stop, e-stop)
- Selector switches
- Limit switches
- Proximity sensors (inductive, capacitive)
- Photoelectric sensors
- Pressure switches
- Float switches
- Door interlocks
- Safety relays
Input voltage levels:
- 24V DC is the most common PLC input voltage.
- Some PLCs accept 120V AC inputs (common in older installations).
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:
- PNP sensors (sourcing) are standard in Europe and increasingly worldwide.
- NPN sensors (sinking) are more common in Japan and some Asian markets.
- When in doubt, use PNP sensors with a sourcing input configuration.
Analog Inputs (AI)
Analog inputs read variable signals proportional to a physical measurement.
Common analog signal types:
- 4-20 mA (most common in process industries)
- 0-10V DC (common in building automation)
- 0-5V DC
- RTD (resistance temperature detector) -- Pt100, Pt1000
- Thermocouple -- Type J, K, T
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:
- Contains a mechanical relay per output point.
- Can switch AC or DC loads.
- Typical rating: 2A at 240V AC or 30V DC.
- Slower switching speed (10-20 ms).
- Contact wear over time.
- Best for: Contactors, pilot lights, solenoids that do not require fast switching.
2. Transistor outputs (DC only):
- Solid-state, no mechanical parts.
- DC loads only (typically 24V DC).
- Typical rating: 0.5A to 2A per point.
- Fast switching speed (under 1 ms).
- No contact wear.
- Best for: High-speed applications, PWM control, solenoid valves.
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):
- Solid-state for AC loads.
- Typical rating: 0.5A to 1A at 120-240V AC.
- Best for: Pilot lights, small solenoids on AC.
Analog Outputs (AO)
Analog outputs produce variable signals to control proportional devices.
Common analog output types:
- 4-20 mA (controlling proportional valves, VFD speed reference)
- 0-10V DC (controlling damper actuators, VFD speed reference)
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
- Separate power and signal cables. Route 24V DC signals in a separate cable tray from AC power cables and motor cables.
- Use shielded cable for analog signals. Ground the shield at one end only (typically the PLC end).
- Keep VFD output cables away from PLC signal cables. VFD output cables produce EMI that can cause false input readings.
Terminal Labeling
- Label every wire at both ends with a unique wire number.
- Use ferrules (bootlace crimps) on stranded wire for reliable terminal connections.
- Follow a consistent wire numbering scheme (e.g., matching the I/O address: wire 100 for I0.0, wire 101 for I0.1, etc.).
Protection
- Use surge suppressors (MOVs) across relay output contacts when switching inductive loads (contactors, solenoids).
- Install RC snubbers across the coils of contactors and relays controlled by triac outputs.
- Use input filters if sensors are in electrically noisy environments.
Grounding
- Connect all PLC chassis grounds to a central grounding bus bar.
- The grounding bus bar connects to the panel's main ground, which connects to the building's grounding electrode.
- Do not daisy-chain grounds. Use a star grounding topology.
Common PLC Wiring Mistakes
-
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.
-
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.
-
No suppression on inductive loads. Relay outputs switching contactors without a suppression diode or RC snubber will cause contact arcing and premature failure.
-
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.
-
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:
- Use industrial symbols for PLCs, sensors, contactors, and relays
- Draw input wiring, output wiring, and power supply sections on separate pages
- Add wire numbers, terminal labels, and I/O addresses
- Create ladder logic diagrams alongside the wiring diagram
- Export as PDF for the panel builder and maintenance team
Create your PLC wiring diagram -- free
Key Takeaways
- PLC inputs read field devices (sensors, switches). Outputs control field devices (contactors, lights, solenoids).
- Understand sourcing (PNP) vs sinking (NPN) input wiring before connecting sensors.
- Use relay outputs for AC loads and inductive loads; transistor outputs for fast-switching DC loads.
- Always suppress inductive loads (diode for DC, RC snubber for AC) to protect PLC outputs.
- Separate signal cables from power and motor cables to prevent EMI interference.
- Label every wire and use a consistent numbering scheme.