Basic Ladder Logic
Basic Ladder Logic
Introduction to Ladder Logic
Ladder logic diagrams are the principal means electrically controlled systems use to document and convey not only the connection of individual devices making up the system, but also the function of that system. They flatten out traditional schematics into readable lines where each line represents a path from one terminal of the source to the other.
Consider traditional schematics used to draw a DC source in a series circuit with a momentary normally open push button and a solenoid of a solenoid-operated hydraulic valve. When push button one is closed, it completes a path from X1 through solenoid A to X2. The hydraulic schematic indicates that when solenoid A is energized, it shifts to the straight-through position and the cylinder extends. When released, the momentary normally open push button returns to its deactivated open state.
This approach works for simple circuits but becomes very cumbersome for complicated systems. For this reason, pilot schematics are ordinarily drawn using ladder logic.
Basic Structure of Ladder Logic Diagrams
The Ladder Concept
A ladder logic diagram flattens out a traditional schematic into readable lines, where each line is a path from one terminal of the source to the other. The low voltage output of the control transformer (or power supply), with X1 and X2 as terminals, becomes the left and right vertical upright rails of a ladder. The conductive path from X1 to X2 is represented as a rung on that ladder.
X1 = Left rail (hot/high side)
X2 = Right rail (lower/neutral side)
Rungs = Horizontal paths from X1 to X2 containing devices
Pilot vs. Primary Schematics
When drawing both pilot and primary schematics using the same diagram:
Pilot low voltage ladder logic is drawn in thin lines
Primary high voltage schematic is drawn in thick lines
However, many find this method busy and confusing, so it is common to draw them separately. The pilot and primary schematics are linked via magnetic or mechanical means.
Key Distinction: The pilot signal is low voltage, low current, low power electricity entirely separate and electrically isolated from the high voltage, high current, high power primary input. The only interaction between pilot and primary electrical signals is via magnetic or mechanical means.
Examples of interaction points:
The transformer
The contactor coil
The overload relay
Purpose of Electrical Isolation
Electrical isolation exists primarily for safety. Pilot signals for modern electrically controlled systems are ordinarily 120 volts AC or 24 volts DC, with a notable progressive movement favoring 24 volts DC. These levels are not nearly as dangerous as high voltage electricity nor as dirty as oil-based pilot signals for hydraulic systems.
The customary use of low voltage, low current, low power electrical pilot signals offers a degree of:
Ease of installation and maintenance
Safety for operators and technicians
Isolation from high power circuits
Basic Ladder Logic Rules
Ground Referencing
If one needs to ground reference the output of the control transformer or DC power supply, one customarily does so on the right hand side of the pilot ladder logic diagram (the X2 upright rail). This ensures overcurrent protection devices like fuses and circuit breakers function as intended and prevents an errant connection of ground from inadvertently starting a hydraulic system or motor. Ladder logic diagrams prefer high side switching arrangements.
What Ladder Logic Shows
Ladder logic diagrams only show pilot rated electrically active components:
Switches (manual and automatic)
Pilot lamps
Control relays
Contactor coils
Solenoids of solenoid-operated directional control valves
Primary devices like hydraulic components or contactors are not included — these appear in the primary hydraulic or electrical schematic.
Device Placement Rules
Input devices (switches) are ordinarily drawn on the left side of a rung:
Exception: Normally closed overload contacts are a form of input placed on the extreme right
Output devices (coils, electrical loads, pilot lamps) normally go on the right side of a rung:
When a rung's input devices allow closure from one upright to the other, the load is energized
Logic Operators
AND Operator: A series connection of two normally open switches means both must be simultaneously closed to energize the load.
OR Operator: A parallel connection of two normally open switches means either one (or both together) must be closed to energize the load.
Critical Rules
Rule 1: Input and output devices are ordinarily only featured in horizontal rungs. The vertical uprights are power connections only. The one exception is the placement of fuses and main shut-offs in the vertical uprights.
Rule 2: A rung must never be composed of input devices only. If an operator closed a switch with no load, the rung would experience a short circuit from X1 to X2 with no opposition to current flow. All rungs must contain one electrical load.
Rule 3: Load devices are not ordinarily directly connected from one vertical upright to the next unless the device is intended to be continually energized.
Rule 4: Loads must never be placed in series with one another. Load devices are designed to operate at full pilot voltage. Placing loads in series would divide the voltage between them, resulting in dim lights or improperly operating devices. Maximum of one load per rung.
Rule 5: Load devices must be placed in parallel with one another if they are to be simultaneously energized.
Rule 6: Ladder logic diagrams must be properly documented, referenced, and feature properly numbered rungs, wires, and fully identified components, terminals, and contacts.
Internal vs. External Load Placement
All internal logical loads ordinarily appear in the top half of a ladder logic diagram, and all external output loads appear in the bottom half.
Examples:
Top half (internal logical functions): Control relays, counters, timers
Bottom half (external outputs): Solenoids, pilot lamps
Components and Symbols
Switch Types
Momentary Normally Open (NO) Push Button:
Depowered state: Open (no current passes)
Activated state: Closed (current passes)
Returns to open state when released
Momentary Normally Closed (NC) Push Button:
Depowered state: Closed (current passes)
Activated state: Open (no current passes)
Returns to closed state when released
Maintained Switches (e.g., E-Stop):
Remain in their activated state until manually reset
Used for safety disables
Limit Switches:
Automatic switches that do not require human intervention
Actuated by mechanical motion (e.g., a cylinder rod striking the switch at the limits of travel)
Control Relays
A control relay (CR) has a coil and associated contacts. When the coil is energized, associated contacts change states:
Normally closed contacts → Open
Normally open contacts → Close
When the coil is de-energized, the switches return to their deactivated states.
Associated contacts are typically Single Pole Double Throw (SPDT) transfer switches with a common terminal and a choice of either a normally closed or normally open connection.
Interpreting Ladder Logic Diagrams
Depowered State Convention
All schematics are always drawn in their depowered state. This means:
Normally closed switches are shown as closed
Normally open switches are shown as open
Example: Two-Rung Pilot Light System
Consider a simple ladder logic diagram with two rungs:
Rung one: Series connection of momentary normally closed push button one (NC PB1) and a red pilot lamp
Rung two: Series connection of momentary normally open push button two (NO PB2) and a green pilot lamp
Natural Start State:
NC PB1 is closed → Red lamp energized (ON)
NO PB2 is open → Green lamp de-energized (OFF)
State: Red ON, Green OFF
Operator actuates NC PB1:
PB1 opens → Red lamp de-energizes (OFF)
State: Red OFF, Green OFF
When released, PB1 returns to closed → Red lamp ON
Returns to start state
Operator actuates NO PB2:
PB2 closes → Green lamp energizes (ON)
State: Red ON, Green ON
When released, PB2 returns to open → Green lamp OFF
Returns to start state
Operator actuates both simultaneously:
PB1 opens, PB2 closes
Red lamp OFF, Green lamp ON
When both released, returns to start state (Red ON, Green OFF)
Break-Make Push Button Package
A break-make push button package (PBX) consists of a mechanically interlocked normally closed and normally open connection. When a single button is pressed, the NC contact opens and the NO contact closes simultaneously.
This single-button actuation provides a coordinated change where two independent switches would require two separate operations.
Control Relay Applications
Red/Green Light System with Control Relay
Consider a system with:
Rung one: Series connection of NO PB1 and coil of CR1
Rung two: Series connection of NC side of CR1A and red pilot lamp
Rung three: Series connection of NO side of CR1B and green pilot lamp
Natural Start State:
NO PB1 open → CR1 coil de-energized
NC CR1A closed → Red lamp ON
NO CR1B open → Green lamp OFF
Operator presses PB1:
NO PB1 closes → CR1 coil energized
CR1 contacts change states
NC CR1A opens → Red lamp OFF
NO CR1B closes → Green lamp ON
State: Red OFF, Green ON
Operator releases PB1:
NO PB1 returns to open → CR1 coil de-energized
Contacts return to de-energized state
NC CR1A closes → Red lamp ON
NO CR1B opens → Green lamp OFF
Returns to start state
This behavior is functionally identical to the mechanically interlocked break-make push button package — just a different implementation.
Key Insight: There is more than one way to solve a problem in ladder logic, limited only by resources, time, and creativity.
Cylinder Control with Control Relay
Modifying the system to swap the green lamp for a solenoid A (of a solenoid-operated hydraulic valve):
Pressing PB1 energizes CR1 → CR1B closes → Energizes solenoid A → Cylinder extends
Releasing PB1 de-energizes system → Cylinder retracts
The cylinder extends only while the operator holds down PB1. If released mid-stroke, the cylinder retracts. This may be desirable for some systems but a disadvantage for others, where continual human intervention is unwanted.
The Holding Circuit (Latching / Memory Circuit)
Basic Holding Configuration
The holding circuit incorporates one of CR1's associated contacts in parallel with the start push button. This configuration maintains the last asserted state — when pressed, it stays in that state until another action changes it.
Rung one with holding contact:
Parallel combination of NO start push button and NO CR1A (holding contact)
In series with NC stop push button and NC E-stop
CR1 coil at the end
Rung two:
NO CR1B in series with solenoid A
Operation:
Operator presses and releases start → CR1 energizes → CR1A (holding contact) closes → Maintains CR1 energized state → CR1B closes → Solenoid A energized → Cylinder extends
Operator can release start button, and the system maintains its state
Operator presses stop → Opens the circuit → CR1 de-energizes → CR1A opens (removes holding path) → CR1B opens → Solenoid de-energized → Cylinder retracts
This arrangement of a momentary normally closed stop push button, a momentary normally open start push button, a coil, and a normally open associated contact in parallel with the normally open start push button is extremely useful and extremely common.
Memory Aid: This circuit is sometimes called a holding, latching, or memory circuit because it maintains the last asserted state. When you press start, it remains until you press stop. When you press stop, it remains until you press start. This means an operator can press and release a momentary start button and then just walk away.
Safety Additions to the Holding Circuit
E-Stop (Maintained Normally Closed):
In its natural deactivated closed state, the E-stop does not affect normal functionality
When pressed, it disables the system
Due to the maintained (not momentary) nature, the system remains disabled until the E-stop is reset
The start button will not energize the system despite repeated attempts until the E-stop is reset
Normally Closed Limit Switch:
Automatic switches that function without human intervention
Located at the limits of travel in the hydraulic schematic
One-Cycle Reciprocation System
The addition of a normally closed limit switch to the holding circuit creates a one-cycle reciprocation system. This means the cylinder rod fully extends, strikes the limit switch at the limits of travel, and then automatically retracts — completing a full cycle without operator attention.
Complete Circuit Components
Rung one: NC E-stop → NC Stop → Start (NO in parallel with CR1A) → NC LS1 → CR1 coil
Rung two: CR1B → Solenoid A
Step-by-Step Operation
Operator presses Start:
NO start push button closes
Path completed through NC E-stop, NC Stop, now-closed Start, and NC LS1
CR1 coil energizes
CR1 coil energized:
CR1A (holding contact) closes → Maintains CR1 energized state
CR1B closes → Solenoid A energized
DCV1 shifts to straight-through position
Cylinder begins extension
Operator releases Start:
CR1A holding path maintains CR1 energized state
Cylinder continues extending
Cylinder reaches limits of travel:
Strikes LS1 (normally closed limit switch)
LS1 opens → De-energizes CR1 coil
CR1A opens → Removes holding path
CR1B opens → Solenoid A de-energized
DCV1 returns to cross-connect position
Cylinder retracts automatically
Cylinder retracts:
LS1 is no longer actuated → Returns to normally closed state
System returns to natural start state
Ready for another one-cycle reciprocation
Functions of Stop vs. E-Stop
Stop button: Retracts the cylinder mid-stroke and returns to ready state.
E-Stop: Disables the system until manually reset. Even after spinning down, the start button will not re-energize the system.
Progressive System Development
Starting from general rules and simple pilot lights, the lecture progressively developed into a common industrial application taking into account safety, efficiency, and automation.
Initial system → Direct push button control of solenoid
Holding circuit added → Maintain last asserted state
Stop button added → Ability to return to start state
E-stop added → Safety disable with manual reset
Limit switch added → Automatic one-cycle reciprocation
The goal at this stage is not to design electrically controlled systems but to interpret existing ladder logic diagrams. These diagrams allow a technician to determine how a properly functioning system will respond to given stimuli and how to troubleshoot and repair an improperly functioning one.
Transition to Programmable Logic Controllers (PLCs)
Relevance of Traditional Ladder Logic
Hardwired relay-based ladder logic is being replaced with programmed instruction sets written inside ruggedized computers called Programmable Logic Controllers (PLCs).
Traditional hardwired: To change functionality, one must physically rewire the system
PLC-based: To change functionality, one must simply reprogram the system
PLCs are significantly easier to install, modify, and troubleshoot than traditional hardwired systems.
Relay Ladder Logic (RLL)
PLCs are commonly programmed using Relay Ladder Logic (RLL), a method astoundingly similar to traditional hardwired relay-based ladder logic. This means learning traditional ladder logic teaches two skills at once.
An understanding of ladder logic diagrams is essential to understanding the function and troubleshooting of all modern electrically controlled systems.
Summary
Ladder logic diagrams flatten traditional schematics into readable lines (rungs) between two vertical rails
Pilot signals are low voltage, low current, and electrically isolated from primary power for safety
Basic rules govern device placement: inputs on left, outputs on right, one load per rung, no loads in series
The holding circuit (latching/memory circuit) maintains the last asserted state and is extremely common in industrial applications
Safety devices like E-stops and limit switches can be integrated to enhance system safety and automation
One-cycle reciprocation allows automatic extension and retraction without operator intervention
Traditional ladder logic forms the foundation for understanding PLC programming using Relay Ladder Logic (RLL)

Ask anything
We've read this whole study set, so questions about it get the best answers.