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-21 ICPDAS
#define CARD1 1
#define CARD2 2
#define MAX_SLOT_NO 8
unsigned int PortAddress[8]={0x080, 0x0a0, 0x0c0, 0x0e0, 0x140, 0x160,
0x180, 0x1a0};
//--------------------------------------------------------------------
long x_value;
long y_value;
long z_value;
unsigned char index;
unsigned char x_index;
unsigned char y_index;
unsigned char z_index;
unsigned char i8090Slot;
//--------------------------------------------------------------------
//--------------------------------------------------------------------
void ShowLedValue(long value,unsigned char axis)
{
long j;
unsigned char negative_value;
if (value<0) negative_value=1;
else negative_value=0;
value=labs(value);
j=value-10*(value/10);
if (negative_value) Show5DigitLedWithDot(0x05, j);
else Show5DigitLed(0x05, j);
value=value/10;
j=value-10*(value/10);