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

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 193
Image 193

Command/Response Reference

Section 7-3

 

 

 

 

Response code

Description

 

 

 

 

1002

Command too small

 

 

 

 

1100

UDP socket number is out of range.

 

 

Local UDP port number is 0.

 

 

 

 

1101

The variable type for the results storage area is out of range.

 

 

 

 

1103

Non-zero bit address specified for the results storage area.

 

 

 

 

220F

Specified socket is already open or is being closed.

 

 

 

 

2211

High traffic at Unit; cannot execute service.

 

 

 

Results Storage Area Response Codes

 

 

 

 

 

Response code

Description

 

 

 

 

0000

Normal

 

 

 

 

003E

Internal buffer cannot be reserved due to high receive load

 

 

(ENOBUFS).

 

 

 

 

0049

Duplicate UDP port number (EADDRINUSE).

 

 

 

7-3-10 UDP RECEIVE REQUEST

Requests that data be sent from a UDP socket.

Command Block

27

02

 

 

 

Command

Results storage area Number

Timeout

code

UDP socket number

of reception

value

 

 

bytes

 

 

 

 

 

 

 

Socket option

 

 

Response Block

27 02

Command Response

code code

Results Storage Format

 

 

 

Received bytes

Response

Source IP address Source UDP

Number of

Received data

code

port number

reception

 

 

 

bytes

 

Parameters

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

UDP Socket Number (Command)

Results Storage Area (Command)

The UDP 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.

168

Page 193
Image 193
Omron CS1W-ETN21 operation manual UDP Receive Request, Requests that data be sent from a UDP socket, Enobufs