
B–61863E–1/06
10. READER/PUNCHER INTERFACEPMC LIBRARY
255
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_rsopen
[Description]
Opens the reader/puncher interface according to the control method
and conditions of the specified channel and makes it ready for use.
[Format]
ret = pl_rsopen( P1 ) ;
short ret ;
short *P1 ;
[Input]
*P1 RS–232C information
OP
OB
OS
OC
(a) Specifying the channel and control method (OP)
n represents a channel number(Note).
OP = n : Data input and output are controlled by channel n
(without flow control)
D The interface is opened by in–direction mode. Flow
control by DC1–DC4 code is not supported. When an
overflow of the receiving buffer is detected, the RS
control signal is sent to destination device. The RS
control signal requests the device to stop or restart
sending data.
1n : Data is input using channel n
(DC1/DC3 automatic control)
D When the interface 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.
2n : Data is output using channel n
(DC2/DC4 automatic control)
D When the interface 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. The device automatically
stops or resumes sending data in response to the DC3
or DC1 control code send from the destination.
9n : Data is input and output using channel n (DC1/DC3
automatic control)
D When the interface is opened and closed, no control
code (DC1 to DC4) are sent. The device automatically
stops or resumes sending data in response to the DC3
or DC1 control code sent from thedestination. Data
can be entered even when the device is sending data.
10.1
OPENING THE
READER/PUNCHER
INTERFACE
0
2
4
6
8
P1
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). . . .
OC Specifying the code for data output (d). . . .