9-6
Details on Using the Socket Services
9-6-1
Using the Socket Services
The following table shows the maximum total number of TCP and UDP sockets for the built-in Ether-
Net/IP port.
UDP/TCP
Maximum number of sockets
NX-series CPU Unit NJ-series CPU Unit
NX102 Other than NX102
Unit version 1.00
to 1.02
Unit version 1.03
or later
UDP socket service Total of 60 sockets Total of 30 sockets Total of 16 sockets Total of 30 sockets
TCP socket service
To use these sockets for communications, special ST instructions for sockets are executed to perform
the following processes.
Open processing: This process places the socket in a usable state. This is the first process to use socket
services. With TCP
, open processing is performed until a connection is established.
Close processing: This process ends the use of the socket. With TCP, it closes the connection.
Send processing This process sends data from the socket.
Receive processing This process receives data from the socket.
Clear processing: This process clears the receive buffer to remove data received from the remote node.
9-6-2
Procedure to Use Socket Services
You execute special instructions for sockets in sequence to use the socket services according to the
procedure shown below
.
Use the values of the output variables for each instruction to confirm that each instruction is normally
completed.
9 Socket Service
9-13
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
9-6 Details on Using the Socket Services
9
9-6-1 Using the Socket Services