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.8 Moving a File<br />

Function Libraries<br />

"MMC_FileMove" allows you to move a file.<br />

The file will be moved from 'adrname' to 'adrname2'. You<br />

can specify different subdirectories.<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<br />

POINTER<br />

ADR(source file)<br />

adrname2<br />

TO STRING<br />

ADR(destination file)<br />

result INT<br />

0 running<br />

< 0 error<br />

> 0 job done<br />

Files are moved compliant to the following convention:<br />

� The drive letter is prefixed to the source file only.<br />

� Specify the path to the destination file.<br />

� Always suffix the file extension (separated by a dot).<br />

Source file example: A:DIR1\Text1.txt<br />

Destination file example: DIR1\Text2.txt<br />

99

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

Saved successfully!

Ooh no, something went wrong!