User`s manual
http://www.adtechcn.com 60
Definition Run G-code files in control card for machining
Input parameter int dev_num: device number
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note None
10.5
adt8840a_g_status( )
Name int adt8840a_g_status( int dev_num,int *status)
Definition Query the machining status where G-code files are run
Input parameter int dev_num: device number
Output
parameter
int *status: G-code machining status; 0: machining not started; 1: machining 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
10.6
adt8840a_get_gbuff_depth ( )
Name int adt8840a_get_gbuff_depth(int dev_num,int *buff_depth)
Definition Query buffer depth of G command
Input parameter int dev_num: device number
Output
parameter
int * buff_depth: number of G codes
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None