User`s manual

http://www.adtechcn.com 59
) 10. G code
10.1
adt8840a_download_gfile ( )
Name int adt8840a_upload_gfile(int dev_num)
Definition Download G-code program (.dot) from local PC to control card
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.2
adt8840a_upload_gfile()
Name int adt8840a_upload_gfile(int dev_num,char **g_code,int *code_len)
Definition Open and upload G-code program files in control card
Input parameter
int dev_num: device number
char **g_code: G-code proram
int *code_len: length of G-code proram
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note None
10.3
adt8840a_g_code( )
Name int adt8840a_g_code(int dev_num,char *G_code)
Definition Send single G-code command
Input parameter
int dev_num: device number
char *G_code: character string of G-code command
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note None
10.4
adt8840a_run_gfile( )
Name int adt8840a_run_gfile(int dev_num)