I-8091 User Manual
Version 2.0 04/2003
} i8091CardType;
i8091CardType card1;
//-------------------------------------------------------------------------
void main ()
{
card1.address=PortAddress[i8091Slot];
card1.DDA = 10;
card1.AD = 5;
card1.LSP = 5;
card1.HSP = 100;
card1.xmode = CW_CCW;
card1.ymode = CW_CCW;
card1.xdir = NORMAL_DIR;
card1.ydir = NORMAL_DIR;
card1.xson = ON;
card1.yson = ON;
card1.NCmode= OFF;
i8091_REGISTRATION(CARD1, card1.address);
i8091_RESET_SYSTEM(CARD1);
i8091_SET_VAR(CARD1, card1.DDA, card1.AD, card1.LSP, card1.HSP);
i8091_SET_DEFDIR(CARD1, card1.xdir, card1.ydir);
i8091_SET_MODE(CARD1, card1.xmode, card1.ymode);
i8091_SET_SERVO_ON(CARD1, card1.xson, card1.yson);
i8091_SET_NC(CARD1, card1.NCmode);
Delay(100);
.
.
//--- end of program ----------------------------
i8091_RESET_SYSTEM(CARD1);
}
http://www.icpdas.com
2-38
ICPDAS