![Omron Sysmac NX1P2-10 1 Series User Manual Download Page 358](http://html1.mh-extra.com/html/omron/sysmac-nx1p2-10-1-series/sysmac-nx1p2-10-1-series_user-manual_1633435358.webp)
Furthermore, once a socket is opened in UDP, communications with other remote nodes is possible
without closing the socket.
TCP Communications Procedure
You execute socket communications instructions in sequence to perform TCP communications for the
built-in EtherNet/IP port.
Socket interface
Packets sent by higher layers
Packets sent by the TCP/IP layer
Socket
FIN
ACK
ACK
ACK
SYN ACK
SYN
Send
Close
Connect
Socket
Bind
Listen
Accept
Recv
Client
Server
SktTCPAccept Instruction
• Execution of Socket Functions
Socket(), Bind(), Listen(), and
Accept()
• Timeout monitoring until Connect is
completed
The connection is established by the
normal completion of the SktTCPAc-
cept instruction.
SktTCPRcv Instruction
• Execution of Socket Function Recv()
• Timeout monitoring until data is
received from the remote node
Writing the received data to the variable
is completed by the normal completion
of the SktTCPRcv instruction.
SktTCPConnect Instruction
• Execution of the Socket Function
Connect()
The connection is established by
the normal completion of the
SktTCPConnect instruction.
SktTCPSend Instruction
• Execution of the Socket Function
Send()
The data is stored in the send
buffer by the normal completion of
the SktTCPSend instruction.
Instruction
completed.
Instruction
completed.
Instruction
completed.
Instruction
completed.
SktClose Instruction
• Execution of the Socket Function
Close()
The acknowledgment (ACK) of
FIN from the remote node is
received by the normal comple-
tion of the SktClose instruction.
However, RST (not FIN) is sent if
the Linger Option is specified.
Setopt
SktSetOption Instruction
• Execution of the Socket Function
setsoketopt()
The option for TCP socket is set
by the normal completion of the
SktSetOption instruction. (Note)
SktSetOption Instruction
• Execution of the Socket Function
setsoketopt()
The option for TCP socket is set
by the normal completion of the
SktSetOption instruction. (Note)
Setopt
Note
Set the socket option as required. Refer to the
NJ/NX-series Instructions Reference Manual (Cat. No.
W502)
for the socket option.
9-2-2
Fragmenting of Send Data
The receive buffer for the built-in EtherNet/IP port is a maximum of 9,000 bytes per socket handle. If
any data that is larger than 9,000 bytes is received, the data is discarded.
9 Socket Service
9-4
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......