ns=2;s=DEPRAG Smart/SoftwareItemIdentification/CheckForUpdate
Checks if a new software update is available.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bCheckForUpdate : BOOL;
OutputDataCheckForUpdate : ST_CheckForUpdateOutputData;
hrCheckForUpdate : HRESULT;
fbSoftwareItemIdentification : FB_SoftwareItemId;
END_VAR
hrCheckForUpdate := fbSoftwareItemIdentification.CheckForUpdate(
bExecute := bCheckForUpdate
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataCheckForUpdate);
IF hrCheckForUpdate <> S_FALSE THEN
bCheckForUpdate := 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".