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.12 Setting the Edit Bookmark of a File<br />

Function Libraries<br />

Use "MMC_FileSeek" to add an edit bookmark to an open<br />

file which allows you to access the contents of the file at<br />

any point by transferring the file handle of the open file.<br />

Note that the edit bookmark cannot be moved to<br />

somewhere after the end of the file.<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 />

handle INT file handle<br />

offset UDINT offset from the start of file<br />

result INT<br />

0 running<br />

< 0 error<br />

> 0 job done<br />

FUNCTION_BLOCK MMC_FileSeek<br />

VAR_INPUT<br />

handle:INT;<br />

offset:UDINT;<br />

END_VAR<br />

VAR_OUTPUT<br />

result:INT;<br />

END_VAR<br />

105

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

Saved successfully!

Ooh no, something went wrong!