3 position error counter, Position error counter – ADLINK PCI-8164 User Manual

Page 131

Advertising
background image

Operation Theory

119

4.4.3 Position error counter

The position error counter is used to calculate the error between
the command position and the feedback position. It will add one
count when the card outputs one pulse and subtracts one count
when the card receives one pulse (from EA, EB). This is useful in
detecting step-loses (stalls) in situations of a stepping motor when
an encoder is applied.

Since the position error counter automatically calculates the differ-
ence between pulses outputted and pulses fed back, it is inevita-
ble to get an error if the motion ratio is not equal to 1.

To obtain a position error reading, use the function call
_8164_get_error_counter(). To reset the position error

counter, use the function call
_8164_reset_error_counter(). The position error counter

automatically clears to 0 after home move is complete.

Related function:

X

_8164_get_error_counter(), _8164_reset_error_counter():
Refer to section 6.15

Advertising