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
Summary of Contents for cPCI-8168
Page 4: ......
Page 10: ...vi List of Figures...
Page 29: ...Installation 19 2 9 Overview of CN3 CN6...
Page 31: ...Installation 21 2 11 Switch Setting...
Page 204: ...194 Function Library...