Understanding Module Operation
3-4
High Speed Counter Encoder Module User Manual
3.2 Data Formats
The
current count value for each 24-bit counter is contained in two word
inputs (for example, WX1 and WX2).
•
The count range is from 0 to 16,777,215 in unipolar mode.
•
The count range is from +8,388,607 to –8,388,608 in bipolar mode.
•
Overflow and underflow occur at the 0 value.
T
able 3-2 shows the word format for the current count and Holding Register
values for the 24-bit counters (Counters 1 and 4).
T
able 3-2
24-Bit Count V
alue For
mat
Word MSByte LSByte
MSWord 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
LSWord 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
The count values for Counters 1 and 4 are contained in the following words:
•
Counter 1:
Count value:
WX1 and WX2
•
Counter 4:
Count value:
WX5 and WX6
The Holding Registers for Counters 1 and 4 are the following words:
•
Counter 1: Holding Register 1: WX9 and WX10
Holding Register 2: WX1
1 and WX12
•
Counter 4: Holding Register 3: WX13 and WX14
Holding Register 4: WX15 and WX16
Y
ou can select one of the following two’
s-complement formats to express the
unipolar and bipolar word values:
•
32-bit signed integer format:
smmmmmmm mmmmmmmm mmmmmmmm mmmmmmmm
•
Double 16-bit signed integer format:
saaaaaaa aaaaaaaa sbbbbbbb bbbbbbbb
where the numeric value is calculated as:
( (saaaaaaa aaaaaaaa) *32768 + (sbbbbbbb bbbbbbbb) )
Curr
ent Count and
Holding Register
Count V
alue
Formats
Comments to this Manuals