
10. READER/PUNCHER INTERFACE
B–61863E–1/06
PMC LIBRARY
272
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_fopen2
[Description]
Opens the file according to the control method and conditions of the
specified channel and makes the file usable, when the FANUC
cassette is used as an input/output device.
[Format]
ret = pl_fopen2(p, file_no, file_name) ;
short ret ;
short *p ;
short file_no ;
char *file_name ;
[Input]
*p RS_232C information
OP
OB
OD OS
IC OC
file_no : Specify the file number with which data is read or the file
is created.
For file name specification, specify “file_no” = 0.
file_name: Specify 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.
CAUTION
If both the file number and file name are specified, the file
name takes precedence over the file number.
(a) Specifying the channel and control method (OP)
(n represents a channel number(Note) ).
OP = 1n : Data is input using channel n (DC1/DC3 automatic
control)
D When the file is opened, the DC1 control code which
requests sending
data is automatically send to the
destination device. When the interface is closed, the DC3
control code is sent. When an overflow of the receiving
buffer is detected, output is automatically controlled by
DC1 or DC3 code(when data is input from the FANUC
cassette).
2n : Data is output using channel n (DC2/DC4 automatic
control)
D When the file is opened, the DC2 control code which
requests receiving
data is automatically send to the
destination device. When the interface is closed, the DC4
control 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.12
OPENING THE
READER/PUNCHER
INTERFACE (FOR
THE FANUC FLOPPY
CASSETTE)
OP Specifying the channel and control method to be used (a). . . .
OB Specifying the baud rate (b). . . .
OS Specifying the stop and parity bits (c). . . .
OD Specifying the DC3 code (d). . . .
OC Specifying the code for data output (e). . . .
IC Specifying the code for data input (f). . . . .
0
2
4
6
8
P