EP 003·🟢 Apprentice

PLC Scan Cycle & Ladder Logic Basics

You already know inputs and outputs. Now let’s connect them — how the PLC actually thinks, one scan at a time, and how ladder logic decides when an output turns on.

PLC scan cycle applied to ladder logic: four steps — Read Inputs, Execute Logic, Update Outputs, and the cycle repeating — shown alongside a ladder rung example with a motor run coil.
PLC scan cycle applied to ladder logic.

Watch Full Lesson

Reserved · Coming soon

Student Guide

Companion to EP003 — learning objectives, glossary, knowledge-check preview, and field tips, all on one page. The full illustrated PDF will be added as a download later.

View Student Guide →

Knowledge Check

Five quick questions to check what stuck. Reveal answers as you go — no score tracking, no pressure.

Start Knowledge Check (OCG-Q003) →

Why This Matters

Every PLC-controlled machine depends on the scan cycle. Understanding how the PLC reads inputs, executes logic, and updates outputs helps technicians troubleshoot faster and avoid replacing good components unnecessarily. A technician who understands the scan cycle can determine whether a fault is caused by: a field input device, the PLC program, an output device, or wiring/power issues.

What is the PLC Scan Cycle?

A PLC doesn’t run its program once — it runs it over and over, thousands of times per second, in a continuous loop called the scan cycle. Every single scan, the PLC does three things in order: it reads all its inputs, it executes the ladder logic program using those input values, and it updates all its outputs based on what the logic decided. Then it starts over. This loop never stops while the PLC is in Run mode.

The Processing Stages

  1. Read Inputs — The PLC checks the current state of every input — every pushbutton, sensor, switch — and stores those values.
  2. Execute Logic — The PLC runs through the ladder logic program, rung by rung, top to bottom, using the input values it just read.
  3. Update Outputs — The PLC applies the results of that logic to the real-world outputs — energizing or de-energizing contactors, valves, lights.

Continuous Scan Cycle Explanation

Once the Update Outputs stage finishes, the PLC immediately returns to Read Inputs and the cycle continues — continuously, for as long as the PLC remains in Run mode. Typical scan times range from roughly 1–20 milliseconds, depending on the PLC and the size of the program, meaning most PLCs complete this loop dozens to hundreds of times per second. Although the scan cycle is extremely fast, the PLC still processes information in sequence — understanding this sequence is essential when diagnosing intermittent faults, delayed responses, or unexpected machine behavior in the field.

Quick reference — scan time vs. pulse width

If a scan takes 10 ms and a field device (like a photoeye) produces a pulse only 2 ms wide, that pulse can fall entirely between two Read Inputs stages and never be captured at all. This is exactly why fast, asynchronous field signals are often “latched” by a one-shot instruction or a memory bit that holds the detection until the PLC has a chance to act on it, rather than relying on the raw input staying present long enough to be read.

Understanding I and Q Addresses

The Input Image Table and Output Image Table aren’t abstract ideas — every value in them is the PLC’s stored status for one specific real-world device, referenced by its address.

What does I mean?

I stands for Input. Inputs are devices that send information to the PLC, such as pushbuttons, limit switches, photoeyes, and proximity sensors. The number after the I is the PLC address.

AddressDeviceStored Value
I0.0Start Pushbutton1
I0.1Stop Pushbutton0
I0.2Photoeye1
I0.3Limit Switch0
Example Input Image Table values

What does I0.2 = 1 mean? It means the device connected to input I0.2 is ON (true). If I0.2 is a photoeye: product detected → I0.2 = 1; no product detected → I0.2 = 0. The PLC stores this information in the Input Image Table before it starts solving the ladder logic.

What does Q mean?

Q stands for Output. Outputs are devices the PLC controls, such as motor contactors, solenoid valves, indicator lights, and buzzers.

AddressDeviceStored Value
Q0.0Green Light1
Q0.1Red Light0
Q0.2Motor Contactor0
Q0.3Solenoid Valve1
Example Output Image Table values

What does Q0.2 = 0 mean? It means the PLC is NOT commanding the device connected to output Q0.2. If Q0.2 controls a motor contactor: Q0.2 = 1 → PLC energizes the contactor, motor runs; Q0.2 = 0 → PLC de-energizes the contactor, motor stops.

How the PLC Uses These Values

Imagine the Start pushbutton is pressed (I0.0 = 1), the Stop pushbutton is released (I0.1 = 0), and the photoeye is detecting product (I0.2 = 1). During Read Inputs, the PLC stores these values in the Input Image Table. It then executes the ladder logic and writes results to the Output Image Table. During Update Outputs, those results are sent to the real terminals: the green light turns on, the motor contactor energizes, and the solenoid valve opens.

Why Are These Called Image Tables?

They’re called “image” tables because each one is an internal snapshot — a picture — of the inputs or outputs at one moment in the scan. The PLC takes a snapshot of the inputs, runs all the ladder logic using only that snapshot, produces a second snapshot of the results, and only then updates the physical outputs. This is exactly why understanding the scan cycle matters for troubleshooting.

Ladder Logic Basics

Ladder logic is drawn like a ladder: two vertical power rails on the left and right, with horizontal “rungs” in between. Each rung represents one line of logic. If the contacts on a rung create a complete path from the left rail to the right rail, the rung is “true,” and the coil at the end of the rung energizes — turning that output ON.

Normally Open (NO) and Normally Closed (NC) Contacts

Contacts on a rung represent inputs. A Normally Open (NO) contact is open at rest and closes when its input is active, allowing the rung’s logic to pass through it. A Normally Closed (NC) contact is closed at rest and opens when its input is active — commonly used for Stop and safety circuits, since a broken wire then reads as a fault rather than being silently ignored.

Safety / Engineering Best Practice — Why Stop is Normally Closed

This is a fail-safe design principle worth committing to memory: if the Stop button’s wire breaks, the terminal corrodes, or the button itself fails, the NC contact opens — and the PLC sees that exactly as if someone pressed Stop. The machine safely shuts down. If Stop were wired Normally Open instead, that same failure would look identical to “not pressed,” and the operator could lose the ability to stop the machine without any warning. This is why virtually every Stop and Emergency Stop circuit in industry uses NC contacts: the failure mode defaults to “stop,” never to silence.

Output Coils

A coil sits at the end of a rung and represents an output. When the rung to its left forms a complete logical path, the PLC energizes the output coil in memory. During the Update Outputs stage of the scan cycle, that result is transferred to the physical output terminal, allowing the connected device — such as a contactor, solenoid valve, or indicator light — to operate.

Start/Stop/Seal-In Circuit

One of the most common rungs you’ll ever see: a Start pushbutton (Normally Open, address I0.0) in series with a Stop pushbutton (Normally Closed, address I0.1), controlling a Motor coil (address Q0.0 — a physical output, since the motor contactor is a real field device). Pressing Start closes its contact, completing the rung, and energizes the Motor coil. But there’s a catch — release the Start button, and the contact opens again. So a second contact, wired in parallel with the Start contact and driven by the Motor coil itself (also referencing Q0.0), “seals in” the circuit, keeping the rung true even after Start is released. Press Stop, and its Normally Closed contact opens, breaking the rung and de-energizing the Motor — no matter what else is happening.

Step-by-Step Walkthrough

  1. At rest: the Start contact is open, the Stop contact is closed (normal, unpressed state), and the seal-in contact is open. The rung is false; the Motor coil is de-energized.
  2. Operator presses Start: the Start contact closes. With Stop still closed, the rung is now complete. The Motor coil energizes.
  3. The Motor coil energizing also closes the seal-in contact (wired in parallel with Start).
  4. Operator releases Start: the Start contact reopens, but the now-closed seal-in contact keeps the rung complete. The Motor coil stays energized.
  5. Operator presses Stop: the Stop contact opens, breaking the rung regardless of the state of Start or the seal-in contact. The Motor coil de-energizes, and the seal-in contact reopens.

Example in Action

An operator presses the Start pushbutton (I0.0) on a conveyor control panel. During the next scan, the PLC reads that input as ON, executes the ladder logic, and finds the Start/Stop/Seal-In rung now complete. The Q0.0 output coil energizes, and on the Update Outputs stage, the physical output turns on — the conveyor motor starts running. The seal-in contact (also referencing Q0.0) keeps the rung true scan after scan, so the motor keeps running even after the operator lets go of the Start button. This continues, scan after scan, until the Stop button (I0.1) is pressed or a fault condition interrupts the rung.

