82
•
Motion Library
@ Syntax
C/C++ (DOS, Windows 95/98/NT/2000)
U16_8136_INT_Enable(I16 CardNo, HANDLE *phEvent);
(Windows Only)
U16 _8136_INT_Disable(I16 CardNo); (Windows Only)
void _8136_S_INT_Control(I16 CardNo, U16 intFlag )
U16 _8136_S_Set_Int_Factor(I16 CardNo, I16 ChannelNo, U16
IntFactor)
U16 _S_Get_Int_Status(I16 CardNo,I16 AxisNo,U16 *IntStatus)
void _8136_Callback_Function(I16 CardNo,void
*callbackAddr(I16 AxisNo, U16 IntSts))
Visual Basic 5.0 or higher
B_8136_INT_Enable (ByVal card_number As Integer, phEvent As
Long) As Integer
B_8136_INT_Disable (ByVal card_number As Integer) As Integer
B_8136_S_INT_Control (ByVal CardNo As Integer, ByVal intFlag
As Integer)
B_8136_S_Set_Int_Factor (ByVal CardNo As Integer, ByVal
AxisNo As Integer, ByVal IntFactor As Integer, ByVal
OptionType As Integer) As Integer
B_8136_S_Get_Int_Status (ByVal CardNo As Integer, ByVal
AxisNo As Integer, IntStatus As Long) As Integer
B_8136_Callback_Function (ByVal CardNo As Integer, ByVal
lpCallBackProc As Long) As Integer
@ Arguments
CardNo: card number designated to set (Range 0 ~ 3)
ChannelNo: channel number designated to set (Range 0 ~ 6)
*phEvent: event handler array contains 7 handler for each card in
Windows interrupt system
*existCards: a return value to indicate how many cards are found
intFlag: enable or disable interrupt signal (Range 0~1)
intFactor: enable or disable interrupt for each type in each bit:
bit0: Limit switch on
bit1: Emergency stop on
bit2: Home switch on
bit3: Index signal on
bit4: Encoder value compared
bit5: Timer interrupt
bit6: ADC pre-load value reached
*IntStatus: Read the interrupt status of one axis. To adjudge which
interrupt is coming.
bit0: Positive Limit switch on
bit1: Minus Limit switch on
bit2: Emergency stop on
Summary of Contents for PCI-8136M
Page 1: ...PCI 8136M 6 Axis Motion Controller Card User s Guide ...
Page 2: ......