Tcp receive request, 3-15 tcp receive request – Omron CS1W-ETN21 User Manual
Page 202
![background image](/manuals/203937/202/background.png)
177
Command/Response Reference
Section 7-3
7-3-15 TCP RECEIVE REQUEST
Requests that data be sent from a TCP socket.
Command Block
Response Block
Results Storage Format
Parameters
Socket Option (Command)
The socket option specified as 1 byte. The setting is not valid for this com-
mand. Set to 0.
TCP Socket Number
(Command)
The TCP socket number to receive data specified as 1 byte between 1 and 8.
Results Storage Area
(Command)
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 158 for details about the variable types and addresses that can be spec-
ified.
Number of Reception
Bytes (Command, Results
Storage Area)
The maximum number of bytes of data to be received is given in the com-
mand. The number of bytes of data received will be stored in the results stor-
age area. Up to 1,984 bytes can be specified.
Timeout Value (Command)
The maximum control time between receiving the receive request and storing
the result. If this set time limit is exceeded, the code for a timeout error will be
set as the results storage response code. The value is set in units of 0.1 s.
The timeout time is unlimited if the value is set to 0.
Received Data (Results
Storage Area)
Stores the received data.
Number of
reception bytes
Results storage area
Timeout
value
Command
code
Socket option
TCP socket number
27 12
Response
code
Command
code
27 12
Number of
reception bytes
Response
code
Received bytes
Received data