MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Forward-reverse hardware circuit versus PLC program, side by side
HomeModels
Table of contents

On this page

Electrical Control & Drawings (500 articles)

Quick Reference

Forward-reverse hardware circuit versus PLC program, side by side

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.

1. How it works

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.

2. Practice and pitfalls

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.

3. Relay circuit versus PLC program

FunctionRelay implementationPLC implementation
NO contactPhysical NONO instruction
NC contactPhysical NCNC instruction
LatchContact across buttonCoil contact parallel
InterlockOpponent NC in seriesOpponent output NC
CoilContactor coilOutput coil instruction
TimingMicrosecond levelScan-cycle level

4. Notes

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.

5. References

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.

6. Cautions

⚠️ Three common pitfalls:
① Physically NC wired to an NO point without inversion: stop fails
② Double coil on one address: later overwrites earlier, logic scrambles
③ Deleting hardware interlock for program only: out of control if the PLC fails

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL