AT&T 6300 Programmer's Manual page 387

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

BIN
ASC
LF
filenum
M
Remarks
OPEN COM
Statement
opens the device in binary mode. BIN is selected by default,
unless ASC is specified. See "Remarks" for further discus-
sion of BIN.
opens the file in ASCII mode. See "Remarks" for further
discussion of ASC.
specifies that a linefeed is to be sent after a carriage return
(see "Remarks").
is an integer expression returning a valid file number which
is associated with the file while it is OPEN.
is the maximum number of bytes that can be read from or writ-
ten to the communications buffer with GET or PUT. The default
is 128.
The OPEN COM statement must be executed
before a device can be used for RS232
communications.
A COM device may be OPENed to only one
file number at a time.
Any syntax errors in the OPEN COM
statement will result in a "Bad File name"
error. An indication as to which parameter is
in error is not given.
A "Device Timeout" error occurs if Data Set
Ready (DSR) is not detected.
The "speed", "parity", "data", and "stop"
options must be listed in the order shown in
the above syntax. The remaining options may
be listed in any order, but you must list them
after the "speed", "parity", "data", and "stop"
options.
7-231

Advertisement

Table of Contents
loading

Table of Contents