
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
147/226
DRAW.NO.
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.
9n: Bidirectional (DC1 / DC3 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 DC1 / DC3 flow control. No control code is
output when the communication line is opened or closed. The
writing to the target device is flow-controlled by the DC1 code
from the target device. The reading from the target device is
flow-controlled by the DC3 code from the CNC.
10n: Bidirectional (DC1 / DC3 flow control)
This setting is nearly same as OP=9n. The difference is that the
DC3 code is 0x13.
OB (cntl[1]): Baud rate
7:600bps, 8:1200bps, 9:2400bps, 10:4800bps, 11:9600bps
OS (cntl[2]): Stop bits, parity
Set the stop bits and parity setting to the low byte as following
format.
1: 1 stop bit, none parity
2: 2 stop bits, none parity
11: 1 stop bit, odd parity
12: 2 stop bits, odd parity
21: 1 stop bit, even parity
22: 2 stop bits, even parity
OC (cntl[3]): Output code
Set the output code to the low byte as following format.
When the OP (cntl[0]) == n, this setting is unavailable.
1: ASCII, 2: ISO
Output
---
[Return]
0: Normal completion.
-1: Specified channel is already in use by another user.
5: Invalid arguments
[Description]
This function opens the reader / puncher interface.
You should open the interface by the calling of pl_rsopen() before the
calling of pl_rsrd() or pl_rswrt(). You should close the interface by the
calling of pl_rsclose() after the calling of pl_rsrd() or pl_rswrt().