
B–61863E–1/06
10. READER/PUNCHER INTERFACEPMC LIBRARY
261
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_fopen
[Description]
Opens the file for the specified channel to make the file usable
according to the control method and control conditions when data is
output using the FANUC cassette as an input/output device.
[Format]
ret = pl_fopen(p,file_no,file_name) ;
short ret ;
short p ;
short file_no ;
char *file_name ;
[Input]
*p RS-232C information
OP
OB
OS
OC
file_no : Specifies the file number with which data is read or the
file is created.
For file name specification, specify file_no = 0.
file_name: Specifies the file name with which data is read or the file
is created, using the ASCII code.
Up to 17 characters can be used for the file name. Suffix
NULL to the character string.
For file number specification, specify file_name = 0.
NOTE
If both the file name and file number are specified, the file
name takes precedence over the file number.
(a) Available channel/control method specification (OP)
(n represents a channel number(Note) ).
OP = 1n : Inputs data using channel n. (Automatic DC1/DC3
control)
D When the file is opened, the DC1 code is automatically
sent to ask the remote device to send data. When the
file is closed, the DC3 code is sent. If a receiving buffer
overflow is detected, the output of DC1 and DC3 is
automatically controlled (when data is input from the
FANUC cassette).
2n : Outputs data using channel n. (Automatic DC2/DC4
control)
D When the file is opened, the DC2 code is sent to ask the
remote device to receive data. When the file is closed,
the DC4 code is sent.
Data transmission is suspended or restarted
automatically from the remote device using DC3 and
DC1 (when data is output to the FANUC cassette).
10.5
OPENING THE
READER/PUNCH
INTERFACE (FOR
THE FANUC
CASSETTE)
0
2
4
6
8
P
Available channel/control method specification (a)
Baud rate specification (b)
Stop bit/parity bit specification (c)
Code specification at data output (d)