edownload_pp

Purpose

Download a text file containing a single part program or multiple part programs to your CNC.

Syntax

int edownload_pp (char *ipaddr, unsigned short port, long int timeout, short path_no, char *progfile, long int *badprog)

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

progfile

Pointer to file specification containing part program(s)

Output

 

badprog

Pointer to bad program number, if a program error occurred, otherwise zero

Return Value

ERR_BADPROGFILE

80

File open failed

ERR_BADPROG

81

Bad program

ERR_BADPROGNUM

82

Bad program number/invalid range

ERR_PROGSEL

84

Program already selected

CNC data window error handling return statuses.

More information

Part Program Routines for FOCAS/Ethernet.