Position Compare - ADLINK Technology HSL-4XMO User Manual

High speed link 4-axis motion control module
Table of Contents

Advertisement

Comparator 4
Comparator 5
(Only Axes 0 & 1)
Note:
Comparators 1 and 2 are used for soft limits. Refer to section 4.9.
Comparator 3 is used to compare with the position error counter. It
is useful for detecting if a stepping motor has lost any pulses. To
enable/disable the step-losing detection, or set the allowable toler-
ance use HSL_M_set_error_counter_check()
Comparator 4 is a general purpose comparator. The comparing
source counter can be any counter. The compared value, source
counter, comparing method, and reaction are set by the function
HSL_M_set_general_comparator().

Position Compare

The 5th comparator, whose comparing source is the feedback
position counter, performs the position compare function. Only the
first 2 axes (0 and 1) can do a position comparison. The position
comparison function triggers a pulse output via the CMP, when the
comparing condition comes into existence.
The comparing condition consists of 2 parts, the first is the value to
be compared, and the second is the comparing mode. Comparing
mode can be ">", "=" or "<". The easiest way to use the position
comparison function is to call the function:
HSL_M_set_trigger_comparator
The second parameter, "Method," indicates the comparing
method, while the third parameter, "Data," is for the value to be
compared. In continuous comparison, this data will be ignored
automatically since the compare data is built by other functions.
Operation Theory
Any counters
Feedback posi-
tion counter
Table 4-8: HSL-4XMO Comparators
Only comparator 5 has the ability to trigger an output pulse
via the CMP.
Method, Data)
General-purpose
Position compare
function (Trigger)
HSL_M_set_general_comparator
HSL_M_set_trigger_comparator
HSL_M_build_compare_function
HSL_M_build_compare_table
HSL_M_set_auto_compare
(AxisNo,
CmpSrc,
79

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HSL-4XMO and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents