
12. NC COMMAND PROGRAM (PMC-SC)
B–61863E–1/06
PMC LIBRARY
316
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_delete2
[Description]
Deletes the specified machining program registered in the NC.
The specified program cannot be deleted while it is being used or is
selected by foreground editing in the EDIT mode because it may have
been edited.
[Format]
ret = pl_nc_delete2(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
P2 Program number (binary format)
[Output]
______
[Returns]
ret Complete code : –1, 0, 1, 2, 5, 7, or 25
–1 : Deletion of the specified program registered in the NC was
rejected.
When an attempt is made to execute this command, this
completion command is returned while background editing is
being performed on the NC, during uploading, or when the
alarm status is set.
This completion code is also returned when the machining
program to be deleted is being used or is selected by foreground
editing in the EDIT mode.
0 : Deletion of the specified machining program registered in the
NC has terminated normally.
1 : A value other than 1 or 2 was set to specify the tool post.
2 : The data length is not specified correctly.
5 : The specified program is not registered in the NC.
7 : Memory protection is set for the NC.
25 : This command was issued to delete the specified program
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
other command library terminates.
[Remarks]
______
12.31
DELETING A
SPECIFIC PROGRAM