ns=2;s=DEPRAG Smart/SoftwareItemIdentification/IsUpdateAvailable
Indicates whether a 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
bIsUpdateAvailable : BOOL;
OutputIsUpdateAvailable : BOOL;
hrIsUpdateAvailable : HRESULT;
fbSoftwareItemIdentification : FB_SoftwareItemId;
END_VAR
hrCanUpdateServerBeReached := fbSoftwareItemIdentification.IsUpdateAvailable(
bExecute := bIsUpdateAvailable
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputIsUpdateAvailable);
IF hrIsUpdateAvailable <> S_FALSE THEN
bIsUpdateAvailable := 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".