15 position control and counters – ADLINK PCI-8154 User Manual
Page 197

Function Library
187
6.15 Position Control and Counters
@ Name
_8154_get_position
– Get the value of feedback position
counter
_8154_set_position
– Set the feedback position counter
_8154_get_command
– Get the value of command position
counter
_8154_set_command
– Set the command position counter
_8154_get_error_counter
– Get the value of position error
counter
_8154_reset_error_counter
– Reset the position error
counter
_8154_get_general_counter
– get the value of general
counter
_8154_set_general_counter
– Set the general counter
_8154_get_target_pos
– Get the value of target position
recorder
_8154_reset_target_pos
– Reset target position recorder
_8154_get_res_distance
– Get remaining pulses accumu-
lated from motions
_8154_set_res_distance
– Set remaining pulses record
@ Description
_8154_get_position
:
This function is used to read the feedback position counter
value. Note that this value has already been processed by the
move ratio setting by _8154_set_move_ratio(). If the move
ratio is 0.5, than the value of position will be twice. The source
of the feedback counter is selectable by the function
_8154_set_feedback_src
() to be external EA/EB or inter-
nal pulse output of 8154 .