156
Function Library
_8168_link_interrupt
:
This function is used to link interrupt call back function. Don’t place
too many codes inside the call back function. We suggest useing
Windows event to handle interrupt
_8168_int_enableA
:
This function is used to pass a interrupt factor mapping event
arrays for each axis. The size of this array is 8x6. Please enter the
correct size of 2-dimension array and the type of HANDLE into this
function. Notice that this function can’t be used if the other event
enable function,
_8168_int_enable
() is used because it will
cause conflicts while operating interrupt, and vice versa.
_8168_int_disableA
:
This function is used to close the events passed to
_8168_int_enableA
().
_8168_map_axis_event
:
This function is used for mapping an interrupt factor of axis to the
event array created by
_8168_int_enableA
(). Users must use
this function after the event array is created. Once users use this
method to handle interrupt, they don’t need to get the event type
interrupt status through
_8168_get_int_status
() because the
event is already mapped to the interrupt factor by bit. As for error
type interrupt status, the last element in event array of each axis is
fixed for error type interrupt. If users get this event, they must use
_8168_get_int_status
() to find out which bit of error interrupt
is ON.
For DOS
_8168_get_int_type
:
This function is used to detect which kind of INP occurred.
_8168_enter_isr
:
This function is used to inform system that process is now entering
interrupt service routine.
_8168_leave_isr
:
This function is used to inform the system that the process is now
leaving interrupt service routine.
Содержание cPCI-8168
Страница 4: ......
Страница 10: ...vi List of Figures...
Страница 29: ...Installation 19 2 9 Overview of CN3 CN6...
Страница 31: ...Installation 21 2 11 Switch Setting...
Страница 124: ...114 Function Library Src Counter source Return Code ERR_NoError Value Meaning 0 External Feedback 1 Command pulse...
Страница 134: ...124 Function Library Return Code ERR_NoError ERR_SpeedError ERR_PChangeSlowDownPointError ERR_MoveRatioError...
Страница 155: ...Function Library 145 12 At FH speed maximum velocity 13 In deceleration 14 Waiting for INP signal 15 Reserved...
Страница 204: ...194 Function Library...