eupload_pec

Purpose

Upload a range of pitch error compensation data to a file, in comma separated variable format, from your CNC.

Syntax

int eupload_pec (char *ipaddr, unsigned short port, long int timeout, short path_no, char *filespec, unsigned short startrange, unsigned short endrange)

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.
filespec Pointer to file specification to contain pitch error compensation data values
startrange Low end of range to upload
endrange High end of range to upload
Output
upload_tool_log.csv

Return Value

ERR_BADCSVFILE 130 Unable to open CSV file
ERR_BADLOGFILE 132 Unable to open LOG file
ERR_BADRANGE 133 Bad input number or invalid range

CNC data window error handling return statuses.