ns=2;s=DEPRAG Smart/Local/DriveManagement/GetDrives
The command returns a list of all logical drives with their properties.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bDriveManagementGetDrives : BOOL;
OutputDataDriveManagementGetDrives : ST_GetDrivesOutputData;
hrDriveManagementGetDrives : HRESULT;
fbDriveManagement : FB_DriveManagement;
END_VAR
hrDriveManagementGetDrives := fbDriveManagement.GetDrives(
bExecute := bDriveManagementGetDrives,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataDriveManagementGetDrives);
IF hrDriveManagementGetDrives <> S_FALSE THEN
bDriveManagementGetDrives := 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".