
Chapter 14. Statement Reference
253
Description:
Description:Description:
Description:
OPEN "COM:" opens a communications device file and associates it with filenumber for
allowing input/output activities using the communications interface.
• If optional parameters enclosed with brackets are omitted, the most recently specified
values or the defaults become active.
Listed below are the defaults:
Baud rate 9600 bps
Parity check No parity
Character length 8 bits
Stop bit 1 bit
RS/CS control 0 (No control)
Timeout 3 seconds
COMn
COMn is a communications device file name.
The BHT supports both the IrDA and direct-connect interfaces but cannot open them
concurrently. If you attempt to open both interfaces concurrently, a runtime error will occur.
Interface Communications device file name
IrDA interface "COM1 :"
Direct-connect interface "COM2 :"
Default interface
*1
"COM :"
*1 The default interface refers to an interface which is selected on the SET COMMUNICATION menu.
(For details, refer to the BHT User’s Manual.)
COM may be in lowercase as shown below.
OPEN "com :"AS #8
The BHT cannot open the IrDA interface and the bar code device file concurrently. If you
attempt to open them concurrently, a run-time error will occur.
The BHT cannot open the Bluetooth communications device file concurrently with the IrDA
interface or direct-connect interface. If you attempt to open them concurrently, a run-time
error will occur.
baud
When the IrDA interface is used, baud is one of the baud rates: 115200, 57600, 38400,
19200, 9600 (default), and 2400. When the direct-connect interface is used, it is one of the
baud rates: 115200, 57600, ,38400, 19200, 9600 (default), 4800, 2400, 1200, 600, and 300.
parity
parity is a parity check. It should be N (default), E, or O, which corresponds to None, Even,
or Odd parity, respectively.
Komentáře k této Příručce