231
Command/Response Reference Section 11-3
11-3-14 ACTIVE TCP OPEN REQUEST
Requests processing to open a TCP socket. The socket will be connected to
another node.
Command Block
Response Block
Results Storage
Format
Parameters
TCP Socket Number
(Command)
The TCP socket number to be opened specified as 2 bytes between 1 and 8.
Results Storage Area
(Command)
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 216 for details about the variable types and addresses that can be spec-
ified.
Local TCP Port Number
(Command, Results
Storage Area)
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.
Remote IP Address
(Command)
Specify the remote node’s IP address (must be non-zero).
Remote Port Number
(Command)
Specify the remote TCP port number (must be non-zero).
Response Codes
1127
Command
code
Results storage
area
TCP
socket
number
Local
TCP port
number
Remote IP
address
Remote
TCP port
number
1127
Command
code
Response
code
Response
code
Local port
number
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.