ICP DAS USA I-8091 2-axis stepping/servo unsigned char i8090GETINDEXunsigned char cardNo

Models: 3-axis encoder card, 2-axis stepping/servo I-8090 3-axis encoder card I-8091 2-axis stepping/servo

1 69
Download 69 pages 14.6 Kb
Page 18
Image 18

I-8090 User Manual

Version 1.0 06/2001

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.

http://www.icpdas.com

1-15

ICPDAS

Page 18
Image 18
ICP DAS USA I-8091 2-axis stepping/servo user manual void i8090RESETENCODERunsigned char cardNo, unsigned char axis