
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
133/226
DRAW.NO.
3.10.1
Open the Reader / Puncher Interface
[Name]
pl_rsopen2
[Syntax]
#include <pmclib.h>
short pl_rsopen2(short * cntl);
[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.
n: Bidirectional (Hardware flow control)
Set the channel number of RS-232C to "n". In this setting, the
communication line is opened with bidirectional mode and
controlled by the hardware flow control. No control code is
output when the communication line is opened or closed. To
use this setting, you can read or write binary data. The writing
to the target device is flow-controlled by the "CS" signal from
the target device. The reading from the target device is
flow-controlled by the "RS" signal from the CNC.
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)