upload_diag

Purpose

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

Syntax

int upload_diag (long int node_no, short path_no, char *filespec, unsigned short startrange, unsigned short endrange)

Arguments

Input

 

node_no

Node number 0-7

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 to contain diagnostic data values

startrange

Low end of range to upload

endrange

High end of range to upload

Output

 

upload_tool_log.csv

File logging success and errors.

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.

More information

File Data Routines for FOCAS/HSSB.