ns=2;s=DEPRAG Smart/Devices/General/OpenProtocol/OpenProtocolDevices/0/GetLatestTighteningResult
Query of the end values of the last screw connection.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bOpenProtocolGetLatestTighteningResult : BOOL;
OutputDataOpenProtocolGetLatestTighteningResult : ST_GetLatestTighteningResultOutputData;
hrOpenProtocolGetLatestTighteningResult : HRESULT;
fbOpenProtocol : FB_OpenProtocol;
END_VAR
hrOpenProtocolGetLatestTighteningResult := fbOpenProtocol.GetLatestTighteningResult(
bExecute := bOpenProtocolGetLatestTighteningResult,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
OutputData => OutputDataOpenProtocolGetLatestTighteningResult);
IF hrOpenProtocolGetLatestTighteningResult <> S_FALSE THEN
bOpenProtocolGetLatestTighteningResult := 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".