ICP DAS USA 3-axis encoder card, 2-axis stepping/servo Computer Hardware User Manual


 
I-8091 User Manual Version 1.0 06/2001
http://www.icpdas.com 2-35 ICPDAS
3.1.5 Others
(27) unsigned char i8091_LIMIT_X(unsigned char cardNo)
to request the condition of X-axis limit switches
cardNo : board number 0~19.
MSB 7 6 5 4 3 2 1 0 LSB
/EMG /FFFF /FFEF /LS14 xx xx /LS11 /ORG1
/ORG1 : original point switch of X-axis, low active.
/LS11, /LS14 : limit switches of X-axis, low active, which must be
configured as Fig.(5).
/EMG : emergency switch, low active.
/FFEF : active low, FIFO is empty
/FFFF : active low, FIFO is full
Example:
unsigned char limit1;
limit1 = i8091_LIMIT_X(1);
(28) unsigned char i8091_LIMIT_Y(unsigned char cardNo)
to request the condition of Y-axis limit switches
cardNo : board number 0~19.
MSB 7 6 5 4 3 2 1 0 LSB
ystop xstop xx /LS24 xx xx /LS21 /ORG2
/ORG2 : original point switch of Y-axis, low active.
/LS21, /LS24 : limit switches of Y-axis, low active, which must be
configured as Fig.(6).
xstop: 1:indicate X-axis is stop
ystop: 1:indicate Y-axis is stop
Example:
unsigned char limit2;
limit2 = i8091_LIMIT_Y(1);
(29) i8091_WAIT_X(unsigned char cardNo)
to wait X-axis going to STOP state.
cardNo : board number 0~19.