Skip to main content

Counter and its Function/Automation/Industrial Automation/PLC counter


What is counter

A counter may be a digital circuit or device that counts the amount of products and returns predefined values supported clock pulse applications. The output of the counter are often wont to count the amount of pulses. The counter circuit is typically composed of several flip-flops connected within the cascade method. Counter automation and digitally based components are very widely used components.

     Micro controller applications require external events or precise internal time delay generation and calculation of pulse frequency as required . These phenomena are often utilized in digital systems and automation. Both of those events are often performed by software techniques, but software loops for counting won't give accurate results, as little more important work isn't done. These problems are often corrected by timers and counters in micro controllers that are used as interrupts.

Classification of counters

In digital circuits, counters are often implemented using register-type circuits like flip-flops,

The counters are classified as given below.

 Asynchronous or Ripple Counter - Sequence state flip-flops are used as clocks to define the Ripple Counter because the Replay Counter State. additionally , asynchronous counters are less useful than synchronous counters in complex, high-frequency systems.

 Synchronous Counter - A synchronous counter has an indoor clock, while asynchronous counters don't . As a result, all flip-flops during a synchronous counter run simultaneously by one , normal clock pulse. (All state bits are converted to one clock control)

Plc counter

            The PLC counter may be a function block that counts until or below a given threshold. Now-a-days PSC may be a tool widely utilized in industrial automation. PLC counters also are utilized in SCADA systems by calculating allocated act . once you are allocating a task, counters widely utilized in PLC programming to count what percentage times a process has been completed. Or what percentage products are produced.

How to address a counter in PLC

Counters use variables of some data types to store numbers during a PLC. All counters are required to store a minimum of two numbers, these two numbers are saved during a fixed data type, which also has their limitations. Many PLCs save these two numbers as WORD or Integer data types.

Below shown addressing for the PLC 

 UP Counter: this is often wont to indicate when a count has reached the utmost 'up count' value.

Input


Signal
Data type
Description
EN
BOOL
Enables block operation
R
BOOL
Reset CV
PV
UINT, UDINT
Preset value of the up counter
Outputs
Signal
Data type
Description
ENO
BOOL
Indicates completion of operation
CV
UINT, UDINT
Current value of the up counter
Block Representation in Ladder.

Operation in LD:
Variable Table:
UP COUNTER RPS:
Up counter rps is Used in device for a  signal when a count has reached a maximum ‘Up count’ value with input pulse Frequency measurement. The Selection of Averaging Time & Averaging Pulses for frequency measurement is provided.
Inputs
Signal
Data type
Description
CU
BOOL
Pulse input - Count Up
R
BOOL
Reset CV
PV
UDINT
Preset value of the Up counter
AT
UINT
Averaging time for RPS update in 0.1s resolution (0.1 to 6553.5s)
AP
UINT
Average number of Pulses for RPS update (1 to 65535)
Outputs
Signal
Data type
Description
ENO
BOOL
Set when CV >= PV
CV
UDINT
Current value of the Up counter
RPS
UINT
Calculated RPS value in 0.01Hz resolution (0.01Hz to200Hz)*
Accuracy:- +/– 1ms
Update:– Every AT or AP whichever occurs first
Note:-Averages RPS of IP pulses on CU pin will be calculated depending upon value of AT & AP as mentioned in below table.
AT
AP
RPS Output Calculated & Updated
> 0
= 0
every 'Average Time'
= 0
> 0
when No of input pulses >= 'Average Pulses'
> 0
> 0
condition that satisfies first (as per above 2 steps)
= 0
= 0
every input pulse
Check the Example Given below
Input
Output

Update time (sec)
Input Pulse @ CU
AT (sec)
AP
RPS output (Hz)
10 Hz
0
50
10.00
5
20 Hz
0
50
20
2.5
25 Hz
1.5
0
25.00
1.5
30 Hz
2.0
80
30.00
2
100Hz
2.0
80
100
0.8
50 Hz
0
0
50.00
Every pulse (20ms)
LD Representation :

