Specifications

138
Read Mode of the Trigger Switch
The trigger switch function is assigned to the magic keys M3 and M4 by default. You may
assign the trigger switch function to other keys by using the
KEY statement.
You may select the read mode of the trigger switch by using the
OPEN "BAR:" statement
as listed below.
To check whether the trigger switch is pressed or not, use the
INP function or the WAIT
statement, as shown below.
trig% = INP(0) AND &h04
If the value of the trig% is 04h, the trigger switch is kept pressed; if 00h, it is released.
Generating a Check Digit of Bar Code Data
Specifying a check digit in the OPEN "BAR:" statement makes the Interpreter automati-
cally check bar codes. If necessary, you may use the CHKDGT$ function for generating a
check digit of bar code data.
Controlling the Indicator LED and Beeper (Vibrator) for of Successful
Reading
By using the OPEN "BAR:" statement, you can control:
whether the indicator LED should light in green or not (Default: Light in green)
whether the beeper should beep or not (Default: No beep)
(The BHT-100 may control the vibrator also.)
when a bar code is read successfully. For detailed specification of the
OPEN "BAR:"
statement, refer to Chapter 14.
Controlling the indicator LED
If you have activated the indicator LED (in green) in the OPEN "BAR:" statement, the
OUT statement cannot control the LED via output port 1 when the bar code device file is
opened. (For details about settings of bits 0 and 1 on output port 1, refer to Appendix D.)
If you have deactivated the indicator LED in the
OPEN "BAR:" statement, the OUT state-
ment can control the LED via output port 1 even when the bar code device file is opened.
(For details about settings of bits 0 and 1 on output port 1, refer to Appendix D.)
Read Mode
OPEN "BAR:" Statement
Auto-off Mode (Default)
Momentary Switching Mode
Alternate Switching Mode
Continuous Reading Mode
OPEN "BAR:F"...
OPEN "BAR:M"...
OPEN "BAR:A"...
OPEN "BAR:C"...