ns=2;s=DEPRAG Smart/Network/TCP/IP/RemoveClient
The command terminates the connection of a concrete TCP/IP client and removes it 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
bTcpIpRemoveClient : BOOL;
OutputDataTcpIpRemoveClient : ST_Int32OutputData;
hrTcpIpRemoveClient : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpRemoveClient := fbTcpIp.RemoveClient(
bExecute := bTcpIpRemoveClient,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
nDeviceId := 0,
OutputData => OutputDataTcpIpRemoveClient);
IF hrTcpIpRemoveClient <> S_FALSE THEN
bTcpIpRemoveClient := 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".