Directory

Variable name

Description

sPath

Data type: STRING(255)

Path of the last successfully specified source directory

xPathSet

Data type – BOOL

  • TRUE – The last attempt to set the source directory was successful. The path of the source directory is now in stOut.stDirectory.sPath.

asFileName

Data type – ARRAY[1..20] OF STRING(255)

File names of 20 files found in the source directory during the last successful retrieval as a result of a rising edge at
stIn.stDirectory.xGetFileNames. The file names may not exceed 255 characters in length. If uiFileNamesBlockOffset = 0, the file names of the first 20 files are transferred, if the value is 1, the file names of the files 21 to 40, etc. are transferred. The sorting order of the files corresponds to the ascending sort by file name. Numbers are interpreted as numerical content instead of text. INFORMATION: It may take several seconds for all file names to be retrieved.

uiFileNamesBlockOffset

Data type – UINT

Offset of the block of 20 retrieved file names

uiFileNamesStartIndex

Data type – UINT

Index of the file in the source directory from which the file names are displayed.

uiFileNamesEndIndex

Data type – UINT

Index of the file in the source directory up to which the file names are displayed.

xFileNamesReceived

Data type – BOOL

  • TRUE – The last attempt to retrieve the file names from the source directory was successful. The file names can now be found in the asFileNames variable. INFORMATION: It may take several seconds to retrieve all file names.