
7-6
Section
Details of BASIC Commands
186
The <baud rate> can be set to 300, 600, 1200, 2400, 4800, 9600, 19200, or 38400. The default
baud rate setting is 9600 bps.
The <data length> can be set to 7 or 8. If omitted the default data length is 8 bits.
The <parity> can be set to N (none), E (even), or O (odd). If omitted the default parity is N
(none).
The number of <stop bits> can be set to 1 or 2. If omitted the default number of stop bits is 2.
The
CS
,
RS
,
DS
and
XN
fields determine whether these signal lines will be used to control
communications.
CS
=
CS
_
ON
: The ASCII Unit will monitor
CTS
signal during
commands.
CS
=
CS
_
OFF
: The ASCII Unit will not monitor
CTS
signal during
commands.
RS
=
RS
_
ON
: The ASCII Unit will turn ON the
RTS
signal when the communications port is
opened and it will remain ON until the port is closed. BASIC RS control is disabled.
RS
=
RS
_
OFF
: The ASCII Unit will turn ON the
RTS
signal only when I/O commands such as
PRINT and INPUT are being executed. The
RTS
signal will be OFF at other times.
DS
=
DS
_
ON
: The ASCII Unit will check the
DSR
signal when the input commands (
,
LPRINT
) are executed. If the
DSR
signal is ON then the device is assumed to be ready. If the
DSR
signal is OFF then the device is assumed to be unable to communicate and the ASCII Unit will
wait until the
D
S
R
signal turns ON.
DS
=
DS
_
OFF
: The ASCII Unit will not check
DSR
signal when the port is opened.
XN
=
XN
_
ON
: Specifies that Xon/Xoff flow control will be used for both the ASCII Unit’s input
buffer and the peripheral device’s input buffer.
When the ASCII Unit is receiving data, the Unit will send the
X
off code will be sent when its
input buffer is 3/4 full (384 bytes) requesting the other device to pause the data transfer. When
the buffer drops to 1/4 full (128 bytes) the
X
on code will be sent to request resumption of the
data transfer.
When the ASCII Unit is sending data, the Unit will stop sending data when a Xoff signal is
received while a PRINT command is being executed. The Unit will resume sending data when
the Xon signal is received.
X
=
XN
_
OFF
: Specifies that Xon/Xoff flow control will not be used.
The default values for
CS
,
RS
,
DS
, and
XN
are the values of the devices that have been opened.
When a
LOAD
or
SAVE
command is executed, the communication parameters specified in that
command will be valid for the duration of the command. The original communications
parameters will be restored after completion of the
LOAD
or
SAVE
command.
Note:
1.
Port #3 corresponds to the terminal port of the ASC31.
2.
If Port #3 is specified on the ASC11 or ASC21 an “ILLEGAL FUNCTION
CALL” error (code B005) will result.
3.
Refer to the C200H-ASC02 Operation Manual for details on the communications
settings for the ASC02.
Examples:
> 10 OPEN #2, “COMU:9600, 8, N, 2, CS_ON, RS_OFF, DS_OFF,
XN_OFF”
> 20 PRINT #2, “HELLO WORLD”
See also:
CLOSE
,
LOAD
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...