ADLINK PCI-8154 User Manual

Page 198

Advertising
background image

188

Function Library

_8154_set_position

:

This function is used to change the feedback position counter
to the specified value. Note that the value to be set will be pro-
cessed by the move ratio. If move ratio is 0.5, then the set
value will be twice as given value.

_8154_get_command

:

This function is used to read the value of the command position
counter. The source of the command position counter is the
pulse output of the 8154.

_8154_set_command

:

This function is used to change the value of the command posi-
tion counter.

_8154_get_error_counter

:

This function is used to read the value of the position error
counter.

_8154_reset_error_counter

:

This function is used to clear the position error counter.

_8154_get_general_counter

:

This function is used to read the value of the general counter.

_8154_set_general_counter

:

This function is used to set the counting source of and change
the value of general counter (By default, the source is pulser
input).

_8154_get_target_pos

:

This function is used to read the value of the target position
recorder. The target position recorder is maintained by the
8154 software driver. It records the position to settle down for
current running motion.

_8154_reset_target_pos

:

This function is used to set new value for the target position
recorder. It is necessary to call this function when home return
completes, or when a new feedback counter value is set by
function _8154_set_position().

Advertising