
B–61863E–1/06
13. NC COMMAND PROGRAM
(PMC-NB/NB2/15i–A)
PMC LIBRARY
343
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_delete
[Description]
Deletes a specified machining program which is registered in the NC.
The program which is being used for operation is not deleted.
[Format]
ret = pl_nc_delete(P1) ;
short ret ;
short P1 ;
[Input]
P1 Program number (binary)
[Output]
______
[Returns]
ret Complete code: –10, –1, 0 or 60
–10: A function is being processed. Call the function repeatedly
until a value other than –10 is returned.
–1: The request for deletion of the specified program in the NC has
been rejected. The completion code is returned if the command
is specified while the NC is in a background edit mode or load
mode specified by another NC command. The code is also
returned if the machining program to be deleted is being
executed.
0: Deletion of the specifeid program in the NC has normally
terminated.
60: An attempt was made to delete a running program.
[Example]
void delete()
{
short ret, p2;
p2 = 400;
do{
ret = pl_nc_delete(p2);
}while(ret == -10);
}
13.12
DELETING A
SPECIFIC PROGRAM