
B–61863E–1/06
10. READER/PUNCHER INTERFACEPMC LIBRARY
265
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_fdel
[Description]
Deletes the file whose number or name is specified, in the FANUC
Cassette.
[Format]
ret = pl_fdel(file_no,file_name) ;
short ret ;
short file_no ;
char *file_name ;
[Input]
file_no : Specifies the file number to be deleted.
For file name specification, specify file_no = 0.
file_name: Specifies the file name to be deleted in ASCII code.
The file name consists of up to 17 characters.
Suffix NULL to the character string.
For file number specification, specify file_name = 0.
[Output]
______
[Returns]
ret Completion code : 0, 2, 3, 6, 20, or 23
[Remarks]
D For the return values, see the item on the completion code types.
D To use this function, specify directory control OP = 31 and OP
= 32 for the available channel/control method specification (OP)
using the open function, pl_fopen.
D If the FANUC cassette does not contain the specified file. the
completion code is set to 0.
D If the file is deleted from the FANUC cassette, the files following
that file are moved up and their file numbers are changed (file_no
–1 is performed).
D Only one file is deleted (pl_fdel) at a time.
Two or more files cannot be delete continuously.
The file must be closed (pl_rsclose) and opened again (pl_fopen).
10.7
DELETING THE FILE