
185
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.
I/O statement
BEEP
Drives the beeper or vibrator. (The vibrator is provided in the BHT-6500/BHT-7000/BHT-7500
to which vibrator-related descriptions given below should apply.)
onduration and offduration:
1 (100 msec.)
repetitioncount:
1
frequency:
4337 Hz* (BHT-3000/BHT-6000)
3213 Hz* (BHT-4000)
4200 Hz* (BHT-5000)
2711 Hz* (BHT-6500)
2793 Hz* (BHT-7000/BHT-7500)
(*Same as when 2 is set to frequency)
Specification to
frequency
BHT-3000/
BHT-6000
BHT-4000 BHT-5000 BHT-6500 BHT-7000/
BHT-7500
Tone Statement
example
0 1033 Hz 1015 Hz 1015 Hz 986 Hz 698 Hz Low-
pitched
BEEP ,,,0
1 2168 Hz 1752 Hz 2142 Hz 1807 Hz 1396 Hz Medium-
pitched
BEEP ,,,1
2 4337 Hz 3213 Hz 4200 Hz 2711 Hz 2793 Hz High-
pitched
BEEP ,,,2
Komentarze do niniejszej Instrukcji