Denso BHT-200QW Especificações Página 115

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 587
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 114
Chapter 7. I/O Facilities
107
7.3 Timer and Beeper
7.3.1 Timer Functions
The timer functions (TIMEA, TIMEB, and TIMEC) are available in BHT-BASIC for accurate
time measurement.
Use these timer functions for monitoring the keyboard waiting time, communications timeout
errors, etc.
TIMEA = 100 ’10 sec
WAIT 0,&H10
BEEP
PRINT "10sec."
TIMEC = 20 ’2 sec
WAIT 0,&H41
BEEP
PRINT "2sec.or Keyboard"
7.3.2 BEEP Statement
The BEEP statement sounds a beeper and specifies the frequency of the beeper.
The example below sounds the musical scale of do, re, mi, fa, sol, la, si, and do.
READ readDat%
WHILE (readDat%>=0)
TIMEA =3
BEEP 2,,,readDat%
WAIT 0,&h10
READ readDat%
WEND
DATA 523,587,659,698,783,880,987,1046,-1
Specifying the frequency with value 0, 1, or 2 produces the special beeper effects; that is, the
low-, medium-, or high-pitched tone, respectively.
FOR i%=0 TO 2
TIMEC =20
BEEP ,,,i%
WAIT 0,&h40
NEXT
NOTE
Only if setting 0, 1, or 2 or making no specification to the frequency,
you can adjust the beeper volume on the LCD when turning on the BHT.
(For the adjustment of the beeper volume, refer to the BHT User’s Manual.)
Vista de página 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 586 587

Comentários a estes Manuais

Sem comentários