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-23 ICPDAS
break;
default:
Show5DigitLedSeg (0x01, 0x01);
Show5DigitLedSeg (0x02, 0x01);
Show5DigitLedSeg (0x03, 0x01);
Show5DigitLedSeg (0x04, 0x01);
break;
};
}
//---------------------------------------------------
unsigned char CardSearch(unsigned char SlotNum)
{
unsigned char temp;
temp=inportb(PortAddress[SlotNum]);
ShowCardName(SlotNum);
switch (temp)
{
case i8090: //i8090 3-axis encoder card
Print("Slot %d = i8090\r\n",SlotNum);
return i8090;
case i8091: //i8091 2-axis stepping card
Print("Slot %d = i8091\r\n",SlotNum);
return i8091;
default:
Print("Slot %d = No Card\r\n",SlotNum);
return NOCARD;
};
}
//---------------------------------------------------------------------------------
void main ()
{
unsigned char j;