
12. NC COMMAND PROGRAM (PMC-SC)
B–61863E–1/06
PMC LIBRARY
300
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_pdirstart
[Description]
Executes processing to start reading the numbers of all machining
programs registered in the NC.
[Format]
ret = pl_nc_pdirstart(P1,P2) ;
short ret ;
short P1 ;
short *P2 ;
[Input]
P1 Data number 00H : Read program numbers.
01H : Read program numbers and comment
character strings.
*P2 Read program information
First program number to be
read
Last program number to be
read
[Output]
______
[Returns]
ret Complete code (–1, 0, 3, 5)
–1 : The request to start inputting the list of program numbers has
been rejected. This completion code is returned when the
command is issued while the NC is in the background edit
mode, download mode, or check mode.
0 : Processing to start inputting the list of program numbers has
normally terminated.
3 : The data number is incorrect.
5 : The data of the program for the number specified is incorrect.
[Remarks]
______
12.17
EXECUTING
PROCESSING TO
START INPUTTING
THE LIST OF
PROGRAM
NUMBERS
0
2
4
P2
· When 0 is specified as the first program
number, data of all registered programs is
read starting from the first program.)
· When 0 is specified as the last program
number, data of all registered programs
including the last one is read.