Omron CJ1W-ETN21 - 04-2009 Operation Manual page 203

Ethernet units construction of networks
Table of Contents

Advertisement

Command/Response Reference
Note
TCP Socket Number
(Command)
Results Storage Area
(Command)
Local TCP Port Number
(Command, Results
Storage Area)
Remote IP Address
(Command)
Remote Port Number
(Command)
178
1
Bit
Keep-alive specification
Linger specification
0: TCP connection will be closed by sending FIN data to manage closing.
1: TCP connection will be closed immediately by sending RST data.
(1) Starting with unit version 1.5, it is possible to specify the linger option.
(2) If the linger option is not specified and a TCP connection is closed, FIN
data will be sent and then approximately 1 minute will be used to confirm
the transmission and perform other closing management with the remote
node. Therefore, it may not be possible to immediately use TCP sockets
with the same port number.
(3) In contrast, when the linger option is specified, RST data will be sent
when TCP is closed, and closing will be performed immediately. This en-
ables immediately opening TCP sockets with the same port number. Data
that was sent immediately before closing, however, is not checked for
transmission to the remote node. If the linger option is specified, ensure
the arrival of the send data in the application.
The TCP 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 160 for details about the variable types and addresses that can be spec-
ified.
The TCP port number for communications with the socket is specified as 2
bytes. An available TCP port number is automatically assigned if 0 is speci-
fied.
The TCP port numbers allocated to the open socket are stored in the Results
Storage Area.
The following ports used for the Ethernet Unit's communications services can-
not be specified.
• TCP port No. used for FTP server (Default: 20, 21)
• TCP port No. used for DNS server access (Default: 53)
• TCP port No. used for SMTP server access (Default: 25)
• TCP port No. used for POP server access (Default: 110)
• TCP port No. used for HTTP server (Default: 80)
Specify the remote node's IP address (must be non-zero) in hexadecimal.
Specify the remote TCP port number (must be non-zero).
0
0: Keep-alive disabled
1: Keep-alive enabled
Section 7-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents