PLC Output Wiring: Relay, Transistor and Triac

PLC ProgrammingBy Abdallah Agmar10 min readintermediate
Flat vector diagram comparing relay, transistor and triac PLC output wiring with labeled terminal blocks and load connections

PLC output wiring causes more commissioning headaches than almost any other part of a control panel build. Not because it is complicated, but because the three main output types, relay, transistor and triac, each have rules that are easy to miss and failure modes that are expensive to learn the hard way. Get the wiring right once and you will rarely think about it again. Get it wrong and you will be replacing output modules on a live machine at 2 AM.

What Is PLC Output Wiring?

PLC output wiring is the process of connecting a PLC digital output module's terminals to field devices such as solenoid valves, contactors, pilot lights and relays so that the PLC can switch real-world loads. Each output module type, relay, transistor (BJT or FET), and triac, has a specific electrical character that determines which loads it can safely drive, how fast it can switch, and how it fails when pushed beyond its limits.

The Three PLC Output Types: What Each Actually Is

Before wiring anything, understand what you are working with. Understanding how PLC input and output modules work at the hardware level saves you from guessing.

Output TypeLoad VoltageMax Switching SpeedTypical Current RatingBest For
RelayAC or DC, 5 to 250 VAC / 30 VDC typical~10 cycles/sec2 A per pointInfrequent switching, mixed voltage loads
Transistor (NPN/PNP)DC only, 5 to 30 VDC>1 kHz0.5 to 2 A per pointFast switching, 24 VDC solenoids, PWM
TriacAC only, 85 to 265 VACZero-crossing, ~60 Hz0.5 to 1 A per pointFrequent AC switching, lamps, AC solenoids
PLC output type comparison at a glance

Relay Output Wiring: How to Do It Right

A relay output module contains a small electromechanical relay for each output point. When the PLC bit goes true, the relay coil energises and the contact closes. The contact is electrically isolated from the PLC logic circuit, which is the key advantage: you can switch 120 VAC, 240 VAC or 24 VDC loads from the same module.

The wiring is simple. Connect your load supply voltage to the common terminal (COM) for the output group. Connect the other side of the load to the individual output terminal (OUT). The load return goes back to the supply neutral or negative. That is the complete circuit.

Relay output fatal mistake: Most relay output modules group 4 to 8 points onto one COM terminal. If you feed 120 VAC to one COM and 24 VDC to another COM within the same group, you will short them together through the module bus bar. Check the module's datasheet to see exactly where each COM group boundary is before wiring mixed voltages.

The biggest enemy of relay outputs is inductive load switching without suppression. Every time a relay contact opens on a solenoid or contactor coil, the collapsing magnetic field produces a voltage spike. On an AC circuit, fit an RC snubber (typically 0.01 uF in series with 47 ohms) across the load terminals. On a DC circuit, fit a flyback diode (1N4007 or equivalent) across the coil with the cathode to positive. This is not optional. I have seen panels where relay output modules failed within weeks because the wiring team skipped suppression on eight solenoid outputs.

Relay contact life is typically rated at 100,000 to 300,000 operations under load. For outputs that switch more than a few times per minute, move to transistor or triac. The fuse and breaker selection guide covers how to protect relay outputs correctly with per-common fusing.

Transistor Output Wiring: DC Only, Polarity Matters

Transistor outputs are solid-state, DC only, and either sourcing (PNP) or sinking (NPN). This is the most common source of confusion when wiring them. Read the full breakdown at sinking vs sourcing PLC I/O if you need a refresher. Here is the practical wiring summary.

Sourcing (PNP) transistor output: The module pushes 24 VDC out through the output terminal when the bit is true. Wire the load between the output terminal and the 0 V (negative) rail. Current flows: 24 V supply to module, out of output terminal, through load, back to 0 V. The COM terminal on a sourcing module connects to 0 V.

Sinking (NPN) transistor output: The module provides a return path to 0 V. Wire the load between the 24 V supply and the output terminal. Current flows: 24 V supply, through load, into output terminal, through module to 0 V. The COM terminal on a sinking module connects to 0 V as well, but now it is the return path for the transistor.

Flat vector diagram comparing sourcing PNP and sinking NPN transistor PLC output wiring with current flow arrows and labeled terminal blocks
Sourcing vs sinking transistor output wiring: current flows in opposite directions relative to the output terminal

Always connect the module's 24 VDC supply and 0 V terminals before wiring any outputs. Many modules have a separate logic supply and output power supply. Missing the output supply connection is a classic first-commission mistake: the PLC shows the bit energised but the output terminal reads 0 V.

