MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How combinational logic maps to PLC ladder diagrams
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How combinational logic maps to PLC ladder diagrams

A PLC ladder rung is combinational logic drawn as contacts and coils. This page maps AND, OR and NOT gates onto normally open and normally closed contacts so relay thinking drops straight into ladder form.

1. How it works

In a PLC the input points are contacts and the logic result is a coil. AND is contacts in series: the coil energizes only when both conduct. OR is contacts in parallel: either one conducting is enough. NOT is a normally closed contact or an invert instruction. One rung reads left to right as signal flow, and the coil at the right end is the output, so a truth table can be translated into series and parallel contacts without drawing a single gate.

2. Numbers and practice

Worked example: interlock two motors. M1 may start when pushbutton SB1 is pressed and M2 is not running, so SB1 normally open in series with an M2 normally closed contact drives the M1 coil. The voter Y equals A and B, or A and C, or B and C becomes three parallel branches, each branch two series contacts. A ladder reads as who is in series with whom, which a veteran electrician understands at a glance.

3. Pitfalls and fixes

Field traps: the PLC scans cyclically, so a combinational result updates only at the end of the scan, a few milliseconds at best. The worst trap is the double coil: the same coil appearing in two rungs, where the later one overwrites the earlier and the logic becomes erratic. Also think backwards about normally closed inputs, because their powered-off state is the opposite of what the drawing suggests.

4. Gate to ladder mapping quick reference

LogicLadder formWatch out
ANDContacts in seriesAll closed to conduct
ORContacts in parallelOne closed enough
NOTNormally closed contactState inverted
XORSeries-parallel mixUse an instruction
LatchSelf-holding contactNot combinational
Double coilSame coil, two rungsStrictly forbidden

5. Notes

Translate the truth table directly into series and parallel contacts; it is faster than drawing gates. Verify rung by rung with a PLC simulator or a force table, focusing on double coils and inversion direction.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Programmable controllers per GB/T 15969 and IEC 61131 series. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Same coil written in two rungs:the later one overwrites the earlier, output works then fails and takes hours to find
② Normally closed input used as inverter with the power-off state forgotten:forced tests run backwards and misoperate
③ Latching treated as combinational logic:self-holding contacts carry memory and never clear instantly in the scan

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