17 multiple axes simultaneous operation – ADLINK PCI-8158 User Manual

Page 201

Advertising
background image

Function Library

191

6.17 Multiple Axes Simultaneous Operation

@ Name

_8158_set_tr_move_all – Multi-axis simultaneous operation

setup

_8158_set_ta_move_all – Multi-axis simultaneous operation

setup

_8158_set_sr_move_all – Multi-axis simultaneous operation

setup

_8158_set_sa_move_all – Multi-axis simultaneous operation

setup

_8158_start_move_all – Begin a multi-axis trapezoidal profile

motion

_8158_stop_move_all – Simultaneously stop Multi-axis motion

@ Description

Theses functions are related to simultaneous operations of multi-
axes, even in different cards. The simultaneous multi-axis opera-
tion means to start or stop moving specified axes at the same
time. The axes moved are specified by the parameter “AxisArray,”
and the number of axes are defined by parameter “TotalAxes” in
_8158_set_tr_move_all().

When properly setup with _8158_set_xx_move_all(), the function
_8158_start_move_all() will cause all specified axes to begin a
trapezoidal relative movement, and _8158_stop_move_all() will
stop them. Both functions guarantee that motion Starting/Stopping
on all specified axes are at the same time. Note that it is neces-
sary to make connections according to section 2.6 if these two
functions are needed.

The following code demos how to utilize these functions. This
code moves axis 0 and axis 1 to distance 80000.0 and 120000.0
respectively. If we choose velocities and accelerations that are
proportional to the ratio of distances, then the axes will arrive at
their endpoints at the same time.

[Example]

Advertising