User`s manual
http://www.adtechcn.com 39
) 2. Drive status detection
2.1
adt8840a_get_status( )
Name int adt8840a_get_status(int dev_num ,int axis, int *value)
Definition Get axis’s drive status
Input parameter
dev_num: device number
axis: axis number(1 - 4)
Output
parameter
Value: pointer of drive status; 0: drive end; non-0: drive 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
2.2
adt8840a_get_inp_status( )
Name int adt8840a_get_inp_status(int dev_num ,int *value)
Definition Get axis’s interpolation drive status
Input parameter dev_num: device number
Output
parameter
Value: pointer of interpolation status; 0: interpolation end; non-0: interpolation 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
2.3
adt8840a_get_int_status( )
Name int adt8840a_get_int_status(int dev_num ,int *value)
Definition Get interruption status
Input parameter None