![Omron CS1W-ETN01 Operation Manuals Download Page 209](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528209.webp)
11-3
Section
Command/Response Reference
199
11-3-9 UDP OPEN REQUEST
Requests processing to open a socket.
Command Block
Command
code
01
27
UDP
socket
number
Results storage area
Local UDP
port number
Response Block
01
27
Command
code
Response
code
Results Storage Format
Results storage
response code
Parameters
The UDP socket number to be opened 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 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 distributed from the
UDP socket to this port. The port number specified as the FINS UDP port num-
ber (default value 9600) cannot be used.
Response Codes
Response code
Description
0000
Normal
0105
Local IP address setting error
0302
CPU Unit error; execution not possible.
1001
Command too large
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).
UDP Socket Number
(Command)
Results Storage Area
(Command)
Local UDP Port Number
(Command)