
B–61863E–1/06
10. READER/PUNCHER INTERFACEPMC LIBRARY
275
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_fdir2
[Description]
Reads directory information (file name and storage capacity) for the
specified file number of FANUC cassette.
[Format]
ret = pl_fdir2(ch_no, file_no, file_name, file_size) ;
short ret ;
short ch_no ;
short file_no ;
char *file_name ;
long *file_size ;
[Input]
ch_no : Specify the channel number to use
1 : channel 1
2 : channel 2
file_no : Specify the number of the file whose directory
information (file name and data length) is read.
[Output]
file_name: Name of specified file is stored as 17 characters in the
ASCII code. If the file name is less than 17 characters, the
remaining portion is embedded with space. 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.
file_size : Data length of the specified file is stored. (bytes)
[Returns]
ret Completion code (0, 2, 3, 6, 20, 23)
[Remarks]
D For the return value, see the item on the completion code types.
D To use this function, specify 31 or 32 to channel and control
method (OP) of pl_fopen2 function.
D If FANUC cassette does not contain the specified file, the
completion code is set to 23.
D Directory information is read (pl_fdir2) for only one file.
D Open the second or later file with “file_no” = –1 when you read
directory information of continuous files. (Specify the each file
number in PMC–NB/NB2)
10.13
READING FILE
DIRECTORY
INFORMATION