Skip to main content

Posts

Common Ladder Logic Mistakes New Technicians Make

 Common Ladder Logic Mistakes New Technicians Make (And How to Avoid Them) To close out this series, I want to talk honestly about the mistakes I see over and over again with technicians in their first year or two of working with PLCs. I made most of these myself early in my career, so this isn't a list written from a place of judgment — it's the list I wish someone had handed me. 1. Assuming the On-Screen Symbol Matches the Field Wiring We covered this in the contacts and coils post, but it's worth repeating because it causes real confusion: a normally closed contact in software describes logical behavior, not necessarily how the physical device is wired. Always verify against the actual I/O map and schematic instead of assuming. 2. Forgetting That Timers and Counters Retain Values RTO timers and counters don't reset themselves. If your logic doesn't include a deliberate reset condition, you will eventually get bitten by a stale accumulated value causing behavior t...
Recent posts

Troubleshooting Ladder Logic: A Step-by-Step Field Guide

 Troubleshooting Ladder Logic: A Step-by-Step Field Guide Twenty-five years on the plant floor has taught me that troubleshooting ladder logic isn't really a programming skill — it's an investigation skill. The logic is just where the evidence lives. Here's the approach I actually use when something's not working and a shift supervisor is standing behind me wanting an answer. Step 1: Get the Actual Symptom, Not the Secondhand Version "The mill won't start" and "the mill starts but trips after two minutes" are completely different investigations. Before you touch a laptop, talk to the operator. What exactly happened? Was there an alarm? What did the HMI say? What were they trying to do right before it happened? Half of wasted troubleshooting time comes from chasing the wrong symptom because nobody nailed down what actually occurred. Step 2: Check the Physical Layer Before You Blame the Program I've said this in earlier posts and I'll keep ...

Motor Start/Stop Circuits: From Relay Logic to Ladder Logic

 Motor Start/Stop Circuits: From Relay Logic to Ladder Logic Every technician who's been in this trade long enough eventually realizes something: ladder logic didn't invent motor control — it inherited it. The start/stop circuit you'll find in nearly every PLC program on the plant is a direct descendant of a physical relay panel design that's been standard practice for close to a century. Understanding that lineage makes you faster at reading both old and new systems. The Relay-Panel Original Before PLCs, a motor start/stop station was built from actual components bolted into a panel: a momentary Start pushbutton, a momentary Stop pushbutton (wired normally closed for safety — so a broken wire fails to the safe "stop" state, not a silent "can't stop" state), a control relay or contactor with an auxiliary contact, and the motor contactor itself. The wiring:  Stop button in series with Start button (or a holding contact in parallel with Start), fee...

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   ...

Interlocks in Ladder Logic: Protecting Your Equipment and People

 Interlocks in Ladder Logic: Protecting Your Equipment and People Of everything you'll ever touch in a ladder program, interlock logic deserves the most respect. Everything else in this series — timers, counters, seal-in circuits — is about making equipment do what you want. Interlocks are about stopping equipment from doing what could hurt someone or destroy a machine. Get this part wrong, and the consequences aren't "the conveyor didn't start." They're injuries, fires, and six-figure equipment damage. What an Interlock Actually Is At the logic level, an interlock is nothing exotic — it's a permissive contact, often several of them in series, that has to be true before an output is allowed to energize. The complexity isn't in the instruction set; it's in getting the conditions right, and making sure nothing can bypass them. Real example:  A raw mill can't start unless the mill fan is already running, the separator is up to speed, and no E-stop...

Understanding Contacts and Coils: The Building Blocks of Ladder Logic

 Understanding Contacts and Coils: The Building Blocks of Ladder Logic In the last post, we covered the basic idea behind ladder logic — rungs, rails, contacts, and coils. Now let's slow down and really understand contacts and coils, because this is the single most common place I see junior technicians get confused, especially when a rung isn't doing what they expect. Normally Open vs. Normally Closed  The Confusion Starts Here A normally open (NO) contact, symbol -| |-, is closed (passes power) when its associated bit is TRUE. Simple enough. A normally closed (NC) contact, symbol -|/|-, is closed (passes power) when its associated bit is FALSE. This is where people trip up. The contact's physical state on your screen doesn't describe the wiring in the field — it describes the software logic. If you've got an NC contact referencing a Stop pushbutton wired normally closed (which is standard safety practice), that contact is "closed" logically when the pushb...

Counters in Ladder Logic: Practical Applications in Cement Plants

 Counters in Ladder Logic: Practical Applications in Cement Plants If timers measure "how long," counters measure "how many." That sounds simple, and the basic instruction is simple — but counters show up in more places on a cement plant than most technicians realize, from batch tracking to bag counting to fault-frequency monitoring. Let's go through how they work and where you'll actually use them. CTU — Count Up The workhorse counter. Every time its input transitions from false to true (a rising edge — not while it's held true), the accumulated value increases by one. Once the accumulator reaches the preset, the done bit sets. It keeps counting past the preset too, if you let it, and the done bit stays set until reset. Real example: Counting bag discharge pulses from a rotary packer to track bags filled per shift, or counting pulses from a proximity sensor on a bucket elevator to detect bucket loss over time. CTD — Count Down The mirror image — starts ...