Advantech ADAM-5511 Manual page 99

Table of Contents

Advertisement

Overflow value is the number of times the counter value exceeds the
Max/Min values you specified. When the counter value exceeds
Maximum value, the overflow value increases; When the counter value
goes under Minimum value, the overflow value decreases. Besides,
when the counter value runs beyond the range of Max/Min value, it
will continue counting from the initial value. Furthermore, if users want
to check the counter value to see if it is higher or lower than the Max/
Min value, they can run the "$aaSi7" command to gain a readout of the
overflow value.
If users want to get the actual counter value, a formula such as follows
can facilitate an easy calculation from the initial counter value,
overflow value and current counter value:
V
{|V
- V
tol =
ini
V
tol : totalizer value
V
ini : initial counter value
V
min : min. couner value = 0 (fixed value)
V
max : max. counter value = 2
V
vf
: overflow value
V
cur : current counter value
Example:
If the initial value =10, overflow value =4, min. value = 0, current
counter value = 3, the totalizer value could be calculated as
totalizer value = {|10 - 0| + 1} x| 4 |+ |10 -3| = 51
V
|+ 1} x |V
min (or
max)
32
= 4,294,967,295 (fixed value)
| + |V
- V
vf
ini
|
cur

Advertisement

Table of Contents
loading

Table of Contents