
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
144/226
DRAW.NO.
3.10.7
Delete the File
[Name]
pl_fdel2
[Syntax]
#include <pmclib.h>
short pl_fdel2(short channel, short file_no, char * file_name);
[Arguments]
Input
channel: Channel number of RS-232C
Set the channel number (1-) of RS-232C.
file_no: File number
Set the file number on FANUC Handy File to operate. When you
specify the file by the file name, set zero.
*file_name: File name
Set the file name on FANUC Handy File to operate. You should
terminate the file name string with NUL ('\0'). When you use a
MS-DOS format floppy disk, the file name is 12 characters in the
maximum, "8 characters in the maximum" + ". (dot)" + "3
characters in the maximum". When you use a FANUC format
floppy disk, the file name is 17 characters in the maximum. When
you specify the file number, you should set NULL(0) to the
"file_name".
Note
When you specify both the file number and the file
name, specification by the file name is available.
Output
---
[Return]
0: Normal completion
-11: The reader / puncher interface is not opened.
5: The argument is invalid.
[Description]
The function deletes the specified file.
You should open the interface by the calling of pl_fopen2() with the
setting OP (cntl[0]) = 3n, not pl_fopen(), before the calling of pl_fdel2().
You should close the interface by the calling of pl_rsclose2(), not