17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

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.

Function Libraries<br />

4.5.15 Opening, Reading, Closing a File<br />

"MMC_ORC" lets you read data from a file. The function<br />

will open the file, read the set number of data bytes, and<br />

close the file again afterwards. Users therefore need not<br />

worry about the file handle.<br />

Parameter Type Value Explanation<br />

name DWORD ADR(file name)<br />

buff DWORD pointer to read buffer<br />

count INT<br />

pSysInfo POINTER<br />

TO STRING<br />

error INT<br />

finished BOOL<br />

start BOOL<br />

number of bytes to be<br />

read<br />

ADR(systeminfo)<br />

0 no error<br />

? error code<br />

TRUE function performed<br />

FALSE executing function<br />

TRUE start function<br />

FALSE stop function<br />

� Use 'start' to repeatedly run the function.<br />

� 'Finished' is TRUE when the defined process is<br />

complete.<br />

� There is no error if 'error' = 0 at that point; otherwise<br />

you can get the error code.<br />

108 E 700 GB

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

Saved successfully!

Ooh no, something went wrong!