edownload_cmv

Purpose

Download a file containing custom macro variable data, in comma-separated variable (csv) format, to your CNC.

Syntax

int edownload_cmv (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

Path for

 

0

Ignore

 

1-2

All series except Series 300i/310i/320i

 

1-10

Series 300i/310i/320i

filespec

Pointer to file specification containing custom macro variable data values

Output

 

download_tool_log.csv

File logging success and errors

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_BADRANGE

133

Bad input number or invalid range

ERR_BADCNC

134

CNC type different than CNC

ERR_BADMODEL

135

Model type different than CNC

CNC data window error handling return statuses.

More information

File Data Routines for FOCAS/Ethernet.