100 Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
6.3 Socket Interface Information
The information for the eight socket interface sockets held by the EN311 can be read out
with the MREAD instruction. The EN311 holds five words of socket status information for
each socket. User programs should access this information as necessary when using
socket transmission.
• Remote node TCP/UDP port number
• Remote node IP address
• TCP/UDP port number for this socket
• Socket status
Table 6-1 lists the structure of the socket interface information and the extended memory
area addresses.
For UDP sockets, the remote node port number and IP address data are invalid.
The socket status has the following structure.
The conditions for each bit to become 1 as well as those for becoming 0 are listed in
Table 6-2.
Table 6-1 Socket Interface Information Storage Address (Word Address)
Socket identifier
1 2 3 4
Remote node port number (TCP only) 16#7E43 16#7E4B 16#7E53 16#7E5B
Remote node IP address (TCP only) 16#7E44
16#7E45
16#7E4C
16#7E4D
16#7E54
16#7E55
16#7E5C
16#7E5D
Local node TCP/UDP port number 16#7E46 16#7E4E 16#7E56 16#7E5E
Socket status 16#7E47 16#7E4F 16#7E57 16#7E5F
Socket identifier
5 6 7 8
Remote node port number (TCP only) 16#7E63 16#7E6B 16#7E73 16#7E7B
Remote node IP address (TCP only) 16#7E64
16#7E65
16#7E6C
16#7E6D
16#7E74
16#7E75
16#7E7C
16#7E7D
Local node TCP/UDP port number 16#7E66 16#7E6E 16#7E76 16#7E7E
Socket status 16#7E67 16#7E6F 16#7E77 16#7E7F
TCP
UDP
AOPEN
POPEN
CONN
RCV
RCLOSE
NOACK
FEDCBA9876543210
00000000