
10. READER/PUNCHER INTERFACE
B–61863E–1/06
PMC LIBRARY
264
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_fdir
[Description]
Reads directory information (file name and storage capacity) for the
specified file number of the FANUC cassette.
[Format]
ret = pl_fdir(file_no,file_name,file_size) ;
short ret ;
short file_no ;
char *file_name ;
long *fiel_size ;
[Input]
file_no : Specify the number of the file whose directory
information (file name and data length) is read.
[Output]
file_name: Specifies the file name which was read, as 17 characters
in ASCII code.
If the file name consists of 17 characters or less, the
remaining portion is embedded with spaces.
If the file name corresponding to the file number is not
registered, character string FCA3 is inserted.
Be sure to specify the 17-byte or more area.
fiel_size : Specifies the data length stored in the specified file.
(Bytes)
[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 file having the
specified file number, completion code 23 is returned.
D Directory information is read (pl_fdir) for each file.
Information on two or more files cannot be read continuously.
The file must be closed (pl_rsclose) and opened again (pl_fopen).
10.6
READING FILE
DIRECTORY
INFORMATION