Specifications

Chapter 14. Statement Reference
264
Syntax:
OPEN "BAR:[readmode][beepercontrol][LEDcontrol]" AS
[#]filenumber CODE readcode[,readcode...]
Parameter:
readmode
A string expression.
beepercontrol
A string expression. Specification of B activates the beeper (vibrator).
(Default: Deactivated)
LEDcontrol
A string expression. Specification of L deactivates the green indicator LED.
(Default: Activated)
filenumber
A numeric expression which returns a value from 1 to 16.
readcode
A string expression.
Description:
OPEN "BAR:" opens the bar code device file and associates it with filenum-
ber
for allowing data entry from the bar code device (BHT) according to file-
number
.
If the bar code device file has been opened with the OPEN "BAR:" statement,
pressing the trigger switch
*1
turns on the illumination LED
*2
and makes the BHT
ready to scan a bar code.
If the BHT reads a bar code successfully, the indicator LED for reading confirma-
tion will illuminate in green. Specification to
LEDcontrol may activate or deac-
tivate the indicator LED. Specification to
beepercontrol may activate or
deactivate the beeper and vibrator function.
A bar code read will be decoded and then transferred to the barcode buffer.
*1
The trigger switch function is assigned to the magic keys.
*2
The illumination LED may not come on where the environment is bright enough for the BHT
to scan.
File I/O statement
OPEN "BAR:"
Opens the bar code device file. This statement also activates or deactivates the indicator LED
and the beeper (vibrator) individually.