Field tip: Use a multimeter set to DC volts between the output terminal and the 0 V rail to verify a transistor output is actually switching. You should see roughly 24 V when the bit is true and less than 1 V when false. If you see 24 V in both states, the transistor has failed shorted. Details on diagnosing this are in the PLC output fault diagnosis guide.

Flyback diode placement on transistor outputs matters too. Place the diode as close to the load as possible, not at the module terminal. A diode at the module terminal leaves a long wire acting as an antenna for the spike before it is clamped. For pneumatic solenoid valve wiring, put the diode right at the solenoid connector.

Triac Output Wiring: AC Loads Done Right

Triac outputs are the solid-state equivalent for AC loads. The triac is a bidirectional semiconductor that conducts in both directions when triggered, which is exactly what you need for AC. When the PLC bit goes true, the triac fires at the next AC zero-crossing and the load sees full AC voltage.

Wiring a triac output is similar to a relay output but AC only. Connect the AC line to the COM terminal of the output group. Connect the output terminal to one side of the load. The other side of the load connects to AC neutral. Simple enough, but two things bite people.

  • Leakage current: A triac always leaks a small current even when off, typically 1 to 10 mA. This is enough to keep a small indicator lamp dimly lit or cause a relay coil to chatter. If you see a load that refuses to turn fully off, leakage is the likely cause. The fix is to wire a bleeder resistor (typically 10 to 15 kohm, 2 W) in parallel with the load.
  • Voltage drop: The triac drops roughly 1 to 2 V across itself when conducting. For most loads this is irrelevant, but for a tightly-tolerated load it can matter.
  • No isolation: Unlike a relay, a triac output has no galvanic isolation between the AC load circuit and the PLC output circuit (beyond an optocoupler). Do not assume triac outputs are as isolated as relay outputs for safety purposes.

Output Common Wiring and Grouping

Most PLC output modules group multiple output points onto shared common terminals. The Siemens S7-1200 SM 1222 DC output module, for example, groups 8 or 16 outputs onto a single 24 VDC common. Rockwell 1769 and 1734 modules similarly group 4 to 8 points per common. Why does this matter?

When you share a common, all outputs in that group must use the same supply voltage and polarity. If you need to drive a mix of 24 VDC solenoids and 120 VAC pilot lights, they must go to different groups with different commons. Mix them on the same common and you will either damage the module or create a safety hazard.

Fuse each common separately. The module's per-common current limit is real. A short on one output can pull the whole common down if there is no fuse. For safety-critical outputs such as an emergency stop circuit, the output wiring and protection scheme must be treated with extra care. Do not share a safety relay drive output on the same common as a general-purpose solenoid.

Wire Sizing and Routing for Output Circuits

Most 24 VDC PLC output circuits run at 0.5 A or less per point. 0.75 mm2 (18 AWG) is adequate for runs up to about 10 m in a control panel. For longer field cable runs, voltage drop becomes the calculation to make, not just ampacity. A 24 VDC solenoid that sees only 20 V because of undersized cable may not reliably actuate.

Keep output wiring away from input signal wiring. AC output cables especially should not run alongside 4-20 mA analog signal cables. The wire routing and segregation guide covers the trunking rules in detail. For analog output wiring specifically, the PLC analog output wiring guide covers the shielding and grounding rules that digital output wiring does not need.

How Output Modules Fail and How to Spot It Fast

Relay outputs fail in two ways: open (contact welds apart, output always off) or shorted/welded (contact sticks closed, output always on). Transistor outputs typically fail shorted (output always on) when the transistor is destroyed by a voltage spike or overcurrent. Triac outputs fail shorted too, which is why a triac output failure can be more hazardous than a relay failure: the load stays energised.

The PLC I/O fault diagnosis guide has step-by-step multimeter procedures. The quick test: force the output bit off in the PLC and measure voltage at the output terminal. If you still read supply voltage on a transistor output, the transistor is shorted. On a relay, measure resistance across the contact with power off: zero ohms with the coil de-energised means a welded contact.

The PLC power supply faults guide is worth reading alongside this: an overloaded 24 VDC supply caused by too many output loads will cause outputs to drop out intermittently in ways that look like output module faults but are actually a supply sizing problem. The 24 VDC power supply sizing guide explains exactly how to budget the output load current.

