Omron CS1W-ETN21 TCP Receive Request, Requests that data be sent from a TCP socket

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 202
Image 202

Command/Response Reference

Section 7-3

7-3-15 TCP RECEIVE REQUEST

Requests that data be sent from a TCP socket.

Command Block

27

12

 

 

 

Command

Results storage area

Number of

Timeout

code

TCP socket number

reception bytes

value

 

 

 

 

Socket option

Response Block

27 12

Command Response

code code

Results Storage Format

Received bytes

Parameters

Socket Option (Command)

TCP Socket Number (Command)

Results Storage Area (Command)

Number of Reception

Bytes (Command, Results

Storage Area)

Timeout Value (Command)

Received Data (Results Storage Area)

Response

Number of

Received data

code

reception bytes

 

The socket option specified as 1 byte. The setting is not valid for this com- mand. Set to 0.

The TCP socket number to receive data specified as 1 byte 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 158 for details about the variable types and addresses that can be spec- ified.

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.

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.

Stores the received data.

177

Page 202
Image 202
Omron CS1W-ETN21 operation manual TCP Receive Request, Requests that data be sent from a TCP socket