ADLINK HSL-4XMO User Manual

Page 95

Advertising
background image

Operation Theory

85

put of the HSL-4XMO. An image of the moving object is easily
obtained.

X

Working Spec: 34000 triggering points per stroke, trigger
speed is 6000 pts/sec )

X

Program Settings:

Z

Table starts moving from 0 to 36000

Z

Compare points are on 1001 35000, total 34000 pts,
points to points interval=1pulse

Z

Moving Speed is 6000 pps

Z

Compare condition is “=“

X

Program codes:

HSL_M_set_trigger_comparator(0, 1, 1, 1001);
HSL_M_build_compare_function(0, 1001, 35000, 1,

1);

HSL_M_set_auto_compare(0, 1);
HSL_M_start_tr_move(0, 36000, 0, 6000, 0.01,

0.01);

X

Monitoring or Check the current compare data:

HSL_M_check_compare_data(0, 5, *CurrentData);

Users can use this function to check if auto-trigger is running.

The “Value” block in this figure is the position where the compari-
son occurs, and where the data can be checked by using
HSL_M_check_compare_data().

Note that at the final compared point will still load an “After-final”
point into the “Value” block. Fill a dummy point into the comparison
table array at the final position. This value must be far enough
from the table’s stroke.

If using _build_compare_function(), a dummy “after-final” point is
automatically loaded. This value is equal to (End point + Interval x
Total counts) x moving ratio.

X

Relative Functions:

HSL_M_set_trigger_comparator(),
HSL_M_build_comp_function()
HSL_M_build_comp_table()
HSL_M_set_auto_compare()
HSL_M_check_compare_data()

Advertising