Skip to main content

Understanding the PLC Scan Cycle: Why Rung Order Matters

 Understanding the PLC Scan Cycle: Why Rung Order Matters

Here's something that trips up even technicians with a few years of experience: a PLC doesn't execute your program the way you might imagine — all rungs "running at once," reacting instantly and simultaneously. It executes in a strict, repeating loop, top to bottom, over and over, many times a second. Understanding that loop explains a lot of behavior that otherwise looks like a mystery.

The Three-Phase Loop

Every scan cycle, broadly, does three things in order:

1. Input scan 

the PLC reads the current state of all physical inputs and stores them in an input image table (a snapshot, essentially a memory copy of what the field looked like at that instant).

2. Program execution 

 the PLC executes every rung, top to bottom, left to right, using that snapshot of inputs. Any changes to outputs during this phase are written to an output image table, not directly to the physical field yet.

3. Output scan 

 the PLC updates the actual physical outputs to match the output image table all at once.

Then it repeats. On modern PLCs this whole cycle might take single-digit milliseconds for a modest-sized program, but it's still a loop, not instantaneous parallel execution — and that distinction matters more than people expect.

Why This Explains "Weird" Behavior

Because inputs are only read once per scan (at the start), if a physical input changes state in the middle of program execution, the PLC won't see that change until the next scan starts. For almost everything you do, this happens so fast it's irrelevant. But for very short pulses — faster than the scan time — the PLC can genuinely miss them entirely. This is one real-world reason ultra-fast pulse counting sometimes needs dedicated high-speed counter hardware or interrupt-driven logic rather than standard ladder scanning.

Why Rung Order Actually Matters

Because the program executes top to bottom within a single scan, a rung further down can use the result of a rung above it from the same scan — but a rung above can only see results from the previous scan for anything below it. This is called scan-order dependency, and it's exactly why the order you write your rungs in isn't just cosmetic.

Practical example: 

If you have a rung that sets a "Permissive OK" bit based on several conditions, and a second rung further down that uses that Permissive bit to allow a motor start, this works fine — the permissive is calculated first, then used. But if you accidentally reversed the order — motor start logic above, permissive calculation below — the motor start rung would always be working with last scan's permissive value, one scan behind. Usually harmless because scans are so fast, but in certain timing-sensitive interlock chains, this lag is exactly the kind of thing that causes intermittent, hard-to-reproduce faults.

Field Tip: When "It Works Sometimes" Really Means Timing

If you're chasing an intermittent fault that seems to happen only occasionally, and normal signal-level checks (wiring, sensor health, noise — like the Allen Bradley DI card faults we covered from motor-start transients) come back clean, consider whether it's a scan-timing issue: a race condition between two rungs, or an input event faster than the scan can reliably catch. These are rare compared to wiring and sensor faults, but they're real, and they're worth ruling in or out once the obvious causes are exhausted.

Why This Matters for You as a Technician

You don't need to calculate scan times by hand to be good at this job. But understanding that the program runs top-to-bottom, once per loop, using a snapshot of inputs — rather than reacting instantly and continuously — will change how you read unfamiliar ladder logic. You'll start asking "what order does this actually execute in" instead of assuming everything happens all at once, and that question alone solves more mystery faults than you'd expect.

Next in the series:

 motor start/stop circuits — tracing the full journey from old-school relay panels to modern ladder logic, and why understanding the relay heritage still makes you a better PLC troubleshooter today.

Comments

Popular posts from this blog

Capacitive Level Sensors

Capacitive Type Level Sensors Capacitive type level switches and transmitters are widely used in industrial level measurements. The capacitor is made up of two plates and isolated by some isolators having a fixed dielectric constant. But in level measurement we use a variable capacitor, capacitance can be changed by changing the gap between the two plates or by changing the dielectric constant, so dielectric constant changes and proportional to that capacitance also changes. Capacitive level switches  Capacitive level switches are used in industrial applications for the point-level sensor to detect a high or low level of a vessel or tank. Working principle of capacitive level switch  In capacitance type level switches, there are two main units: 1. Capacitive probe 2. controller  The capacitive probe is made up of two plates mostly in the shape of two rods. and the material we want to sense acts as a gap between the plates.  As material touches, the sensor probe, the...

Radar level measurement

 Radar Level  Radar level transmitter are used to measure level in industrial applications. Radar level measurement method is an advanced method. In radar level transmitter time of flight method is used to measure the level. By calculating this time of flight we measure the level of liquid or solids.  RADAR level have a transmitter which transmit microwave or radar waves after colliding with material they return back to the receiver.  The time from the transmitter to the echo return to the receiver, is calculated, which is proportional to the level. This time is calculated by the formula:  Distance = (Speed of light x time delay) / 2 This calculation is done by a built in microprocessor and the level is displayed on screen or lcd, a signal proportional to level in 4 to 20 mA is output of level transmitter , this standard current signal of 4 to 20 mA is for plc or dcs. Time of Flight technology  Time of flight technology is used in  devices that are mu...

Top 50 Instrumentation Interview Questions

 Instrumentation Interview Questions and Answers Instrumentation Interview Questions and Answers There are different questions that you can be asked in an interview for the post of instrument technician, instrumentation engineer, or instrument supervisor. Most interview questions are related to the industry you are going to apply to, and they prefer a skilled person and have a good knowledge of instruments used in that specific industry. Here I will try to write the question with answers that are mostly asked for instrumentation professionals. Q. No. 1:  What is instrumentation? Ans :  Instrumentation is a branch of science which deals with the measurement and control of process variables in a process. Q. No. 2  What is the process? Ans :  The process is defined as the adoption of series of steps or methods to acquire a predefined result. Q. No. 3  What is a process variable? Ans :  It is a variable in the process that we are attempting to maintain...