Omron CS1W-ETN21 UDP Open Request, Results Storage Format, Requests processing to open a socket

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 192
Image 192

Command/Response Reference

Section 7-3

7-3-9 UDP OPEN REQUEST

Requests processing to open a socket.

Command Block

27

01

 

Command code

Results storage area Local UDP

port number

UDP socket number

Socket option

Response Block

27 01

Command Response

code code

Results Storage Format

Results storage response code

Parameters

Socket Option (Command)

UDP Socket Number (Command)

Results Storage Area (Command)

Local UDP Port Number (Command)

Response Codes

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

The UDP socket number to be opened 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 UDP port number for communications with the socket is specified as 2 bytes (0 cannot be specified). Packets received at this port are distributed to the socket specified in the UDP socket number, and send packets are distrib- uted from the UDP socket to this port.

The following ports for the Ethernet Unit's communications services cannot be specified.

UDP port No. used for FINS (Default: 9600)

UDP port No. used for DNS server access (Default: 53)

UDP port No. used for SNTP server access (Default: 123)

Response code

Description

 

 

0000

Normal

 

 

0105

Local IP address setting error

 

 

0302

CPU Unit error; execution not possible.

 

 

1001

Command too large

 

 

167

Page 192
Image 192
Omron CS1W-ETN21 operation manual UDP Open Request, Results Storage Format, Requests processing to open a socket