17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.5.6 Determining the Free MMC Space<br />

Function Libraries<br />

"MMC_FileFreeSpace" allows you to find out how much<br />

space is left on the MMCard.<br />

This is an asynchronous Function Block. It transfers the<br />

job to the file system and checks if it has been completed.<br />

It needs to be run until the job has been handled<br />

successfully.<br />

Parameter Type Value Explanation<br />

device<br />

POINTER<br />

TO STRING<br />

ADR(CardName)<br />

space DINT free space in byte<br />

result INT<br />

0 running<br />

< 0 error<br />

> 0 job done<br />

FUNCTION_BLOCK MMC_FileFreeSpace<br />

VAR_INPUT<br />

device : POINTER TO STRING;<br />

END_VAR<br />

VAR_OUTPUT<br />

space:DINT;<br />

result:INT;<br />

END_VAR<br />

97

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

Saved successfully!

Ooh no, something went wrong!