B&B Electronics Parallel Printer Card PIOC Manuale Utente Pagina 43

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 64
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 42
GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
CF - Close File Handle
This command issues a flush file (FF – Command) automatically and then closes the file
handle. Afterwards, the handle will available for future use.
Format CF<SP>n<CR>
!00<CR>
Close File handle n
RF - Read from File
After opening a file, any amount of data can be read using this command. To read more
data, send another RF command and so on. If all requested data is not available
(reached file end), USBwiz will pad the output with a filler byte given by the user.
When reading, the data is sent directly to the user with no formatting (no interpretation
or conversion).
Format RF<SP>nM>ssssssss<CR>
!00<CR>
ssssssss Bytes is
returned
$aaaaaaaa<CR>
!00<CR>
n File Handle
M Filler Character
ssssssss HEX DWORD desirable data
size to be read
aaaaaaaa HEX DWORD actual read data
from file size
Example We have a file with 8 bytes (ABCDEFGH) in it, and it is opened for
read with handle number 2.
RF<SP>2Z>5<CR>
!00<CR>
ABCDE
$00000005<CR>
!00<CR>
RF<SP>2Z>5<CR>
!00<CR>
FGHZZ
$00000003<CR>
!00<CR>
Read 5 bytes twice from a file handle 2
with filler Z
WF - Write to File
After opening a file, any amount of data can be written using this command. To write
more data, send another WF command and so on. Note that if first error code is not !00
(an error occurred), the command would halt and further commands are processed, so
sending the file data upon an error code would result in the data being not being written
and processing these data as commands.
When writing, the sent data is written directly to the file with no formatting (no
interpretation or conversion). Also, when requesting to write a certain amount of bytes,
Rev.2.27 Page 43 of 64 www.ghielectronics.com
Vedere la pagina 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 63 64

Commenti su questo manuale

Nessun commento