14 position control and counters – ADLINK PCI-8158 User Manual

Page 189

Advertising
background image

Function Library

179

6.14 Position Control and Counters

@ Name

_8158_get_position – Get the value of feedback position

counter

_8158_set_position – Set the feedback position counter

_8158_get_command – Get the value of command position

counter

_8158_set_command – Set the command position counter

_8158_get_error_counter – Get the value of position error

counter

_8158_reset_error_counter – Reset the position error

counter

_8158_get_general_counter – get the value of general

counter

_8158_set_general_counter – Set the general counter

_8158_get_target_pos – Get the value of target position

recorder

_8158_reset_target_pos – Reset target position recorder

_8158_get_res_distance – Get remaining pulses accumu-

lated from motions

_8158_set_res_distance – Set remaining pulses record

@ Description

_8158_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 _8158_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
_8158_set_feedback_src() to be external EA/EB or internal
pulse output of 8158 .

_8158_set_position:

Advertising