
ILC 330.../350...
46
PHOENIX CONTACT
6959_en_07
3.5.1
FILE_OPEN
The FILE_OPEN block is used to open a file on the parameterization memory with a specific
name.
Figure 3-2
FILE_OPEN block
•
Assign a STRING variable containing the name of the file to be opened to the “Name”
input.
•
Activate the block on a rising edge at the “Execute” input. The file is opened.
If the file to be opened does not exist, it is created on the data carrier. The file is opened with
read and write access rights. If “Done” is set to 1 and “Error” = 0, a valid file handle is present
at the “Handle” output.
If an error occurred during execution, the value at the “Error” output = 1.
“ErrorID” indicates the number of the cause of the error.
When using the block, please note the following:
–
This block can activate up to eight instances at the same time. This means that only
eight different files can be opened at the same time.
–
The same file may not be opened more than once.
–
The file to be opened must not be write-protected, because files are always opened
with read and write access rights.
–
The variable in which the file name is entered must be a STRING data type.
–
The file name must not exceed 80 characters in length.
–
The status of the “Done”, “Error”, and “ErrorID” outputs is maintained until a falling edge
is detected at the “Execute” input.
7018B026
FILE_OPEN
Execute
Name
Handle
Error
Done
ErrorID
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...