eupload_pp
Purpose
Upload a single part program or multiple part programs to a file from your CNC.
Syntax
int eupload_pp (char *ipaddr, unsigned short port, long int timeout, short path_no, char *progfile, unsigned long int startprg, unsigned long int endprg)
Arguments
Input | ||
ipaddr
|
IP address of the CNC | |
port
|
Port number of the CNC | |
timeout
|
Seconds for timeout (0 to ignore and wait infinitely) | |
path_no |
Value: 0, 1-2, 1-10. | |
progfile
|
Pointer to file specification to contain part program(s) | |
startprg
|
Starting part program number | |
endprg
|
Ending part program number | |
Output | ||
None |
Return Value
ERR_BADPROGFILE | 80 | File open failed |
ERR_BADPROGNUM | 82 | Bad program number/invalid range |
ERR_DISKERROR | 87 | Disk error |
ERR_NOPROGS | 110 | No programs found |
ERR_BADDIR | 120 | Bad directory info from CNC |
CNC data window error handling return statuses.