directory_pp

Purpose

Retrieve long directory (including sizes and comments) of registered part programs on your CNC.

Syntax

int directory_pp (long int node_no, short path_no, long int *prog, char *comment, int *size, int comment_size, int max_files)

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

comment_size

Number of characters for each element of a comment array (Max 24)

max_files

Number of elements in a prog array (Max 1024)

Output

 

prog

Pointer to integer array of program numbers currently registered in the CNC (Max 1024 elements).

comment

Pointer to string array of program comments currently registered in the CNC (Max 1024 elements of Max 24 characters).

size

Pointer to integer array of program sizes currently registered in the CNC (Max 1024 elements).

Return Value

ERR_BADDIR 

120

Bad directory info from CNC

CNC data window error handling return statuses.

More information

Part Program Routines for FOCAS/HSSB