edir_pp

Purpose

Retrieve a short directory (just the part program numbers) of registered part programs on your CNC.

Syntax

int edir_pp (char *ipaddr, unsigned short port, long int timeout, short path_no, long int *prog, int max_files)

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

max_files

Number of elements in prog array (Max 1024)

Output

 

prog

Pointer to array of program numbers currently registered in the CNC

Return Value

ERR_BADDIR

120

Bad directory info from CNC

CNC data window error handling return statuses.

More information

Part Program Routines for FOCAS/Ethernet.