
Chapter 14. Statement Reference
157
____________________________________________________________________
I/O statement
BEEP
Drives the beeper or vibrator.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
BEEP[onduration[,offduration[,repetitioncount [,frequency]]]]
Parameter:
Parameter:Parameter:
Parameter:
onduration, offduration, and repetitioncount
Numeric expressions, each of which returns a value from 0 to 255.
frequency
A numeric expression which returns a value from 0 to 32767.
Description:
Description:Description:
Description:
BEEP sounds the beeper or drives the vibrator during the length of time specified by
onduration at the intervals of the length of time specified by offduration by the
number of repetitions specified by repetitioncount.
The beeper sounds at the pitch of the sound in Hz specified by frequency.
• The unit of onduration and offduration is 100 msec.
• Defaults:
onduration and
offduration:
1(100 msec. )
repetitioncount:
1
frequency:
2793 Hz*
(*Same as that when 2 is set to frequency)
• Note that specification of 0, 1, or 2 to frequency produces the special beeper effects
as listed below.
Specification to
frequency
Frequency Tone Statement example
0 698 Hz Low-pitched
BEEP ,,,0
1 1396 Hz Medium-pitched
BEEP ,,,1
2 2793 Hz High-pitched
BEEP ,,,2
Specification of 0, 1, or 2 to frequency drives the beeper or vibrator depending upon the
settings made on the main adjustment screen of the LCD, beeper, and touch screen.
If 0, 1, or 2 is set to frequency (or if the frequency option is omitted), then you can
adjust the beeper volume on the LCD when turning on the BHT. (For the adjustment
procedure, refer to the BHT User's Manual.)
Kommentare zu diesen Handbüchern