Relay Logic vs PLC: Differences, When to Use Each, and How to Migrate
Relay logic vs PLC compared — how each implements control logic, cost and reliability trade-offs, when relay logic still makes sense, and how to migrate to a PLC.
Relay Logic vs PLC: The Complete Comparison
The core difference between relay logic and a PLC comes down to how control logic is stored. In a relay logic panel, the logic is hardwired — the physical arrangement of relay coils, contacts, and timers determines what the machine does. In a PLC, the logic is stored as a program that the processor executes on every scan cycle. Change the program, and the machine behaves differently. Change a relay panel, and you rewire it.
That single distinction — hardwired vs. programmed — drives almost every other difference: flexibility, troubleshooting time, scalability, long-term cost, and the type of engineer you need to maintain the system.
Quick answer: Relay logic is cost-effective for small, stable, simple control tasks (fewer than 3–4 relays and timers). A PLC pays for itself the moment you need more than that, or when the machine logic is likely to change.
What Is Relay Logic?
Relay logic (also called hardwired logic or electromechanical logic) uses physical relays — electromagnetic switching devices — wired together to create control circuits. Each relay has a coil and one or more sets of contacts. When voltage is applied to the coil, the contacts open or close, routing power to the next device in the circuit.
A relay logic panel for a simple conveyor might contain:
- Control relays — for routing logic signals
- Contactor relays — for switching motor power
- Timing relays — for on-delay and off-delay timing functions
- Latching relays — for seal-in (memory) functions
All of these devices are individually wired on a DIN rail inside a panel. The schematic drawn by the panel builder is the program. If the process requirements change, the panel must be rewired — usually a multi-hour job requiring the system to be shut down.
Relay logic has been the backbone of industrial machine control since the 1920s. It is still widely used for safety circuits, emergency stops, and simple control tasks where its simplicity is a genuine advantage.
What Is a PLC?
A Programmable Logic Controller (PLC) is an industrial computer designed specifically for machine and process control. Instead of hardwired contacts, a PLC reads the state of its input terminals, executes a program stored in non-volatile memory, and sets its output terminals accordingly — all within a single scan cycle that typically completes in 1–10 milliseconds.
The program itself is written in one of several IEC 61131-3 languages. In most industrial applications, that language is ladder logic — a graphical programming language designed to look deliberately similar to relay schematic drawings. This was an intentional design choice when PLCs were introduced in the late 1960s: it let relay-trained electricians read and write PLC programs with minimal retraining.
For a full overview of the technology, see What Is PLC Programming.
Key PLC hardware components:
- CPU module — executes the scan cycle and runs the program
- Power supply module — conditions incoming AC/DC power
- Input modules — interface to field sensors and switches
- Output modules — drive actuators, contactors, and indicators
- Communications modules — Ethernet/IP, PROFINET, Modbus, and others
Head-to-Head Comparison Table
| Attribute | Relay Logic | PLC |
|---|---|---|
| Logic implementation | Hardwired — physical contacts and coils | Software program stored in memory |
| Modifications / flexibility | Requires rewiring; system downtime | Program edit, often while running |
| Space and scalability | Large panel footprint; grows with relay count | Compact; add I/O modules as needed |
| Troubleshooting | Multimeter and schematic required; slow | Online monitoring shows live rung state instantly |
| Reliability / lifespan | Mechanical wear on contacts; 1–10 million cycles per relay | No moving parts in logic; CPU MTBF 100,000+ hours |
| Cost — upfront | Low for simple circuits; each relay $5–$50 | Higher; small PLC starter kits from $150–$500 |
| Cost — lifetime | High maintenance; relay replacement, rewiring labour | Low maintenance; no mechanical wear on logic |
| Capabilities | Boolean logic, basic timing, counting | Full math, PID, communications, data logging, HMI integration |
| Documentation | Paper schematic; risk of version drift | Program file IS the documentation; version-controlled |
| Required expertise | Electrician with wiring skills | Technician with PLC programming skills |
Worked Example: Start/Stop/Seal-In Circuit
The motor start/stop circuit with seal-in is the single most common control circuit in industry. Comparing the same circuit in relay logic and ladder logic makes the relay-vs-PLC difference concrete.
Relay Logic Schematic (hardwired)
L1 ─────┬──── [STOP NC] ──────┬──── [START NO] ─────── (M Coil) ─── L2
│ │
│ └──── [M Aux NO] ──────┘ (seal-in)
│
└──── [OL NC] ────────────────────────────────── (OL Trip path)
How it works:
- STOP is a normally closed (NC) pushbutton in series
- START is a normally open (NO) pushbutton in parallel with auxiliary contact M Aux
- When START is pressed, current flows through the STOP contact → through START → energises the M Coil (motor contactor)
- M Aux closes (seal-in), holding the circuit energised after START is released
- Pressing STOP opens the NC contact, dropping out M Coil
- OL is an overload relay NC contact wired in series for motor protection
This circuit requires: 1 contactor with aux contact, 2 pushbuttons, 1 overload relay, and all the associated wiring.
Equivalent PLC Ladder Logic Rung
| |
| [STOP] [OL] [START] |
+---|/ |------|/ |---+---| |---+----------( M_Output )----------+
| | | |
| | [M_Aux] | |
| +---| |--+ |
| |
How it works:
- STOP is mapped as a normally closed (NC) contact on Input I:0/0
- OL is mapped as a normally closed contact on Input I:0/1
- START (I:0/2) and the M_Aux seal-in bit (O:0/0 internal alias) are in parallel
- When START closes momentarily, Output M_Output (O:0/0) energises — which also closes the M_Aux contact on the same rung, sealing the circuit in
- Pressing STOP opens the NC contact in the program, de-energising M_Output
What changed? Nothing, logically. The circuit behaviour is identical. But:
- Modifying the circuit takes seconds in software, not minutes with a screwdriver
- Faults show as highlighted rungs on the programmer's laptop — no multimeter probing required
- Adding a second motor, a selector switch, or a timer requires adding rungs in software, not rewiring
For a detailed walkthrough of this circuit built step-by-step, see the motor start/stop ladder logic tutorial.
The Cost Break-Even Rule of Thumb
A useful heuristic used by experienced panel builders: if your circuit needs more than 2–3 relays and timers combined, a PLC becomes cost-competitive on total installed cost — and almost certainly wins on 3-year total cost of ownership when you include maintenance labour.
Here is a rough breakdown:
| Circuit complexity | Practical choice |
|---|---|
| 1–2 relays, no timers, logic never changes | Relay logic — simpler, lower upfront cost |
| 3–5 relays or 1–2 timing relays | Break-even zone; lean toward PLC if any future changes are possible |
| 6+ relays, multiple timers, any counters | PLC — lower lifetime cost, faster troubleshooting |
| Multiple machines, data logging, HMI required | PLC mandatory |
| Safety circuit (SIL 2/3) in a certified system | Safety relays or safety PLC — relay logic still wins here |
The PLC's upfront premium ($150–$500 for a small unit vs. $20–$100 for a simple relay panel) is typically recovered within 1–2 maintenance events that would otherwise require a panel rewire.
When Relay Logic Still Makes Sense
Despite PLCs dominating modern automation, relay logic remains the right answer in specific situations:
1. Certified safety circuits. Safety-rated relays (e.g., Pilz PNOZ, Omron G9SX) meet specific SIL and PLr requirements with predictable, certifiable failure modes. While safety PLCs exist, a dedicated safety relay is often simpler to certify for basic emergency-stop and guard-door circuits.
2. Extreme environments. Relay panels can operate in environments where electronic components fail — very high temperatures, severe vibration, or locations where EMI (electromagnetic interference) would corrupt a PLC's CPU. A relay does not care about conducted interference.
3. Very simple, permanent circuits. A two-relay interlock that will never change and needs to be maintained by staff with no PLC training is a legitimate use case. Simplicity is a feature.
4. Backup and failsafe circuits. Some plants wire critical failsafe functions (e.g., high-temperature shutdown) in hardwired relay logic as a backup independent of the PLC. If the PLC fails, the relay circuit still protects the equipment.
5. Cost constraints on micro-applications. A single relay costing $15 controls one small load. Buying a PLC for one input and one output is not justified economically.
When to Use a PLC
A PLC is the better choice in the vast majority of modern industrial applications:
- Complex logic — more than 4–5 relays or timers
- Logic that changes — recipe-based machines, multi-product lines
- Diagnostics required — online monitoring, alarm logging, fault history
- HMI integration — operator touchscreens, SCADA systems
- Communications — Ethernet/IP, PROFINET, Modbus, OPC-UA networks
- Process control — PID loops for temperature, pressure, flow
- Data collection — batch records, production counts, downtime logging
- Remote access — VPN-based remote support and monitoring
- Multi-axis motion — coordinated servo and stepper control
For a comparison of programming language options once you have a PLC, see Function Block Programming vs Ladder Logic.
The Difference Between Relay Logic and Ladder Logic
This is a common point of confusion. Relay logic refers to the physical hardwired relay control circuit. Ladder logic is a PLC programming language. They are not the same thing.
Ladder logic was deliberately designed to look like relay schematics — the vertical lines are "power rails," the horizontal lines are "rungs," and the symbols for contacts and coils are intentionally similar to relay drawings. This visual similarity made it easier for relay-trained electricians to transition to PLC programming in the 1970s and 1980s.
The key distinction: relay logic contacts are physical metal pieces that wear out and require the panel to be de-energised for modification. Ladder logic contacts are software — bits in memory that the CPU evaluates thousands of times per second.
Understanding ladder logic symbols is the starting point for anyone moving from relay panels to PLC programming.
How to Migrate from Relay Logic to a PLC
Migrating an existing relay panel to a PLC is a structured process. Here are the practical steps:
Step 1: Document the existing relay circuit
Before touching anything, produce an accurate as-built schematic of the relay panel. Photograph the wiring, trace each conductor, and create or verify the wiring diagram. This becomes your programming reference.
Step 2: Identify all inputs and outputs
List every field device:
- Inputs: pushbuttons, limit switches, proximity sensors, level switches, pressure switches, overload contacts
- Outputs: motor contactors, solenoid valves, pilot lights, alarm horns
This I/O list determines the PLC model and I/O module count you need to specify.
Step 3: Select and configure the PLC hardware
Choose a PLC with sufficient I/O for your list, plus 20–25% spare capacity for future additions. Wire the field devices to the PLC's input and output terminals exactly as they were wired to the relay panel terminals — the field wiring often stays unchanged.
Step 4: Convert the relay schematic to ladder logic rungs
Map each relay schematic rung to an equivalent ladder logic rung:
- Each hardwired NC contact becomes a ladder NC contact instruction
- Each hardwired NO contact becomes a ladder NO contact instruction
- Each relay coil becomes an output coil instruction
- Timing relays become TON (on-delay) or TOF (off-delay) timer instructions
- Counting functions become CTU (count up) or CTD (count down) counter instructions
- Seal-in contacts become self-referencing output bits (the output bit's own contact in parallel with the start contact)
Step 5: Test offline, then commission
Simulate the program offline using the PLC manufacturer's software before connecting to the machine. Verify all rung logic against the original schematic. Then commission on the machine: force individual inputs and verify the correct outputs energise.
The ladder logic tutorial covers all the basic instructions you need to translate a relay schematic into a working PLC program.
Frequently Asked Questions
Why choose a PLC over relay logic?
A PLC stores logic as a software program rather than hardwired connections, which means you can modify machine behaviour without rewiring — in minutes rather than hours. PLCs also provide online diagnostics (you can see exactly which rung is active or faulted on a laptop screen), built-in timers and counters without extra hardware, and the ability to communicate with HMIs, SCADA systems, and other networked devices. For any machine with more than a handful of control functions, a PLC reduces both commissioning time and lifetime maintenance costs.
Is relay logic obsolete?
No, but its application scope has narrowed significantly. Relay logic remains the standard for certified safety circuits (emergency stops, safety gates) where dedicated safety relays provide predictable, certifiable failure behaviour. It is also appropriate for very simple, stable, low-cost applications with no expectation of future changes. For the majority of industrial machine and process control applications built today, a PLC is the default choice.
What is the disadvantage of relay logic?
The primary disadvantages are: (1) inflexibility — any logic change requires physical rewiring with the panel de-energised; (2) space — relay panels grow large quickly as complexity increases; (3) troubleshooting time — finding a fault requires systematic multimeter probing rather than reading a live program display; (4) mechanical wear — relay contacts have a finite life cycle and eventually require replacement; (5) no data — relay panels cannot log events, count production, or communicate with higher-level systems.
What is the difference between relay logic and ladder logic?
Relay logic is a physical, hardwired control circuit made from electromechanical relays. Ladder logic is a graphical PLC programming language. The two use similar visual notation — both show contacts and coils arranged on horizontal rungs — because ladder logic was intentionally designed to look like relay schematics, helping relay-trained technicians learn PLC programming. The critical difference is that relay logic contacts are physical components, while ladder logic contacts are software instructions evaluated by the PLC processor. For a deeper explanation, see the guide to relay logic.


