How does the same reversing motor map between a relay circuit and a PLC program? This article translates a double-interlocked reversing circuit into ladder logic segment by segment: contact instruction mapping, latch and interlock coding, the scan-cycle differences from hardware contacts, and the hardware defenses that must survive any retrofit.
The mapping: NO contact to NO instruction, NC contact to NC instruction, coil to output coil. The stop button is physically NC, so it wires to a normally open input point and appears as an NO instruction in series, the classic trap: closed at rest so the instruction conducts, opening when pressed. Latching parallels the output coil contact across the start instruction; interlocking puts the opponent output NC contact in series with this direction output, structurally identical to the hardware, so anyone who reads the drawing reads the program in half an hour.
Three differences matter: the scan cycle spreads the two outputs milliseconds apart where hardware contacts act in microseconds, so the PLC scheme leans more on output-side hardware interlock; the double-coil issue, where two coil instructions to one address let the later overwrite the earlier, so use set-reset or merge the conditions into one rung; and the power-loss state, where the PLC kills all outputs but contactor positions remain uncontrolled, so hardware interlock and mechanical latch must stay. Retrofit retains the contactor mechanical interlock, evaluates keeping the button-level interlock, and hard-wires the e-stop straight to the output circuit supply. Verify by laying the ladder beside the schematic, checking every contact for logical equivalence including the NC-input inversion, then a no-load run reproducing forward, reverse, interlock and both-press behavior. Archive the program with an address table and a backup.
| Function | Relay implementation | PLC implementation |
|---|---|---|
| NO contact | Physical NO | NO instruction |
| NC contact | Physical NC | NC instruction |
| Latch | Contact across button | Coil contact parallel |
| Interlock | Opponent NC in series | Opponent output NC |
| Coil | Contactor coil | Output coil instruction |
| Timing | Microsecond level | Scan-cycle level |
A PLC is not a literal translation of the relay circuit: the logic maps but the timing and failure modes differ, so master the NC-input inversion, the double-coil rule and the scan cycle. Keep the hardware interlock and mechanical latch untouched, verify program against hardware behavior, and the two languages truly connect.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: See GB/T 15969 series for programmable controllers, GB/T 5226.1 and GB/T 16855.1 for machinery safety, IEC 61131 and IEC 60204-1 for reference. 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.