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.

Read LineDescriptionThe Read Line command is very similar to the Read command, except that data is returnedup to the next EOL terminator. The ”E” <strong>se</strong>tting determines the type of EOL terminator that ischecked. The EOL terminator is not returned, only the data up to the EOL.FormatRL fh [num [addr]]Parameters• fh 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 read. Optional. If not specified, up to 512 bytes will bereturned.• addr is the address at which to start reading. Optional. num must be given for thisparameter to be u<strong>se</strong>d.Respon<strong>se</strong> Format«sp»respon<strong>se</strong> | Ennrespon<strong>se</strong> is preceded by a «sp», indicating a good read. The length of respon<strong>se</strong> is variable, anddepends on the num parameter, the position of the file handle, the size of the file, and thelocation of the next EOL. Refer to the ”E” <strong>se</strong>tting.ExampleFile handle position = 0, file size = 38 bytes. This respon<strong>se</strong> differs from what is returned bythe Read command:RL 1«sp»13:22:02 ADC1=4.9VRL 1«sp»13:22:32 ADC1=4.9VRL 1E07Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 139

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

Saved successfully!

Ooh no, something went wrong!