Socket status read, Precautions, Response codes – Omron SYSMAC CJ1W-EIP21 User Manual
Page 439: Command block response block parameters, Socket status (response)
413
FINS Commands Addressed to EtherNet/IP Units or Built-in EtherNet/IP Ports
Appendix E
Precautions
All the above values are set to 0 if Ethernet communications functions are stopped due to improper settings in
the system setup.
These values are cleared when the EtherNet/IP Unit or built-in EtherNet/IP port is started or reset. Values will
be counted only until the maximum values are reached.
Response Codes
SOCKET STATUS READ
Reads the network socket status of the EtherNet/IP Unit or built-in EtherNet/IP port.
Command Block
Response Block
Parameters
Socket Status (Response)
Returns eight types of information in records of 32 bytes each. A maximum of 62 records can be returned. The
format of each record is shown below.
Protocol (4 bytes)
The protocol used for the socket is returned as a number.
00 00 00 06: TCP; 00 00 00 11: UDP
Receive Queue (4 bytes)
The number of bytes in the reception queue.
Send Queue (4 bytes)
The number of bytes in the send queue.
Local IP Address (4 bytes)
The local IP address allocated to the socket.
Local Port Number (4 bytes)
The local port number allocated to the socket.
Remote IP Address (4 bytes)
The remote IP address allocated to the socket.
Response code
Description
0000
Normal end
1001
Command too large
27 64
Command
code
27 64
Socket status
Response
code
Command
code
32 bytes
32 bytes
Socket status