ns=2;s=DEPRAG Smart/Network/TCP/IP/ActiveClients/0/HostAddress
IP or DNS address of the server.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bTcpIpReadHostAddress : BOOL;
TcpIpHostAddress : STRING(255);
hrTcpIpReadHostAddress : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpReadHostAddress := fbTcpIp.ReadHostAddress(
bExecute := bTcpIpReadHostAddress,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => TcpIpHostAddress);
IF hrTcpIpReadHostAddress <> S_FALSE THEN
bTcpIpReadHostAddress := 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".