
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
315
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_delall2
[Description]
Deletes all machining programs registered in the NC. (Programs
being used are not deleted.)
[Format]
ret = pl_nc_delall2(P1);
short ret ;
unsigned short P1 ;
[Input]
P1 Tool post specification
1 : Tool post on side 1
2 : Tool post on side 2
For systems other than the TT system, set 0 to specify the tool post.
[Output]
______
[Returns]
ret Complete code : –1, 0, 1, 7, or 25
–1 : Program deletion was rejected.
When an attempt is made to execute this command, this
completion code is returned while background editing is being
performed on the NC, during uploading, or when the alarm
status is set.
0 : Deletion of all programs registered in the NC has terminated
normally.
1 : A value other than 1 or 2 was set to specify the tool post.
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.30
DELETING ALL
PROGRAMS