ADLINK HSL-4XMO User Manual

Page 88

Advertising
background image

78

Operation Theory

Figure 4-34: Velocity Suggestions B

Example:

There are 3 speed change sensors during an absolute move for
200000 pulses. Initial maximum speed is 10000pps. Change to
25000pps if Sensor 1 is touched. Change to 50000pps if Sensor 2
is touched. Change to 100000pps if Sensor 3 is touched. Then the
code for this application and the resulting velocity profiles are
shown below.

Figure 4-35: Velocity Example

#include “pci_HSL-4XMO.h”
HSL_M_fix_speed_range(axis, 100000.0);
HSL_M_start_ta_move(axis, 200000.0, 1000, 10000,

0.02,0.01);

while(!HSL_M_motion_done(axis))
{

// Get sensor’s information from another I/O
card

Advertising