case WAIT_OBJECT_0:
//Get the interrupt event object successfully
//While the driving stop, clear the position counter
i8092MF_SET_LP(CardNo, AXIS_X, 0)
// ...
//Other user codes in the IST
// ...
//End of the interrupt
Slot_Interrupt_Done(Slot1);
//Get the interrupt status
RR3_X = i8092_GET_RR3(CardNo, AXIS_X);
//Disable the interrupt factor
i8092MF_INTFACTOR_DISABLE(CardNo, AXIS_X);
//Close the interrupt
Slot_Interrupt_Close(Slot1);
break;
case WAIT_TIMEOUT:
break;
case WAIT_FAILED:
break;
}
}
return 1;
}
Note:
Please refer the three functions:
Slot_Interrupt_Done(BYTE Slot), Slot_Interrupt_Close(BYTE Slot) in the
WinConSDK.
6.4.2 Interrupt Disabled
void i8092MF_INTFACTOR_DISABLE(BYTE
Description:
This function disables the interrupt factors
Parameters:
cardNo:
axis:
ICPDAS
Module number
Axis or axes (Please refer to Table 2-1)
Slot_Register_Interrupt(BYTE Slot),
WORD
cardNo,
76
I-8092F Software User Manual
axis)