
7-6
Section
Details of BASIC Commands
185
open
Syntax:
OPEN
# <port expression>, <“communication definition string expression”>
Description:
Statement. Opens a communication port with the specified device, port communications
conditions, and transfer control signal specifications.
Remarks:
<port expression> is an expression returning an integer in the range: [1… 3]. If the port
expression is omitted, port #1 is the default.
The <communication definition expression> is a string containing the following elements:
“<device>:[<baud rate> [, <data length> [, <parity> [, <stop bits> [,
CS
[,
RS
[,
DS
[,
XN
]]]]]]]]]”
If any of the elements of the <communication definition expression> are omitted, the following
default setting is used:
The <communication definition expression> format of the C200H-ASC02 is still supported but
new BASIC programs should use the new format.
<device> describes the type of the device that is connected to the port. The following table
shows the input and output buffer usage and transfer control signal (RS and ER) status for each
type of the device.
When the port is opened
During execution of I/O
commands (PRINT#,
INPUT#)
RS
RS
Device
Peripheral
devices
(external
devices)
Buffer used
At
RS_OFF
under
OPEN#
command
At
RS_ON
under
OPEN#
command
ER
At
RS_ON/OFF
under
OPEN#
command
ER
TERM
Terminal
Both send and
receive buffers
OFF
ON
Unchan
ged
ON
Unchan
ged
SCRN
Display
Send buffer
only
OFF
ON
Unchan
ged
ON
Unchan
ged
KYBD
Keyboard
Receive buffer
only
OFF
ON
Unchan
ged
ON
Unchan
ged
COMU
General
communic
ations
devices
Both send and
receive buffers
OFF
ON
Unchan
ged
ON
Unchan
ged
LPRT
Printer
Send buffer
only
OFF
ON
Unchan
ged
ON
Unchan
ged
EKPRT
Printer
Send buffer
only
OFF
ON
Unchan
ged
ON
Unchan
ged
NKPRT
Printer
Send buffer
only
OFF
ON
Unchan
ged
ON
Unchan
ged
“xxxx, 8, N, 2, yy, yy, yy, yy”
Refer to page 175
Specified in the DM settings
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...