![Omron Sysmac NY512-1300 User Manual Download Page 262](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451262.webp)
9 Socket Service
9-4
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
You execute socket communications instructions in sequence to perform TCP communications for the
built-in EtherNet/IP port.
Note
Set the socket option as required. Refer to the
NY-series Instructions Reference Manual
(Cat.
No. W560) for the socket option.
TCP Communications Procedure
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
Summary of Contents for Sysmac NY512-1300
Page 459: ......