upload_pp

Purpose

Upload a single part program or multiple part programs to a file from your CNC.

Syntax

int upload_pp (long int node_no, short path_no, char *progfile, unsigned long int startprg, unsigned long int endprg)

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

progfile

Pointer to file specification to contain part program(s)

startprg

Starting part program number

endprg

Ending part program number

Output

 

None

 

Return Value

ERR_BADPROGFILE

80

File open failed

ERR_BADPROGNUM

82

Bad program number/invalid range

ERR_DISKERROR 

87

Disk error

ERR_NOPROGS

110

No programs found

ERR_BADDIR

120

Bad directory info from CNC

CNC data window error handling return statuses.

More information

Part Program Routines for FOCAS/HSSB