Denso Power Net Terminal BHT-7500 Dokumentacja Strona 165

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 560
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 164
156
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
Przeglądanie stron 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 559 560

Komentarze do niniejszej Instrukcji

Brak uwag