Denso Power Net Terminal BHT-7500 Spécifications Page 142

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 141
Chapter 7. I/O Facilities
133
7.4.3 Monitoring by the WAIT Statement
The WAIT statement monitors the input and output devices (I/Os) listed in Appendix D, "I/O
Ports." Unlike the INP function, the WAIT statement makes the I/O devices idle while no entry
occurs, thus saving power consumption and increasing the battery service life.
The table below lists some examples.
* In the BHT-6000/BHT-6500/BHT-7000/BHT-7500, the
WAIT function can monitor
the trigger switch status only when the trigger switch function is assigned to any of
the magic keys.
In a single
WAIT statement, you can specify more than one I/O device if the same port number
applies. To monitor the keyboard buffer and the bar-code buffer with the single
WAIT state-
ment, for example, describe the program as shown below.
OPEN "BAR:" AS #10 CODE "A:"
WAIT 0,&h03
The above example sets the value of &h03 (00000011) to port 0, indicating that it keeps waiting
until either bit 0 or bit 1 becomes ON by pressing any key or by reading a bar code.
WAIT Statement
I/O Devices
WAIT 0,&h01
Keyboard buffer status
WAIT 0,&h02
Bar-code buffer status
WAIT 0,&h04
Trigger switch status*
WAIT 0,&h08
Receive buffer status
WAIT 0,&h10 TIMEA function
WAIT 0,&h20 TIMEB function
WAIT 0,&h40 TIMEC function
Vue de la page 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 559 560

Commentaires sur ces manuels

Pas de commentaire