Argox PA-20 Basic Programming Manual User Manual Page 104

  • Download
  • Add to my manuals
  • Print
  • Page
    / 143
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 142 143

Comments to this Manuals

No comments