
12. NC COMMAND PROGRAM (PMC-SC)
B–61863E–1/06
PMC LIBRARY
320
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_dir2
[Description]
Reads management data of the machining program registered in the
NC. Machining program management data includes the number of
registered programs, the number of remaining programs that can be
registered, the number of used memory areas, and the number of
remaining memory areas that can be used.
[Format]
ret = pl_nc_dir2(P1, P2);
short ret;
unsigned short P1;
short *P2;
[Input]
P1 Tool post specification
0 : System other than the TT system
1 : Tool post on side 1
2 : Tool post on side 2
[Output]
P2 Program management information
Number of registered
programs
Number of remaining programs
that can be registered
Used memory area
(Numbers of characters)
Remaining memory area that can
be used (number of characters)
[Returns]
ret Complete code: 0 or 1
0 : Reading of program management data in the NC has terminated
normally.
1 : A value other than 1 or 2 was set to specify the tool post.
[Remarks]
______
12.35
READING PROGRAM
MANAGEMENT DATA
0
2
4
8
12
P2
Binary format
Binary format
Binary format
Binary format