ns=2;s=DEPRAG Smart/Network/TCP/IP/ActiveClients/0/Id
Unique index with which the TCP/IP client can be retrieved from the "ActiveClients" list.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bTcpIpReadId : BOOL;
TcpIpReadId : DINT;
hrTcpIpReadId : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpReadId := fbTcpIp.ReadId(
bExecute := bTcpIpReadId,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => TcpIpReadId);
IF hrTcpIpReadId <> S_FALSE THEN
bTcpIpReadId := 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".