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.4 Copying Files<br />

Function Libraries<br />

"MMC_FileCopy" allows you to copy a file by copying file<br />

'adrname1' to file 'adrname2'.<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 />

adrname ADR(source file)<br />

POINTER<br />

TO STRING<br />

adrname2<br />

Value<br />

ADR(destination file)<br />

result INT<br />

0 running<br />

< 0 error<br />

> 0 job done<br />

FUNCTION_BLOCK MMC_FileCopy<br />

VAR_INPUT<br />

adrname1 : POINTER TO STRING;<br />

adrname2 : POINTER TO STRING;<br />

END_VAR<br />

VAR_OUTPUT<br />

result:INT;<br />

END_VAR<br />

95

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

Saved successfully!

Ooh no, something went wrong!