ICP DAS USA 3-axis encoder card, 2-axis stepping/servo Computer Hardware User Manual


 
I-8090 User Manual Version 1.0 06/2001
http://www.icpdas.com 1-15 ICPDAS
i8090_INIT_CARD(CARD1, ENC_QUADRANT, ENC_QUADRANT,
ENC_QUADRANT);
(3) unsigned int i8090_GET_ENCODER(unsigned char cardNo,
unsigned char axis)
This command will return the counter value of the selected “axis” and
“cardNo”.
cardNo: 0~19, select which card.
axis : select which axis.
1 : X-axis
2 : Y-axis
3 : Z-axis
return : a 16 bits unsigned integer value.
(4) void i8090_RESET_ENCODER(unsigned char cardNo, unsigned
char axis)
This command will reset the counter value of the selected “axis” and
“cardNo”.
cardNo: 0~19, select which card.
axis : select which axis.
1 : X-axis
2 : Y-axis
3 : Z-axis
(5) unsigned char i8090_GET_INDEX(unsigned char cardNo)
It will return the “INDEX” register’s value of the selected “cardNo” card.
cardNo: 0~19, select which card.
Register Add. R/W Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
INDEX 0x04 R ZI YI XI
The index input C+/C- can read out from this register. These bits are active
high.
XI : indicate the index of X-axis.
YI : indicate the index of Y-axis.
ZI : indicate the index of Z-axis.