Skip to main content

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 from a preset value and counts down toward zero with each rising edge on the input. Less common on its own, but frequently paired with a CTU on the same counter address (many PLC platforms let a CTU and CTD share the same accumulator) to build an up/down counter — useful for tracking net inventory, like items entering and leaving a buffer zone.




Resetting Counters 

Don't Skip This

Just like RTO timers, counters retain their accumulated value even after their input goes false — they only clear when a Reset instruction runs. This trips people up constantly. I've seen shift counters that were "counting wrong" simply because nobody wired in a reset-at-shift-change condition, so the count just kept climbing across shifts, weeks, sometimes months, until someone finally noticed the number looked absurd.

Before you deploy any counter into a live program, ask: what condition resets this, and how often should it reset? If the answer is "never," fine — that's a legitimate use case for lifetime counts. But it should be a deliberate decision, not an oversight.

Practical Application: Weigh Feeder Pulse Counting

This is one close to my own work. Belt weigh feeders and loss-in-weight feeders often use pulse-counting logic, either directly in the PLC or in an associated integrator, to correlate encoder pulses with belt travel for flow rate calculation. While the actual rate calculation is usually handled by a dedicated weighing controller, the PLC side frequently uses counters for diagnostic purposes — confirming the belt encoder is actually producing pulses when the feeder runs, as an early warning for a slipping belt or a failed encoder before it becomes a bigger material-flow problem.

Debouncing: The Silent Counter Killer

If your counting input comes from a mechanical device — a limit switch, a mechanical flow switch — contact bounce can register multiple false counts for a single physical event. This is different from an electrical noise problem (which we've covered before in the context of DI card faults); it's a genuine mechanical characteristic of the switch itself. The fix is usually a short debounce timer gating the counter's input, or using a solid-state proximity sensor instead of a mechanical contact wherever count accuracy actually matters.

Field Tip

When a counter "isn't working," the first thing to check — before assuming a program fault — is whether the input is even reaching the rung as a clean rising edge. Force the input or watch it live while triggering the physical event manually. More often than not, the counter logic is fine; the input signal is the problem.

Next in the series:

 interlocks — how ladder logic protects your equipment and your people, and why interlock logic deserves more respect than any other part of the program.


Recent & Popular Articles


🎥 Watch It Explained on PLC Key Channel

Prefer video? I break down topics like this with animations on my YouTube channel.

▶ Watch the full playlist on PLC Key Channel →

🛠️ Tools I Actually Use in the Field

A few affiliate links to tools that come up constantly in instrumentation work — I only list things I'd recommend to my own team:

As an Amazon Associate I earn from qualifying purchases. It doesn't cost you anything extra.

Got a specific instrumentation problem you're stuck on? Drop it in the comments — I answer based on real plant troubleshooting, not textbook theory.

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

Solenoid operated valve

Solenoid valve A solenoid valve or SOV is an electro mechanically operated valve.  This is controlled by an electric current through a solenoid coil, a magnetic field is produced in the electrical coil which mechanically operates the plunger of the valve and hence changes the path of air or fluid from one direction to another direction. Types of solenoid valve: 2/2-way solenoid valve This type of valve has 2 ports and it acts in  2 positions.  It means the solenoid valve has two ports one is the inlet port and another port is the outlet port, material passing through the solenoid valve either pneumatic or fluid is applied to the inlet port and exhausted through the outlet port. Two-position of solenoid valve means that its piston or plunger has two-position, either valve is open or close. 3/2-way solenoid valve  This type of valve has 3 ports and 2 acting positions. 5/2 way solenoid valve  This type of valve has 5 ports and 2 positions. Types of a solenoid valv...