ns=2;s=DEPRAG Smart/Network/TCP/IP/ActiveClients/0/IsConnected
Indicates whether the TCP/IP client is connected to the server.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bTcpIpIsConnected : BOOL;
TcpIpIsConnected : BOOL;
hrTcpIpIsConnected : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpIsConnected := fbTcpIp.IsConnected(
bExecute := bTcpIpIsConnected,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => TcpIpIsConnected);
IF hrTcpIpIsConnected <> S_FALSE THEN
bTcpIpIsConnected := 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".