File_Close - Phoenix Contact ILC 330 User Manual

Inline controllers
Table of Contents

Advertisement

UM EN ILC 330/350
Table 3-3
FILE_CLOSE function block inputs and outputs
Name
Data
Type
Execute
BOOL
Handle
UINT
Done
BOOL
Error
BOOL
ErrorID
UINT
3-6
PHOENIX CONTACT
3.5.2

FILE_CLOSE

The FILE_CLOSE block is used to close a file in the parameterization memory with a
specific handle.
Figure 3-3
FILE_CLOSE block
Assign the valid handle of an open file to the "Handle" input.
Activate the block on a rising edge at the "Execute" input. The file is closed.
Execution of the function block is complete when the "Done" output is set to 1.
If an error occurred during execution, the value at the "Error" output = 1.
"ErrorID" indicates the number of the cause of the error.
The status of the "Done", "Error", and "ErrorID" outputs is maintained until a falling edge is
detected at the "Execute" input.
Data Direction
Description
Input
Rising edge: Block closes the file.
Input
File handle of file to be closed.
Output
FALSE:
TRUE:
Output
FALSE:
TRUE:
Output
Error number of error that occurred when closing the file:
0:
1:
20:
The function block was not executed.
The function block was executed.
No errors occurred when closing the file.
An error occurred when closing the file.
No error information available.
Invalid file handle.
File could not be closed.
6959_en_05

Advertisement

Table of Contents
loading

Table of Contents