Skip to main content

Posts

Showing posts with the label Allen Bradley programming

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

Timers Explained — TON, TOF, RTO in PLC Ladder Logic

 Timers Explained — TON, TOF, RTO in PLC Ladder Logic Sooner or later, every rung you write needs to wait for something. A pump that shouldn't stop the instant its command drops, a damper that needs a few seconds to actually reach position before the fan is allowed to start, an alarm that shouldn't scream the moment a reading blips for half a second. Every one of those situations comes down to the same three instructions: TON, TOF, and RTO. Learn these three cold, and you've covered probably ninety percent of the timing logic you'll ever write on a real plant. Why Timers Exist in the First Place A plain contact and coil only know two states: on or off, right now, with no memory of how long anything has been true. Most real equipment doesn't behave that cleanly. A conveyor needs a few seconds of run-up before a downstream sensor is believed. A trip condition might need to persist for a second or two before it's treated as real, so a single noisy pulse from a sens...