Specifications

Chapter 8. Files
139
This way, you can control the indicator LED, enabling that:
a user program can check the value of a scanned bar code and turn on the green LED
when the bar code has been read successfully.
(For example, you can make the user program interpret bar code data valued from 0 to
100 as correct data.)
a user program can turn on the red LED the moment the bar code has been read.
Controlling the beeper (vibrator)
If you have activated the beeper in the OPEN "BAR:" statement, the BHT will beep when
it reads a bar code successfully.
You may choose beeping only, vibrating only, or beeping & vibrating on the LCD screen or
by setting the output port in the
OUT statement.
This feature is used to sound the beeper or operate the vibrator the moment the BHT-100
reads a bar code successfully.
View Finder (for the BHT-100Q)
The view finder displays the scanned image of a bar code or 2D code lying inside the scan-
ner's view on the LCD when you scan the code. To set the view finder on or off, you use
the
OUT statement. Actual switching of the view finder takes place at the execution of the
OPEN "BAR:" statement. Execution of the OUT statement after that of the OPEN
"BAR:"
statement will not switch the view finder.
The default setting is OFF.
If the view finder is set to ON, the BHT-100Q in scanning operation (i.e., when the illumina-
tion LED is lit) displays the image of a code that the BHT-100Q is currently scanning. Upon
completion of scanning or when the BHT-100Q goes out of scanning operation (i.e., when
the illumination LED goes off by releasing the trigger switch), the LCD returns to the previ-
ous screen.
When the view finder is displaying a scanned image, if you attempt to display something
other than that, it cannot be displayed. It will appear after the view finder display goes off.
Programming examples
To turn the view finder ON:
OUT &h6310, 1
OPEN "BAR:" AS #1 CODE "Q:L"
To turn the view finder OFF:
OUT &h6310, 0
OPEN "BAR:" AS #1 CODE "Q:L"
For the details about the scanning with the view finder, refer to the BHT User's Manual.