cnc_upload_tool.exe
Purpose
The command line utility cnc_upload_tool.exe uploads CNC file data from CNC memory to files on the PC.
Correct usage
C:\> cnc_upload_tool <data> <nodenum> <pathnum> <filespec.csv> <start> <end>
Usage defined
|
CNC file data. Enter one of the following. | ||
parm | Parameter Data | ||
tofs | Tool Offset Data | ||
zofs | Work Zero Offset Data | ||
cmv | Custom Macro Variable Data | ||
pec | Pitch Error Compensation | ||
kbit | Keep Relay Data | ||
diag | Diagnostic Data | ||
|
Node number (configured HSSB card). | ||
|
Path to the CNC. Enter one of the following. | ||
Value | Path | ||
0 | None | ||
1 | First | ||
2 | Second | ||
3 | Third | ||
4 | Fourth | Series 30i/31i/32i only | |
5 | Fifth | Series 30i/31i/32i only | |
6 | Sixth | Series 30i/31i/32i only | |
7 | Seventh | Series 30i/31i/32i only | |
8 | Eighth | Series 30i/31i/32i only | |
9 | Ninth | Series 30i/31i/32i only | |
10 | Tenth | Series 30i/31i/32i only | |
If the CNC does not support multiple paths, enter 0. | |||
|
File specification of file to receive the uploaded data. This may be a fully qualified filename or a filename in the current directory in comma separated variable (.csv) format. | ||
|
Starting range of file data to upload. | ||
|
Ending range of file data to upload. | ||
If both the start and end are left blank, all of the specified data for the CNC is uploaded. |
Example
The contents of the CNC parameter data table between <start> and <end> are uploaded to the <filespec> for <nodenum>and <pathnum>:
C:\> cnc_upload_tool parm 0 0 parm1000.csv 1 1000
Uploading parm 0001 - 1000 to parm1000.csv: Success
C:\>
The file parm1000.csv is either created or overwritten with all the parameters in the range of 1 to 1000 currently registered in CNC memory. The file upload_tool_log.csv is either created or overwritten with any errors during the upload.
In the following example, the entire contents of the CNC parameter data table is uploaded to the <filespec> for <nodenum>and <pathnum>:
C:\> cnc_upload_tool parm 0 0 parmall.csv
Uploading all parm to parmall.csv: Success
C:\>
The file parmall.csv is either created or overwritten with all the parameters currently registered in CNC memory. The file upload_tool_log.csv is either created or overwritten with any errors during the upload.
The following is a list of possible errors:
- Could not determine CNC type for node x.
- Could not link to DLL.
- Failure to get directory info.
- Bad directory info returned.