ns=2;s=DEPRAG Smart/Network/TCP/IP/ActiveClients/0/ReceiveTimeoutInMilliseconds
Maximum time in milliseconds that the client waits for the reception of a message. If the message cannot be received completely within the time interval, an error is issued.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bTcpIpReadReceiveTimeoutInMilliseconds : BOOL;
bTcpIpWriteReceiveTimeoutInMilliseconds : BOOL;
TcpIpReceiveTimeoutInMilliseconds : DINT;
hrTcpIpReceiveTimeoutInMilliseconds : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpReceiveTimeoutInMilliseconds := fbTcpIp.ReadReceiveTimeoutInMilliseconds(
bExecute := bTcpIpReadReceiveTimeoutInMilliseconds,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => TcpIpReceiveTimeoutInMilliseconds);
IF hrTcpIpReceiveTimeoutInMilliseconds <> S_FALSE THEN
bTcpIpReadReceiveTimeoutInMilliseconds := FALSE;
END_IF
hrTcpIpReceiveTimeoutInMilliseconds := fbTcpIp.WriteReceiveTimeoutInMilliseconds(
bExecute := bTcpIpWriteReceiveTimeoutInMilliseconds,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
PointerToNodeValue := ADR(TcpIpReceiveTimeoutInMilliseconds),
SizeOfNodeValue := SIZEOF(TcpIpReceiveTimeoutInMilliseconds));
IF hrTcpIpReceiveTimeoutInMilliseconds <> S_FALSE THEN
bTcpIpWriteReceiveTimeoutInMilliseconds := 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".