
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
139/226
DRAW.NO.
3.10.5
Open the Reader / Puncher Interface
(for FANUC Handy File)
[Name]
pl_fopen2
[Syntax]
#include <pmclib.h>
short pl_fopen2(short * cntl, short file_no, char * file_name);
[Arguments]
Input
*cntl: Control information
Set the communication parameter for RS-232C as following
format.
cntl[0] OP Channel number, mode, flow control
cntl[1] OB Baud rate
cntl[2] OS Stop bits, Parity setting (Low byte)
DC3 code (High byte)
cntl[3] OC Output code (Low byte)
Input code (High byte)
OP (cntl[0]): The channel number, mode and the method of flow control
Set the channel number of RS-232C, communication mode and
the method of flow control as following format.
1n: Reading (DC1 / DC3 flow control)
Set the channel number of RS-232C to "n". In this setting, the
communication line is opened with reading mode and
controlled by the DC1 / DC3 flow control. The DC1 code is
output to the target device when the communication line is
opened. The DC3 code is output to the target device when the
communication line is closed. The reading from the target
device is flow-controlled by the DC1 and DC3 code from the
CNC.
2n: Writing (DC1 / DC3 flow control)
Set the channel number of RS-232C to "n". In this setting, the
communication line is opened with writing mode and
controlled by the DC1 / DC3 flow control. The DC2 code is
output to the target device when the communication line is
opened. The DC4 code is output to the target device when the
communication line is closed. The writing to the target device
is flow-controlled by the DC1 and DC3 code from the target
device.
3n: Reading directory, deleting a file.