
ILC 330.../350...
48
PHOENIX CONTACT
6959_en_07
3.5.2
FILE_CLOSE
The FILE_CLOSE block is used to close a file on 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.
The 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.
7018B027
FILE_CLOSE
Execute
Handle
Error
Done
ErrorID
Table 3-3
FILE_CLOSE function block inputs and outputs
Name
Data
type
Data direction
Description
Execute
BOOL
Input
Rising edge: block closes the file.
Handle
UINT
Input
File handle of file to be closed.
Done
BOOL
Output
FALSE:
The function block was not executed.
TRUE:
The function block was executed.
Error
BOOL
Output
FALSE:
No errors occurred when closing the file.
TRUE:
An error occurred when closing the file.
ErrorID
UINT
Output
Error number of the error that occurred when closing the file:
0:
No error information available.
1:
Invalid file handle.
20:
File could not be closed.
Summary of Contents for ILC 330 Series
Page 1: ...User manual Installing and operating the ILC 330 and ILC 350 Inline controllers...
Page 8: ...ILC 330 350 8 PHOENIX CONTACT 6959_en_07...
Page 10: ...ILC 330 350 10 PHOENIX CONTACT 6959_en_07...
Page 42: ...ILC 330 350 42 PHOENIX CONTACT 6959_en_07...
Page 68: ...ILC 330 350 68 PHOENIX CONTACT 6959_en_07...