File_Remove - Phoenix Contact ILC 330 User Manual

Inline controllers
Table of Contents

Advertisement

Table 3-6
FILE_REMOVE function block inputs and outputs
Name
Data
Type
Execute
BOOL
Name
BOOL
Done
BOOL
Error
BOOL
ErrorID
UINT
6959_en_05
3.5.5

FILE_REMOVE

The FILE_REMOVE block is used to delete a file with a specific name.
Figure 3-6
FILE_REMOVE block
Before deletion, the file to be deleted must be closed using the FILE_CLOSE function
block.
Assign a STRING variable containing the name of the file to be deleted to the "Name" input.
The file name must not exceed 80 characters in length.
Activate the block on a rising edge at the "Execute" input.
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 deletes the file.
Input
Name of the file to be deleted.
Output
FALSE:
TRUE:
Output
FALSE:
TRUE:
Output
Error number of error that occurred when deleting the file:
0:
2:
3:
5:
6:
21:
The function block was not executed.
The function block was executed.
No errors occurred during deleting.
An error occurred during deleting.
No error information available.
The maximum number of files is already open.
File could not be found.
The file is open or write-protected or access was denied.
File name not entered.
File could not be deleted.
The Inline Controller Under PC WorX
PHOENIX CONTACT
3-11

Advertisement

Table of Contents
loading

Table of Contents