
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
293
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_search
[Description]
Searches for a machining program registered in the NC.
[Format]
ret = pl_nc_search(P1) ;
short ret ;
short P1 ;
[Input]
P1 Program number (binary)
[Output]
______
[Returns]
ret Complete code (–1, 0, 2, 5, 25)
–1 : The request to search for the program has been rejected. This
completion code is returned when the command is issued in the
following cases: when the NC is in the AUTO mode or alarm
state, when the OP signal is set on while the NC is in the MDI
mode, or when the NC is editing data in the EDIT mode.
0 : The NC has normally terminated the search for the program.
2 : The specified data length is incorrect.
5 : The specified program is not registered in the NC.
25 : This program search command was issued while the other
command library was being processed and before the
completion code for the processing was returned. This function
must be called again after the processing of the command
library terminates.
[Remarks]
______
12.10
SEARCHING FOR A
SPECIFIED NC
PROGRAM