Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual Kuhnke Electronics Instruction Manual

17.02.2013 Views

Function Libraries 4.5.3 Closing a File "MMC_FileClose" allows you to close an open file by transferring the file handle of the open file. This is an asynchronous Function Block. It transfers the job to the file system and checks if it has been completed. It needs to be run until the job has been handled successfully. Parameter Type Value Explanation handle INT file handle result INT 0 running < 0 error > 0 job done FUNCTION_BLOCK MMC_FileClose VAR_INPUT handle:INT; END_VAR VAR_OUTPUT result:INT; END_VAR 94 E 700 GB

4.5.4 Copying Files Function Libraries "MMC_FileCopy" allows you to copy a file by copying file 'adrname1' to file 'adrname2'. This is an asynchronous Function Block. It transfers the job to the file system and checks if it has been completed. It needs to be run until the job has been handled successfully. Parameter Type Value Explanation adrname ADR(source file) POINTER TO STRING adrname2 Value ADR(destination file) result INT 0 running < 0 error > 0 job done FUNCTION_BLOCK MMC_FileCopy VAR_INPUT adrname1 : POINTER TO STRING; adrname2 : POINTER TO STRING; END_VAR VAR_OUTPUT result:INT; END_VAR 95

Function Libraries<br />

4.5.3 Closing a File<br />

"MMC_FileClose" allows you to close an open file by<br />

transferring the file handle of the open 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 />

result INT<br />

0 running<br />

< 0 error<br />

> 0 job done<br />

FUNCTION_BLOCK MMC_FileClose<br />

VAR_INPUT<br />

handle:INT;<br />

END_VAR<br />

VAR_OUTPUT<br />

result:INT;<br />

END_VAR<br />

94 E 700 GB

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

Saved successfully!

Ooh no, something went wrong!