
13.NC COMMAND PROGRAM
(PMC-NB/NB2/15i–A)
B–61863E–1/06
PMC LIBRARY
348
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_dir
[Description]
The management data of machining programs which have already
been registered in the NC can be read. The management data of the
machining programs includes the number of registered programs, the
number of programs which can be additionally registered, the size of
the memory area which has been already used, and the size of the
remaining memory area.
[Format]
ret = pl_nc_dir(P1) ;
short ret ;
short *P1 ;
[Input]
______
[Output]
P1 Program management information
Number of registered
programs
Number of programs which
can be additionary registered
Size of memory area already
used (number of characters)
Size of remaining memory
area (number of characters)
[Returns]
ret Complete code : –10, –1 or 0
–10: A function is being processed. Call the function repeatedly
until a value other than –10 is returned.
–1: The function is rejected. The completion code is returned if the
function is specified while the NC is in a background edit mode
or upload mode specified by another NC command.
0: Reading of the program management data of the NC has
terminated normally.
[Remarks]
______
13.16
INPUTTING THE
PROGRAM
MANAGEMENT DATA
0
2
4
8
12
P1
Binary format
Binary format
Binary format
Binary format