110
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
Instance Attributes (Sockets #1...8)
Extended
# Name Access Type Description
1 Socket type Get UINT8 Value:Socket Type:
00h SOCK_STREAM, NON-BLOCKING (TCP)
01h SOCK_STREAM, BLOCKING (TCP)
02h SOCK_DGRAM, NON-BLOCKING (UDP)
03h SOCK_DGRAM, BLOCKING (UDP)
2 Port Get UINT16 Local port that the socket is bound to
3 Host IP Get UINT32 Host IP address, or 0 (zero) if not connected
4 Host port Get UINT16 Host port number, or 0 (zero) if not connected
5 TCP State Get UINT8 State (TCP sockets only):
Value:State:Description:
00h CLOSED Closed
01h LISTEN Listening for connection
02h SYN_SENT Active, have sent SYN
03h SYN_RECEIVED Have sent and received SYN
04h ESTABLISHED Established.
05h CLOSE_WAIT Received FIN, waiting for close
06h FIN_WAIT_1 Have closed, sent FIN
07h CLOSING Closed exchanged FIN; await FIN ACK
08h LAST_ACK Have FIN and close; await FIN ACK
09h FIN_WAIT_2 Have closed, FIN is acknowledged
0Ah TIME_WAIT Quiet wait after close
6 TCP RX bytes Get UINT16 Number of bytes in RX buffers (TCP sockets only)
7 TCP TX bytes Get UINT16 Number of bytes in TX buffers (TCP sockets only)
8 Reuse address Get/Set BOOL Socket can reuse local address
Value:Meaning:
1 Enabled
0 Disabled (default)
9 Keep alive Get/Set BOOL Protocol probes idle connection (TCP sockets only)
Value:Meaning:
1 Enabled
0 Disabled (default)
10 IP Multicast TTL Get/Set UINT8 IP Multicast TTL value (UDP sockets only).
Default = 1.
11 IP Multicast Loop Get/Set BOOL
IP multicast loop back (UDP sockets only)
a
a. Must belong to group in order to get the loop backed message
Value:Meaning:
1 Enable (default)
0Disable
12 Ack delay time Get/Set UINT16 Time for delayed ACKs in ms (TCP sockets only)
Default = 200ms
b
b. Resolution is 50ms, i.e. 50...99 = 50ms, 100...149 = 100ms, 199 = 150ms etc.
13 TCP No Delay Get/Set BOOL Don’t delay send to coalesce packets (TCP).
Value:Meaning:
1 Don’t delay (turn off Nagle’s algorithm on socket)
0 Delay (default)
14 TCP Connect
Timeout
Get/Set UINT16 TCP Connect timeout in seconds (default = 75s)