Function Library
191
6.25 DI Change of state
@ Name
_8168_set_d_cos
– Enable DI pin change of state function
_8168_wait_d_cos
– Wait DI pin change of state event
_8168_set_hd_cos
– Enable HDI pin change of state function
_8168_wait_hd_cos
– Wait HDI pin change of state event
_8168_get_cos_status
– Get change of state status
@ Description
_8168_set_d_cos:
This function is used for enable/disable the DI pins’ change of
state function. The DI change of state interrupt will be enabled first
then it will reset the corresponding event when calling this func-
tion. Notice the
_8168_int_control
() must be set when using
this function. All axes have one DI pin for this function.
_8168_wait_d_cos
:
This function is used for waiting the change of state event. Once
this function is called, it will start
WaitForSingleObject
() to
wait the event. No reset event is inside this functions. Notice that
the time out time must be set more than 10ms to prevent the inac-
curancy of Windows timer.
_8168_set_hd_cos
:
This function is used for enable/disable the HDI pins’ change of
state function. The DI change of state interrupt will be enabled first
then it will reset the corresponding event when calling this func-
tion. Notice the
_8168_int_control
() must be set when using
this function. Only the first 4 axes of one card has this function.
_8168_wait_hd_cos
:
This function is used for waiting the change of state event. Once
this function is called, it will start
WaitForSingleObject
() to
wait the event. No reset event inside this functions. Notice that the
Содержание 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...