Rate/timer functionality, Pulse interval rate calculation method, Cyclic rate calculation method (current rate) – Rockwell Automation 1769-HSC Compact High Speed Counter Module User Manual

Page 32

Advertising
background image

32

Rockwell Automation Publication 1769-UM006E-EN-P - July 2013

Chapter 2

Module Operation

Rate/Timer Functionality

To ensure maximum accuracy, the module offers two different methods to
calculate the rate.

Per Pulse = 1/Pulse Interval
Cyclic = Number of Pulses/User-defined Time Interval

You select the method used, depending upon the pulse speed as defined below.
These are continuously available regardless of input operational mode.

Pulse Interval Rate Calculation Method

The pulse interval rate method is very accurate for slower rates, that is, when the
pulse interval (or time between pulses) is large compared to the system clock
timer (1 μs). A timer is used to measure the time between two successive pulses.
The inverse of this value is the pulse interval rate. The pulse interval rate cannot
be read directly from the module. It needs to be calculated. The calculation can be
performed in the user control program.

This method is not as accurate for higher pulse rates. When the pulse interval
shrinks, two factors can distort the per pulse calculation. If the pulse interval is
close to the measuring timer’s clock frequency, 1 MHz, the granularity of the time
increments has a greater effect on rate inaccuracy. In addition, the rate can be
calculated many times over the course of a single backplane scan. As a result, the
rate data obtained at a backplane scan is only that of the very last pair of pulses
and disregards the other rate calculations that have occurred during that interval.
This can result in rate inaccuracy if the pulses are unevenly spaced.

Cyclic Rate Calculation Method (current rate)

The module continuously calculates rates for each of its four possible counters,
regardless of operational mode (for example, up/down count). The 32-bit signed
integer rate from each counter is reported in the Ctr[

n].CurrentRate words of the

input array.

In this method, the rates are calculated at the end of a counter’s configured cycle
time. This is configured via the Ctr

nCyclicRateUpdateTime configuration

word/menu. Valid entries are 1…32,767 ms. The number of net counts, net
change in Ctr[

n].CurrentCount, during that period is converted into a rate value,

providing an average pulse rate.

IMPORTANT

The Rate/Timer Functionality information does not apply to the
L23E packaged controller.

Pulse Interval = 100 µs
Frequency = 1/100 µs = 10,000 Hz

Advertising