Input DescriptionΒΆ

../_images/a4063c05e3897fd00a33139000eba54e

xExecute

Data_Type Default_Value Range Unit
BOOL - - -

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

sZipArchiveName

Data_Type Default_Value Range Unit
CAA_FILENAME - - -

Input sZipArchiveName specifies archive name to unpack.

sDestDirName

Data_Type Default_Value Range Unit
CAA_FILENAME - - -

Input sDestDirName specifies name of destination directory, where archive has to be unpacked.

eUnpackMode

Data_Type Default_Value Range Unit
FILE_UNPACK_MODE - - -

Input eUnpackMode specifies the mode for archive unpacking operation.

FILE_MODE Description
FILE_UNPACK_USE_ABSOLUTE_PATH_SAVED_IN_ARCHIVE If this mode is defined then path to directory is saved in archive. That means sDestDirName is ignored and files are extracted in saved archive directory path, otherwise files are extracted to directory which is specified using sDestDirName. Destination drive name has to be always available in the specified path, i.e. path has to be absolute. If mode is defined but path for any file is not available in archive then this file is not extracted.
FILE_UNPACK_OVERWRITE If any file in destination directory already exists it is allowed to overwrite it. Input is set to FALSE when only new files are added to destination directory.
FILE_UNPACK_CREATE_DIRS If destination directory does not exist it will be automatically created. If mode is not set and destination directory does not exist Function Block returns error. Destination directory could be defined in archive itself if FILE_UNPACK_USE_ABSOLUTE_PATH_SAVED_IN_ARCHIVE is set.