ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/DirectoryAccess/GetDirectoryInfo
The command reads the properties of the directory.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bDirectoryAccessGetDirectoryInfo : BOOL;
OutputDataDirectoryAccessGetDirectoryInfo : ST_GetDirectoryInfoOutputData;
hrDirectoryAccessGetDirectoryInfo : HRESULT;
fbDirectoryAccess : FB_DirectoryAccess;
END_VAR
hrDirectoryAccessGetDirectoryInfo := fbDirectoryAccess.GetDirectoryInfo(
bExecute := bDirectoryAccessGetDirectoryInfo,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sFullPath := 'C:\Test',
OutputData => OutputDataDirectoryAccessGetDirectoryInfo);
IF hrDirectoryAccessGetDirectoryInfo <> S_FALSE THEN
bDirectoryAccessGetDirectoryInfo := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".