ns=2;s=DEPRAG Smart/Devices/General/OpenProtocol/OpenProtocolDevices/0/Id
Unique list index to retrieve the device in the list of OpenProtocolDevices.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bOpenProtocolReadId : BOOL;
OutputOpenProtocolReadId : DINT;
hrOpenProtocolReadId : HRESULT;
fbOpenProtocol : FB_OpenProtocol;
END_VAR
hrOpenProtocolReadId := fbOpenProtocol.ReadId(
bExecute := bOpenProtocolReadId,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
Output => OutputOpenProtocolReadId);
IF hrOpenProtocolReadId <> S_FALSE THEN
bOpenProtocolReadId := 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".