ICP DAS USA I-8090 3-axis encoder card Fig3 CW/CCW counting mode 10 Pulse/Direction counting mode

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 10
Image 10
Fig(3) CW/CCW counting mode

I-8090 User Manual

Version 1.0 06/2001

CW

 

 

 

 

 

 

 

 

 

 

 

 

CCW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

counter 1

2

3 2

1

 

 

X2=0

CW/CCW Counting Mode

 

 

Fig(3) CW/CCW counting mode

10 : Pulse/Direction counting mode

Pulse

Direction

counter

1

2

3

2

1

X2=0 Pulse/Direction Counting Mode

Fig(4) Pulse/Direction counting mode

Example: assign counting mode x_mode=y_mode=z_mode=0x00; card[cardNo].ctrl1 = 0x07 x_mode; card[cardNo].ctrl2 = 0x07 y_mode; card[cardNo].ctrl3 = 0x07 z_mode; outportb(card[cardNo].base + WR1, card[cardNo].ctrl1); outportb(card[cardNo].base + WR2, card[cardNo].ctrl2); outportb(card[cardNo].base + WR3, card[cardNo].ctrl3);

Example: read X-axis encoder value card[cardNo].ctrl1 &= 0xFC; //1111 1100 low byte outportb(card[cardNo].base + WR1, card[cardNo].ctrl1); value = inportb(card[cardNo].base + RD1); card[cardNo].ctrl1 = 0x01; //0000 0001 high byte outportb(card[cardNo].base + WR1, card[cardNo].ctrl1); value += inportb(card[cardNo].base + RD1)*256; card[cardNo].ctrl1 = 0x03; //0000 0011 outportb(card[cardNo].base + WR1, card[cardNo].ctrl1);

http://www.icpdas.com

1-7

ICPDAS

Page 10
Image 10
ICP DAS USA I-8090 3-axis encoder card user manual Fig3 CW/CCW counting mode 10 Pulse/Direction counting mode