edownload_tofs

Purpose

Download a file containing tool offset data, in comma separated variable format, to your CNC.

Syntax

int edownload_tofs (char *ipaddr, unsigned short port, long int timeout, short path_no, char *filespec)

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 containing tool offset data values
Output
upload_tool_log.csv

Return Value

ERR_BADCSVFILE 130 Unable to open CSV file
ERR_BADCSVFORMAT 131 Bad CSV format
ERR_BADLOGFILE 132 Unable to open LOG file
ERR_BADMODEL 135 Model type different than CNC
ERR_BADMEMORY 136 Memory type different than CNC
ERR_UNKNOWNMEM 137 Unknown Memory type (A B C)

CNC data window error handling return statuses.