12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This command will copy data from an open file to another open file. Requirements: Two filesmust be open, one for reading, and the <strong>se</strong>cond for writing. e.g.O 1 R /sourcefile.txtO 2 RW /destfile.txtCopy File will copy from the current location in the source file, up to “num” bytes if specified,to the destination file (starting at the destination's current location).NoteYou can interrupt the transfer at any time by <strong>se</strong>nding «ESC» (ASCII 27, HEX 0x1B).FormatB fh1 fh2 [num]Parameters• fh1/fh2 is a file handle (1 - 4). U<strong>se</strong> the Free Handle command to get a free file handle.• num is the number of bytes to copy from fh1 to fh2. If num is not given, or is greater than thesize of fh1, then the entire contents of fh1 is copied.Respon<strong>se</strong> FormatNULL | respon<strong>se</strong> | Ennrespon<strong>se</strong> depends on the C <strong>se</strong>tting shown below.C = 0:NULLC = 1:#########...####C = 2:nn..nn bytes copied at r..rr bytes/<strong>se</strong>condC = 3:#####...####nn..nn bytes copied at r..rr bytes/<strong>se</strong>condBart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!