Troubleshooting Example

Scenario: The operator presses the Start pushbutton, but the conveyor does not run. A systematic technician should check, in order:

  1. Is the Start pushbutton input changing in the PLC?
  2. Is the Stop circuit closed?
  3. Does the ladder rung become true?
  4. Is the output coil energized?
  5. Is the PLC output LED ON?
  6. Is the contactor or VFD receiving power?
  7. Is the motor overloaded or faulty?

Following the scan cycle — input, logic, output — in order prevents guessing and reduces unnecessary parts replacement. Remember: if the PLC input changes correctly but the output never energizes, investigate the ladder logic or program conditions; if the PLC output energizes but the equipment still doesn’t operate, investigate the field wiring, contactor, overload relay, VFD, power supply, or the equipment itself.

Common Beginner Mistakes

  • Assuming the PLC checks inputs continuously in real time — it only sees the value from the start of that scan
  • Forgetting that a very short input pulse can be missed entirely if it changes faster than the scan cycle
  • Reading a rung right-to-left instead of left-to-right
  • Forgetting the seal-in contact and wondering why a motor stops the instant a pushbutton is released
  • Confusing a contact (input reference) with a coil (output reference) when reading a rung

Maintenance Best Practice

Never troubleshoot from assumptions. Always verify: input status, logic execution, output status, field device operation. The PLC only reports what it sees. It cannot compensate for faulty sensors, broken wiring, or failed actuators.

Field Tip

“When you’re staring at a ladder diagram trying to figure out why an output won’t energize, don’t just look at the coil — trace the rung backward, contact by contact, and ask which one isn’t making a complete path. The scan cycle means the PLC is only ever reacting to what it saw at the start of that scan, so if something changed a moment too late, it’ll show up next scan, not this one.”

— Kady Kadiamba Mubalamata, Electro-Mechanical Technician & Founder, OnCallGrid Inc.

Where You'll See This

The scan cycle and ladder logic are used in: conveyor systems, packaging machines, pump stations, HVAC systems, food processing equipment, water treatment plants, manufacturing production lines. These are only a few examples. Nearly every automated industrial process — from small packaging machines to large manufacturing lines — relies on the PLC scan cycle and ladder logic to control equipment safely, reliably, and efficiently.

Key Takeaways

  • The PLC scan cycle reads inputs, executes logic, and updates outputs — then repeats continuously while in Run mode.
  • A ladder rung is read left to right: contacts represent inputs, the coil represents an output.
  • A seal-in contact lets a momentary Start button hold a circuit true after it’s released.
  • A Normally Closed Stop contact fails safe — a broken wire is read as Stop, not ignored.
  • Scan timing matters: a signal change faster than the scan time can be missed entirely.
  • Understanding the scan cycle allows technicians to diagnose problems logically rather than by trial and error.
  • A PLC output being ON does not always mean the field device is operating correctly.

Safety Reminder

Before testing PLC-controlled equipment:

  • Follow Lockout/Tagout (LOTO) procedures
  • Verify equipment is in a safe condition
  • Never bypass safety devices to test ladder logic
  • Always follow your facility’s electrical safety procedures

Apprentice Challenge

Draw a ladder rung that: uses a Normally Closed STOP pushbutton; uses a Normally Open START pushbutton; uses a seal-in contact; energizes one motor output. Explain what happens when: (1) START is pressed, (2) START is released, (3) STOP is pressed.

Bonus Challenge

The START pushbutton operates correctly, but the motor never starts. Using the PLC scan cycle, explain the order in which you would troubleshoot the problem and identify which devices you would inspect first.

Suggested approach:

Work the same three boundary checkpoints used throughout this lesson — Input, then Logic, then Output. First confirm the Input boundary: is I0.0 actually reading ON when Start is pressed? If yes, move to the Logic boundary: does the rung actually go true — is the Stop circuit closed, and does the seal-in condition evaluate correctly? If the rung is true, move to the Output boundary: does Q0.0 actually energize, and does that signal reach the physical contactor? Only once all three boundaries check out do you move past the PLC entirely and inspect the motor, overload relay, or power supply itself. Checking boundaries in this order — rather than jumping straight to the motor — is what prevents unnecessary parts replacement.

← Back to seriesNext: EP004 — coming soon