How to use counters in an Omron PLC?

Aug 29, 2025

Leave a message

Jordan Park
Jordan Park
Jordan is a senior product tester at Shenzhen Chentuo Technology, where he ensures that all automation products meet stringent quality and performance standards before they are shipped to customers worldwide. His expertise lies in rigorous testing protocols and troubleshooting complex systems.

As a trusted Omron PLC supplier, I'm excited to share in - depth knowledge about using counters in Omron PLCs. Counters are fundamental components in Programmable Logic Controllers (PLCs), enabling automation systems to count events, pulses, or operations accurately. In this blog, I'll guide you through the process of using counters in Omron PLCs, covering everything from basic concepts to practical applications.

Understanding Counters in Omron PLCs

Before delving into the usage, it's essential to understand what counters are in the context of Omron PLCs. Counters are memory locations within the PLC that can increment or decrement based on specific input conditions. They are used to keep track of the number of times an event occurs, such as the number of products passing on a conveyor belt or the number of times a machine cycles.

Omron PLCs offer different types of counters, including up - counters, down - counters, and up/down - counters.

OmRON PLCOMRON CP1E-N60SDR-A

Up - Counters

An up - counter increments its value every time it receives a count input signal. Once the counter value reaches a preset value, it can trigger an output. For example, in a bottling plant, an up - counter can be used to count the number of bottles filled. When the counter reaches the preset number of bottles, it can signal the conveyor to move the filled bottles to the next station.

Down - Counters

A down - counter starts with a preset value and decrements its value with each count input signal. When the counter value reaches zero, it can trigger an output. In a manufacturing process where a specific number of parts need to be assembled from a batch, a down - counter can be used. The preset value is the total number of parts in the batch, and as each part is used, the counter decrements.

Up/Down - Counters

Up/down - counters can increment or decrement their values depending on the input signals. They are useful in applications where the count direction may change, such as in a system that counts the number of people entering and leaving a room.

Configuring Counters in Omron PLCs

The configuration process of counters in Omron PLCs may vary depending on the model. Here, I'll use some popular models like Omron CPM1A - 40CDR - A - V1 and Omron CP1E - N60SDR - A as examples.

Step 1: Select the Counter

First, you need to choose an available counter in the PLC's memory. Each Omron PLC has a specific range of memory addresses allocated for counters. For example, in some models, counters may be located in the C000 - C999 range.

Step 2: Set the Preset Value

The preset value is the target value that the counter will reach. You can set this value using the programming software provided by Omron. In the programming software, you'll find a dedicated section to set the preset value for the selected counter. For instance, if you're using an up - counter to count the number of products on a conveyor, and you want to stop the conveyor after 100 products, you'll set the preset value to 100.

Step 3: Define the Count Input

The count input is the signal that causes the counter to increment or decrement. You need to specify the input address in the PLC's programming. This input can be a sensor signal, such as a proximity sensor that detects the passage of products on a conveyor.

Step 4: Define the Reset Input

The reset input is used to reset the counter value back to zero. You need to define the input address for the reset signal. For example, after a batch of products has been processed, you may want to reset the counter so that it can start counting the next batch.

Programming Examples

Let's take a look at some simple programming examples using ladder logic, which is a common programming language for PLCs.

Up - Counter Example

|____|____|____|____|____|____|____|____|
|    |    |    |    |    |    |    |    |
| IN | CT | PV |    |    |    |    |    |
|____|____|____|____|____|____|____|____|
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    |
|____|____|____|____|____|____|____|____|

In this ladder logic diagram:

  • IN is the count input. When this input is ON, the counter increments.
  • CT is the counter address.
  • PV is the preset value.

When the counter value reaches the preset value, an output can be triggered.

Down - Counter Example

|____|____|____|____|____|____|____|____|
|    |    |    |    |    |    |    |    |
| IN | CD | PV |    |    |    |    |    |
|____|____|____|____|____|____|____|____|
|    |    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |    |
|____|____|____|____|____|____|____|____|

Here, IN is the count input, CD is the down - counter address, and PV is the preset value. The counter starts with the preset value and decrements with each count input.

Practical Applications of Counters in Omron PLCs

Counters in Omron PLCs have a wide range of practical applications across various industries.

Manufacturing

In manufacturing, counters are used to control production quantities. For example, in a stamping machine, a counter can be used to count the number of stamped parts. Once the desired number of parts is reached, the machine can be stopped or the next batch can be started.

Packaging

In the packaging industry, counters are used to ensure that the correct number of products are packaged in each box. An up - counter can count the number of products entering the packaging machine, and when the counter reaches the preset number, the packaging process can be completed.

Logistics

In logistics, counters can be used to manage inventory. For example, in a warehouse, a counter can be used to count the number of pallets loaded onto a truck. This helps in accurate inventory management and shipping.

Power Supply Considerations

When using counters in Omron PLCs, it's important to ensure a stable power supply. A reliable power supply like the Omron S8VS - 24024 can provide the necessary power for the PLC and its associated components. A stable power supply is crucial to prevent counter errors due to power fluctuations.

Troubleshooting Counters in Omron PLCs

If you encounter issues with counters in your Omron PLC, here are some troubleshooting steps:

Check the Input Signals

Make sure that the count input and reset input signals are working correctly. You can use a multimeter or a diagnostic tool to check the voltage levels of these signals.

Verify the Preset Value

Ensure that the preset value is set correctly. An incorrect preset value can cause the counter to trigger outputs at the wrong times.

Check the Counter Memory

Sometimes, the counter memory may be corrupted. You can try resetting the PLC and re - programming the counter to see if the issue persists.

Conclusion

Counters are powerful tools in Omron PLCs that enable precise control and automation in various applications. By understanding the different types of counters, how to configure them, and their practical applications, you can make the most of these features in your automation systems.

If you're interested in purchasing Omron PLCs or need further assistance with counter configuration and programming, please feel free to contact us for a detailed discussion. We are committed to providing high - quality Omron PLC products and professional technical support to meet your automation needs.

References

  • Omron PLC Programming Manuals
  • Industrial Automation Textbooks
Send Inquiry