Ladder:

Variable Table :
·          Up/down counter – counts both up and down, under command of a control input
Inputs:
Signal
Data type
Description
CU
BOOL
Count Up
CD
BOOL
Count Down
R
BOOL
Reset CV
LD
BOOL
Used to set CV with PV
PV
INT, DINT
Preset value of counter

Outputs:
Signal
Data type
Description
QU
BOOL
set when CV >= PV
QD
BOOL
set when CV <= 0
CV
INT, DINT
Current value of counter
Representation in LD:
Operation in LD:

Variable View:

Down  counterDown counter is Used to signal when a count has reached zero value
Inputs
Signal
Data type
Description
EN
BOOL
Enables block operation
R
BOOL
Reset CV
PV
UINT, UDINT
Preset value of the down counter
Outputs
Signal
Data type
Description
ENO
BOOL
Indicates completion of operation
CV
UINT, UDINT
Current value of the down counter
Representation in LD:

Operation in LD:

Variable Table :

All counters are supported different applications in industry. Plc counter avoid the external expenses of shopping for a counter. In plc counter is inbuilt so got to connect External counter to  automatic counts.

Note:

1. once you are communicating the plc online or offline you want to give the right address for a input & output. Every input & Output define in Boolean expression only

2. All the function block define consistent with there application so it's going to be integer,Double Integer, Word or Double Words. All the counters Preset and cv value expressed in Int or Double int.

1. A counter may be a PLC instruction that either Increment(counts up) or decrements (counts down) an integer number value when actuate by the passage a touch from 0 to 1 (“false” to “true”). Counter instructions are available three basic types: up counters, down counters, and up/down counters.

 Uses Of Counters

1. Counters are often utilized in industries for time delays and production monitoring.

2. Cement manufacturing.

3. Paper industry etc…


Comments

Popular posts from this blog

What Is SCADA System

SCADA                 Supervisory Control and Data Acquisition or SCADA is an automation control system used in industries such as energy, oil and gas, water power and many more.         The system has a centralized system that monitors and controls the entire country from industrial plants to plant premises.             The SCADA system works by working with signals that communicate through channels to provide the user with remote control of any device in a system.        There are some essential parts composed of highly controllers and monitoring Systems. 1. SCADA system human machine interface or HMI supervisory system remote terminal units 2. RTu  use programmable logic controllers or PLC and communication infrastructure. HMI processes the data and sends it to the human operator. Where they can monitor or control the system.          The supervi...

Introduction to CSS,Typography

  Introduction to CSS What is CSS? CSS (Cascading Style Sheets) is used to control the style and layout of web pages. It allows you to separate content (HTML) from presentation, enabling better design consistency and easier maintenance. Why Use CSS? Enhances the visual appearance of websites. Makes websites responsive for different devices. Reduces duplication by centralizing styles. Enables consistent design across multiple pages. Types of CSS 1.      Inline CSS o     Applied directly to an HTML element using the style attribute. o     Use When: You want to apply a unique style to a single element. Example: html Code start here <p style="color: red; font-size: 16px;">This is an inline-styled paragraph.</p> 2.      Internal CSS o     Defined within a <style> tag in the <head> section of the HTML document. o  ...

Plc (Programmable Logic Controller) Communication/PLC communication protocols/Ethernet/IP

Plc (Programmable Logic Controller) Communication/PLC communication protocols. A program consists of 1 or more instructions that accomplish a task. Before writing the program in plc you'd wish to attach the module with PLC software by using communication port like RS232,Serial Communication,Modbus or Ethernet supported your application. you'd wish to offer the connection to all or any or any your input and out devices, Then you've to write down down the program in plc.. Ladder Logic is that the normal programming language . There are four basic steps within the operation of all PLCs; Input Scan, Program Scan, Output Scan, and Housekeeping. These steps continually happen during a repeating loop.        The communication protocol acts as an agreement between two or more communicating Devices. Extension modules PLC I/O number are often increased through certain additional modules by system extension through a extension lines. In PLC Each module can con...