User`s manual
http://www.adtechcn.com 44
Note
The unit of the parameter is the same as set value of drive velocity—V.
With this function, the drive velocity can be obtained at any time.
4.4 adt8840a_all_command_pos( )
Name int adt8840a_all_command_pos( int dev_num,long pos[])
Definition Get the logic positions of four axes
Input parameter int dev_num: device number
Output
parameter
long pos[]: receive the data of logic position for each axis; pos[0]: position of axis 1;
pos[1]: position of axis 2; pos[2]: position of axis 3; pos[3]: position of axis.
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None
4.5 adt8840a_all_actual_pos( )
Name int adt8840a_all_actual_pos( int dev_num,long pos[])
Definition Get the actual positions of four axes
Input parameter int dev_num: device number
Output
parameter
long pos[]: receive the data of actual position for each axis; pos[0]: position of axis 1;
pos[1]: position of axis 2; pos[2]: position of axis 3; pos[3]: position of axis.
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None
4.6 adt8840a_all_speed( )
Name int adt8840a_all_speed( int dev_num,long speed[])
Definition Get the drive velocities of four axes
Input parameter int dev_num: device number
Output
parameter
long pos[]: receive the drive velocities of four axes.
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None