Argox PA-20 Basic Programming Manual Manuel d'utilisateur Page 104

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 143
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 103
PT-Basic Programming Manual Ver. 1.00 103/143
3.20 USB commands
USB_OPEN
Purpose
To initialize and enable USB port.
Syntax
USB_OPEN
Example
USB_OPEN
Description
Using USB_OPEN command can initialize and enable the
USB port.
USB_CLOSE
Purpose
To close the USB port.
Syntax
USB_CLOSE
Example
USB_CLOSE
Description
Using USB_CLOSE command can disable and suspend the
USB port.
USB_READ$
Purpose
To read specific number of bytes from USB port.
Syntax
A$=USB_READ$(N%)
Example
KEY$=USB_READ$(1)
Description
A$ is a string variable to be assigned to the data.
N% is an integer variable indicating number of bytes to be
read from USB port.
USB_WRITE
Purpose
To write specific number of bytes to the PC side.
Syntax
USB_WRITE(A$ , N%)
Example
USB_WRITE(A$,100)
Description
A$ is a string variable indicating the data is to be sent.
N% is an integer variable indicating number of bytes to be
writen to USB port.
Vue de la page 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 142 143

Commentaires sur ces manuels

Pas de commentaire