Specifications

Chapter 14. Statement Reference
286
Syntax:
Syntax 1 (For the direct-connect interface):
OPEN "COMn:[baud][,[parity][,[charalength][,[stop-
bit][,[RS/CS][,[timeout]]]]]] "AS [#] filenumber
Syntax 2 (For the IrDA interface):
OPEN "COMn: [baud] "AS [#] filenumber
Parameter:
baud
For the IrDA interface
115200, 57600, 38400, 19200, 9600, or 2400
For the direct-connect interface
115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, or 300
parity
N, E, or O
charalength
8 or 7
stopbit
1 or 2
RS/CS
0, 1, 2, 3 or 4
timeout
An integer numeral from 0 to 255.
RS
0 or 1
ER
0 or 1
filenumber
A numeric expression which returns a value from 1 to 16.
File I/O statement
OPEN "COM:"
Opens a communications device file.