
------------------------------------------------------------------------------
3. Open a binary file on FCA device. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fca_open
[Syntax]
#include <bios.h>
int fca_open( char *name, int mode ) ;
[Argument]
name File name on FCA device. (max. 17 characters)
mode Access mode. ( = 0: read, 1: write )
[Return]
Returns zero if successful. Returns -1 if any error occurs.
[Description]
This function opens a binary file in the FCA device under control.
This function is used in conjunction with fca_close() function.
Only functions, fca_read() and fca_write(), can be used in between
fca_open() and fca_close() functions.
When the character '#' is used for the first character of the argument
"name", which passes the file name of the FCA device, it is assumed
that file number is designated. Following formats are available.
#xxxx ( xxxx is max. 4 digit number ) : xxxxth file
#0 : first file
#N : next file
#E : last file
(Note) This function can be used only when the device connected to
the port is FANUC Handy File. It cannot be used for FANUC
CASSETTE ADAPTOR etc..
[Example]
Refer to the example in "Read binary data from the file.(fca_read)".