Specifications
Chapter 14. Statement Reference
174
Syntax:
BEEP[onduration[,offduration[,repetitioncount
[,frequency]]]]
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:
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:
• Note that specification of 0, 1, or 2 to
frequency produces the special beeper
effects as listed below.
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.)
I/O statement
BEEP
Drives the beeper or vibrator.
onduration and offduration:
1 (100 msec.)
repetitioncount:
1
frequency:
2793 Hz*
(*Same as that when 2 is set to frequency)
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