ADLINK PCI-8134A User Manual

Page 71

Advertising
background image

Operations

61

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.

#include “pci_8134.h”

start_a_move(axis, 200000.0, 1000, 10000, 0.02);

while(!motion_done(axis))

{

// Get Sensor’s information from other I/O card

if((Sensor1==High) && (Sensor2==Low) && (Sensor3 == Low))

v_change(axis, 25000, 0.02);

else if((Sensor1==Low) && (Sensor2==High) && (Sensor3 == Low))

v_change(axis, 50000, 0.02);

else if((Sensor1==Low) && (Sensor2==Low) && (Sensor3 == High))

v_change(axis, 100000, 0.02);

}

Where the informations of three sensors are acquired from other I/O card.
And the resulting velocity profile from experiment is shown below.

Motor

Sensor 2

Sensor 3

Pos=0

Pos=200000

Moving part

Sensor 1

Advertising