From the field: On a food packaging line I commissioned, four transistor output points were dying every three to four months. The maintenance team blamed the module. After fitting a current probe, I found one 24 VDC solenoid manifold was drawing 4.2 A inrush on energise, well above the module's 2 A surge rating. The fix was a 24 VDC interposing relay between the PLC output and the manifold, not a new module. The relay has been running fine for two years since.

Choosing the Right Output Type for Your Load

  • 24 VDC solenoid valve, infrequent switching (less than 10 cycles/min): relay output with flyback diode at the load
  • 24 VDC solenoid valve, frequent switching or PWM: transistor output (sourcing or sinking to match your sensor commons) with flyback diode
  • 120/240 VAC solenoid or AC contactor coil, infrequent switching: relay output with RC snubber
  • 120/240 VAC lamp or AC solenoid, frequent cycling: triac output, add bleeder resistor if load is small
  • High inrush load (motor contactor, transformer primary): relay output sized with enough surge margin, or interposing relay from transistor output
  • Safety relay coil drive: check the safety relay's input voltage spec, then wire through a dedicated relay output point with its own fused common, and review safety relay wiring

Keep Learning

Now that you have the output wiring fundamentals solid, the next step is understanding what happens when outputs misbehave in service. The PLC output fault diagnosis guide walks you through every failure mode with real test procedures. If you are also setting up input wiring, the PLC digital input faults guide covers the input side the same way. And for the full picture of how the module sits inside the rack, how PLC input and output modules work is a good companion read.

Frequently asked questions

What is the difference between relay and transistor PLC outputs?
Relay outputs use a mechanical contact that switches any voltage AC or DC up to their rated current, typically 2 A per point. Transistor outputs use a solid-state switch limited to DC loads, usually 24 VDC, but switch much faster, handle more cycles, and are better suited for high-speed or PWM applications.
Can I use a transistor PLC output to drive an AC load?
No. Transistor outputs are DC-only, typically 5 to 30 VDC. Connecting an AC load will damage the output transistor immediately. Use a relay output or a triac output for AC loads. If you need speed with AC, use a triac output module.
Why does my relay PLC output fail faster than expected?
Relay contacts arc when switching inductive loads like solenoids or contactors without a suppression circuit. Each arc erodes the contact surface. Fit a snubber, flyback diode, or MOV across the load. This alone can extend relay contact life from tens of thousands to millions of cycles.
What does a triac PLC output do that a relay cannot?
A triac switches AC loads without moving parts, so it handles far more switching cycles silently and without arcing. It is ideal for AC solenoids, lamps and small AC motors that cycle frequently. The downside is a small voltage drop across the triac and zero-crossing switching behavior.
How do I know if my PLC output module is sinking or sourcing?
Check the module wiring diagram in the datasheet. A sourcing output provides positive voltage to the load (current flows out of the output terminal). A sinking output provides a return path (current flows into the terminal). See the detailed breakdown at our sinking vs sourcing guide.
What fuse size should I use on a PLC output?
Match the fuse to the module's per-point or per-common current rating, not the wire size alone. Most 24 VDC transistor output points are rated 0.5 A or 2 A. Use a fast-blow fuse at or below that rating. Group the commons by circuit and fuse each group separately.
Can I drive a 24 VDC contactor coil directly from a PLC transistor output?
Yes, if the coil's inrush current is within the output's rated surge current, typically 4 to 8 A peak for 50 ms on most modules. Always fit a flyback diode across the coil. Check the module datasheet for surge current spec before assuming it will survive energizing a large coil.
Why does my PLC output stay on even after the coil bit goes to zero?
On transistor outputs this often means the output transistor has failed shorted, a common failure mode when an inductive load was switched without suppression. On relay outputs a welded contact can cause the same symptom. Use a multimeter to confirm. Check the full diagnosis method.
Do I need a suppression diode on every DC output driving a solenoid?
Yes, always. When the transistor turns off, an unsuppressed solenoid coil produces a voltage spike that can be 10 to 100 times the supply voltage. This kills the output transistor over time. A 1N4007 flyback diode across the coil, cathode to positive, costs pennies and prevents the failure.
What is the common terminal on a PLC output module?
The common terminal is the shared return or supply reference for a group of output points. On DC sourcing modules it is the negative supply rail (0 V). On relay modules it can be either polarity or AC. Always wire the correct polarity to the common or you will damage the module or get unpredictable output behavior.

Learn this by building it

There is a PLC in this site. It runs a real scan engine, checks your logic against the same tests a working machine would fail, and needs no download and no account.

Open the exercises

Free, no signup, runs in your browser. See all 16 exercises.

Was this helpful?

Related articles