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.

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