![background image](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451045.webp)
1-19
1 Introduction
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
1-4
In
tr
od
uc
tion
to
Com
m
u
n
icat
ion
s Services
1
1
-4-7
S
o
cket Service
You can send data to and receive data from any node on Ethernet with the UDP or TCP protocol. To
send/receive data with a socket service, you execute multiple socket communications instructions in
sequence in an ST program to execute the required communications processes. After a connection
with the other communications device is opened with an open instruction, the values of the variables
that are specified for the send instruction are sent and the data that was received for a receive instruc-
tion is stored in the specified variables. The connection is closed with a close instruction, and communi-
cations end. For TCP, you can also read the socket status and received data. You can use a total of 16
TCP ports and UDP ports.
You can directly specify IP addresses, but you can also use the host names instead of the IP addresses
for SNMP managers, or the destinations of socket instructions and CIP communications instructions
(DNS client or hosts settings).
Example: Setting Host Names on the DNS Server
Precautions for Correct Use
Precautions for Correct Use
A DNS server is required to use the server host names for the DNS client.
1-4-7
Socket Service
1-4-8
Specifying Host Names
Ethernet
Close processing
Receive processing
Send processing
Open processing
Communications processes are
performed with socket commu-
nications instructions (for UDP).
Socket
TCP/UDP
protocol
Built-in EtherNet/IP port
NY-series Controller
TCP/UDP
protocol
UNIX computer or
other node with socket
service interfaces
Built-in EtherNet/IP port
ST Programming
IP
UDP
TCP
SktUDPCreate(...)
SktUDPSend(...)
SktUDPRcv(...)
SktClose(...)
Controller
Built-in EtherNet/IP port
NY-series
Controller
DNS server
Ethernet
Host name
IP address
Summary of Contents for Sysmac NY512-1300
Page 459: ......