Input Description

../_images/7d43377fe38985a90a33139000eba54e

xExecute

Data_Type Default_Value Range Unit
BOOL - - -

The Function Block is activated via a positive edge at this input.

sFileName

Data_Type Default_Value Range Unit
CAA_FILENAME - - -

Input sFileName specifies an absolute file name which has to be added to archive. The file name appears in archive in uppercase.

eFileMode

Data_Type Default_Value Range Unit
FILE_MODE - - -

Input eFileMode determines the opening mode for the file.

“File lock” describes, if a file can be opened again, while it is still opened in one of the modi. “File size” defines how the file size is treated by the open-operation. “File pointer” describes the initial position of the pointer into the file after the open operation.

FILE_MODE Description
FILE_MWRITE

“write only” - write data to a file.

File lock: Cannot be reopened in any other mode.

File size: File is createdor existing file content is deleted.

File pointer: At beginning of file.

FILE_MREAD

“read only” - read data from a file.

File lock: Can be reopened in read-mode.

File size: Unchanged, no writing possible.

File pointer: At beginning of file.

FILE_MRDWR

“read and write” - read and write data to a file.

File lock: Cannot be reopened in any other mode.

File size: File is created or existing file content is deleted.

File pointer: At beginning of file.

FILE_MAPPD

“append to a file” - read and write to a file.

File lock: File can be reopened in read mode.

File size: File is created (if not existing), existing file content kept.

File pointer: At end of file.

xEclusive

Data_Type Default_Value Range Unit
BOOL - - -

Additional input for file access mode.

Note

This input is not supported on the AC500 PLCs.