ADLINK PCI-8144 User Manual
Page 142
![background image](/manuals/733471/142/background.png)
132
Function Library
I16 MotionIntFactorBitNum
: Specifies the bit number of
the INT factor.
Z
Eg. Stop INT : MotionIntFactorBitNum = 0;
I32 TimeOutMs
: Specifies the time-out interval, in millisec-
onds.
If TimeOut_ms is zero, the function tests the states of the spec-
ified objects and returns immediately. If TimeOut_ms is -1, the
function's time-out interval never elapses (infinate).
Return Values:
ERR_ParametersInvalid
ERR_DeviceNotInitial
ERR_InterruptNotEnable
ERR_TimeOut
ERR_Win32Error
ERR_NoError
Example:
I32 TimeOutMs = 10000; //time out in milisecound
I16 MotionIntFactorBitNum = 0; //bit number = the
first bit=0
I16 MotionIntFactorInBit = 0x1; //enable motion
interrupt
ret = _8144_set_motion_interrupt_factor( AxisNo,
MotionIntFactorInBit );
//…start a move function…
ret = _8144_wait_single_motion_interrupt( AxisNo,
MotionIntFactorBitNum, TimeOutMs );
if( ret == ERR_NoError ){ //Interrupt occurred!}
I16 MotionIntFactorInBit = 0; //disable
1
0
4
1
5
2
6
3
7
2
0
8
...
...
Card ID Physical axis AxisNo