Omron CS/CJ Series Network Card User Manual


 
228
Command/Response Reference Section 11-3
Results Storage Area Response Codes
11-3-13 PASSIVE TCP OPEN REQUEST
Requests processing to open a TCP socket. The socket will wait to be con-
nected 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).
Timeout Value (Command) The maximum control time between receiving the open request and storing
the result. If this set time limit is exceeded, the code for a timeout error will be
set as the results storage response code. The value is set in units of 0.1 s.
The timeout time is unlimited if the value is set to 0.
Remote IP Address
(Command, Results
Storage Area)
Specify the remote node’s IP address. If all zeroes are set, no remote node is
specified and connection is awaited from any node. If any other value is set,
connection is awaited from the specified remote node. The IP address of the
connected remote node will be stored in the results storage area.
2210 Specified socket is not open.
2211 High traffic at Unit; cannot execute service.
Response code Description
Response code Description
0000 Normal
1027
Command
code
TCP
socket
number
Results storage area Local
TCP
port
number
Timeout
value
Remote IP
address
Remote TCP
port number
1027
Command
code
Response
code
Response
code
Remote IP
address
Remote port
number