252
____________________________________________________________________
File I/O statement
OPEN "COM: "
Opens a communications device file.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
Syntax 1 (For the direct-connect interface):
OPEN "COMn:[baud][,[parity][,[charalength][,[stopbit][,[RS/CS]
[,[timeout]]]]]] "AS [#] filenumber
Syntax 2 (For the IrDA interface):
OPEN "COMn: [baud] "AS [#] filenumber
Parameter:
Parameter:Parameter:
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.
filenumber
A numeric expression which returns a value from 1 to 16.
Comentários a estes Manuais