ns=2;s=DEPRAG Smart/Network/TCP/IP/ActiveClients/0/SendTimeOutInMilliseconds
Maximum time in milliseconds for sending a message. If the message cannot be sent completely within the time interval, an error is output.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bTcpIpReadSendTimeoutInMilliseconds : BOOL;
bTcpIpWriteSendTimeoutInMilliseconds : BOOL;
TcpIpSendTimeoutInMilliseconds : DINT;
hrTcpIpSendTimeoutInMilliseconds : HRESULT;
fbTcpIp : FB_TcpIp;
END_VAR
hrTcpIpSendTimeoutInMilliseconds := fbTcpIp.ReadSendTimeoutInMilliseconds(
bExecute := bTcpIpReadSendTimeoutInMilliseconds,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => TcpIpSendTimeoutInMilliseconds);
IF hrTcpIpSendTimeoutInMilliseconds <> S_FALSE THEN
bTcpIpReadSendTimeoutInMilliseconds := FALSE;
END_IF
hrTcpIpSendTimeoutInMilliseconds := fbTcpIp.WriteSendTimeoutInMilliseconds(
bExecute := bTcpIpWriteSendTimeoutInMilliseconds,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
PointerToNodeValue := ADR(TcpIpSendTimeoutInMilliseconds),
SizeOfNodeValue := SIZEOF(TcpIpSendTimeoutInMilliseconds));
IF hrTcpIpSendTimeoutInMilliseconds <> S_FALSE THEN
bTcpIpWriteSendTimeoutInMilliseconds := 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".