![background image](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528216.webp)
11-3
Section
Command/Response Reference
206
11-3-14
ACTIVE TCP OPEN REQUEST
Requests processing to open a TCP socket. The socket will be connected to
another node.
Command Block
11
27
Command
code
Results storage
area
TCP
socket
number
Local
TCP port
number
Remote IP
address
Remote
TCP port
number
Response Block
11
27
Command
code
Response
code
Results Storage Format
Response
code
Local port
number
Parameters
The TCP 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 TCP port number for communications with the socket is specified as 2 bytes
(0 cannot be specified). Do not specify the port number of the FTP server (port
#21). An available TCP port number is automatically assigned if 0 is specified.
Specify the remote node’s IP address (must be non-zero).
Specify the remote TCP port number (must be non-zero).
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
TCP socket number is out of range.
Remote IP address is 0.
Remote TCP 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
The specified socket (connection) is already open or is being
opened.
2211
High traffic at Unit; cannot execute service.
TCP Socket Number
(Command)
Results Storage Area
(Command)
Local TCP Port Number
(Command, Results
Storage Area)
Remote IP Address
(Command)
Remote Port Number
(Command)