TCP/UDP RT TcCom Parameter
In addition to the interfaces, the TcCOM object "TCP/UDP RT" is the main component of the function. An instantiation usually takes place under the device:
Double-click to open the instance, so that the parameters documented below can be used:
Name | Default value | Description |
---|---|---|
TcIoIpSettings.IpAddress | 0.0.0.0 | Own (local) IP address used for communication. |
TcIoIpSettings.SubnetMask | 0.0.0.0 | Own subnet mask |
TcIoIpSettings.Gateway | 0.0.0.0 | Gateway used to reach communication partners outside your own network. |
TcIoIpSettings.DhcpEnable | FALSE | Not yet implemented. |
TcIoIpSettings.ManualSettings | FALSE | Set to FALSE: The operating system uses the current IP configuration of the referenced adapter. Set to TRUE: Parameters of TcIoIpSettings* are used. |
IpMaxReceivers | 4 | Maximum number of permitted IP-based protocols. |
IpMaxPendingOnArp | 40 | Maximum number of entries in the ARP Request Table. |
IpMacCacheSize | 64 | Number of entries in MAC cache, i.e. IP address to MAC address allocations. Caching is implemented as LRU. |
IpMTU | 1514 | Not yet implemented. (Maximum transport unit size for IP packets) |
IpRecvFrameQueueSize | 255 | Number of entries in the queue for receiving Udp packets. |
UdpMaxReceivers | 4 | Maximum number of UDP receivers |
UdpMTU | 1514 | From TwinCAT 3.1 Build 4026: In earlier versions (<= Build 4024) this parameter has no function |
UdpCheckCrc | TRUE | Set to TRUE means that UDP packets with incorrect checksum are discarded. |
TTL | 0x80 | TTL in the IP header of the frames to be sent. |
MultiCastTTL | 0x01 | TTL of the MultiCast frames to be sent. |
PassiveMode | FALSE | If TRUE, no frames are fetched from the RT network adapter frames by this instance. See Multitask access to a network card |
MulticastIpList | [] | Multicast addresses for receiving MultiCast packets. |
TcpMTU | 1514 | Not yet implemented. (Maximum transport unit size for TCP) |
TcpCheckCrc | TRUE | Incoming TCP frames are checked for valid checksum and discarded, if the checksum is incorrect. |
TcpMaxSocketCount | 32 | Maximum number of sockets that are managed by the IP stack. |
TcpReceiveBufferSize | 16192 | Number of received bytes that can be cached with a TCP connection. |
TcpTransmitBufferSize | 16192 | Number of bytes to be sent that can be cached in the TCP stack with a connection. |
TcpMaxRetry | 5 | Number of retries of TCP packets until the connection is terminated. |
TcpTimeoutCon | 5000 | Timeout for TCP connection establishment and disconnection. |
TcpTimeoutWait | 60000 | Timespan for storing handles internally after an unexpected termination of the connection. |
TcpTimeoutIdle | 1000 | Time to callback (ReveiveEvent), if no response. |
TcpRoundTripTime | 3000 | Start value for the timeout of data packets. Is adjusted dynamically depending on the connection quality (depending on the packet round-trip time). |
Times are given in milliseconds.