Denso Power Net Terminal BHT-103 Specifikace Strana 155

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 577
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 154
Chapter 9. Event Polling and Error/Event Trapping
147
9.2 Event Polling
[ 1 ] Programming sample
The program below shows the event polling example which monitors the bar code reader and
the keyboard for occurrence of events.
This example uses the EOF and INKEY$ functions to check the data input for the bar code
reader and the keyboard, respectively.
OPEN "BAR:" AS #1 CODE "A"
loop
WAIT 0,3
IF NOT EOF(1) THEN
GOSUB barcod
ENDIF
k$=INKEY$
IF k$<>"" THEN
GOSUB keyin
ENDIF
GOTO loop
barcod
BEEP
LINE INPUT #1,dat$
PRINT dat$
RETURN
keyin
.
.
.
RETURN
Zobrazit stránku 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 576 577

Komentáře k této Příručce

Žádné komentáře