ns=2;s=DEPRAG Smart/Network/TCP/IP/RemoveAll
The command terminates all active TCP/IP connections and removes all clients 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
bTcpIpRemoveAll : BOOL;
OutputDataTcpIpRemoveAll : ST_VoidOutputData;
hrTcpIpRemoveAll : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpRemoveAll := fbTcpIp.RemoveAll(
bExecute := bTcpIpRemoveAll,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataTcpIpRemoveAll);
IF hrTcpIpRemoveAll <> S_FALSE THEN
bTcpIpRemoveAll := 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".