![background image](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528217.webp)
11-3
Section
Command/Response Reference
207
Results Storage Area Response Codes
Response code
Description
0000
Normal
000D
A parameter error occurred at the remote IP address
(EACCES).
003E
Internal buffer cannot be reserved due to high receive load
(ENOBUFS).
0042 (see note)
An error occurred (EMSGSIZE).
0044
Received ICMP data (ENOPROTOOPT).
0045
Local socket closed (ECONNABORTED).
0049
Duplicated port numbers (EADDRINUSE).
004A
An error occurred (ECONNREFUSED).
Passive remote is not available.
004B (see note)
A communication error occurred with the remote node
(ECONNRESET).
004C
A parameter error occurred at the remote IP address
(EADDRNOTAVAIL).
A parameter was specified incorrectly.
An attempt was made to actively open local TCP port.
004E
A parameter error occurred at the remote IP address
(ENETUNREACH). No network number in IP router table or
incorrect router setting.
0051
A parameter error occurred at the remote IP address
(EHOSTUNREACH). Incorrect router setting.
0053
A communication error occurred with the remote node
(ETIMEDOUT). No remote exists.
0081
Socket was closed during opening procedure.
Note These errors occur only in large multilayered networks.
11-3-15
TCP RECEIVE REQUEST
Requests that data be sent from a TCP socket.
Command Block
12
27
Command
code
Results storage
area
TCP
socket
number
Number of
reception
bytes
Timeout
value
Response Block
12
27
Command
code
Response
code
Results Storage Format
Received bytes
Response
code
Number of
reception
bytes
Received data
Parameters
The TCP socket number to receive data specified as 2 bytes between 1 and 8.
The area in which the results of the command execution are stored. The first byte
specifies the memory area and data type (variable type). The 2nd to 4th bytes
specify the beginning address of the results storage area. Refer to page 192 for
details about the variable types and addresses that can be specified.
The maximum number of bytes of data to be received is given in the command.
The number of bytes of data received will be stored in the results storage area.
Up to 1,984 bytes can be specified.
TCP Socket Number
(Command)
Results Storage Area
(Command)
Number of Reception Bytes
(Command, Results
Storage Area)