Upgrading an old machine without touching the mechanics is best done by moving relay logic into a PLC. This page explains the conversion steps and the traps that cause rework.
Step one: read the original relay drawing and tabulate every relay, contact and interlock into a logic table, with inputs from buttons, limits and sensors and outputs to contactors, valves and lamps. Step two: choose the PLC and count I/O with 20 percent margin, isolate and filter inputs, choose relay or transistor outputs by load. Step three: draw the I/O allocation table mapping original KM and KT devices to internal soft elements. Step four: rewrite the logic in ladder or function blocks keeping all interlocks and safety sequences unchanged. Step five: simulate, download, jog-verify every action without load, then trial with load.
Keep safety-related circuits hard wired: emergency stop, safety gates and overload stay outside PLC soft logic so hazards are cut even if the PLC fails. Remove time and intermediate relays that PLC internals can replace to simplify the panel. Add optocoupler isolation and surge protection on inputs and outputs, with freewheeling on inductive loads like solenoid valves. Keep necessary lamps and buttons for local operation and fault judgement instead of moving everything to a screen.
Traps: I/O undercounted, so later signals have nowhere to land and the cabinet needs rework; missing isolation lets drive noise scramble PLC inputs; putting the E-stop into the program kills it when software freezes; dropping the original interlock order scrambles actions after conversion; skipping simulation and loading straight away crashes the machine on first power. Do it right: keep margin, isolate properly, hard-wire safety, simulate first, jog first, and test old-versus-new logic item by item so every condition matches.
| Step | Action | Caution |
|---|---|---|
| 1 Read | Logic table | All interlocks |
| 2 Select | 20% margin | Isolate filter |
| 3 Allocate | I/O map | Soft elements |
| 4 Program | Ladder | Keep safety order |
| 5 Verify | Simulate jog | Then load |
Relay to PLC conversion is a high-value upgrade: tabulate the logic, size I/O with margin, keep safety circuits hard wired, simulate then jog-verify. Count I/O generously, isolate signals, never put the E-stop in software, and archive the I/O table and ladder for future maintenance.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Programmable controllers see GB/T 15969 (IEC 61131), electrical safety see GB/T 5226.1, low-voltage apparatus see GB/T 14048. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.