I/O Modules

Overflow Value

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.

Getting the Totalizer 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:

Vtol = {Vini - Vmin (or Vmax) + 1} x Vvf + Vini - Vcur

Vtol

: totalizer value

Vini

: initial counter value

Vmin

: min. couner value = 0 (fixed value)

Vmax : max. counter value = 2 32 = 4,294,967,295 (fixed value)

Vvf

: overflow value

Vcur

: 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

4-48

ADAM-5000

Page 88
Image 88
Advantech RS-485 user manual Overflow Value, Getting the Totalizer Value, Example, Totalizer value = 10 0 + 1 x 4 + 10 -3 =