User`s manual

http://www.adtechcn.com 40
Output
parameter
Value: pointer of interruption status; 0: interruption end; non-0: interruption under way
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None
) 3. Motion parameters setup
3.1
adt8840a_set_acc( )
Name int adt8840a_set_acc(int dev_num ,int axis, int Value)
Definition Set acceleration
Input parameter
dev_num: device number
axis: axis number (1 - 4)
Value: As value (1 - 32000)
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
Parameters for linear acceleration and deceleration in linear acceleration drive.
When acceleration is set as A, the following equation is used:
Acceleration (PPS/SEC) = A*250
The scope of acceleration A is 1~32000.
For example, if it is:
set_acc(1, 100);
The acceleration should be:
100*250 = 25000 Pps/Sed
3.2
adt8840a_set_startv( )
Name int adt8840a_set_startv(int dev_num ,int axis, int Value)
Definition Set start velocity
Input parameter
dev_num: device number
axis: axis number (1 - 4)
Value: SV’s value (1-2000000)
Output
parameter
None