Socket Service; Specifying Host Names - Omron NY532-5400 User Manual

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

1-4-7

Socket 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.
UNIX computer or
other node with socket
service interfaces
TCP/UDP
protocol
NY-series Controller
TCP/UDP
protocol
Built-in EtherNet/IP port
1-4-8

Specifying Host Names

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
DNS server
IP address
Host name
NY-series
Controller
Precautions for Correct Use
Precautions for Correct Use
A DNS server is required to use the server host names for the DNS client.
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
Ethernet
Built-in EtherNet/IP port
Communications processes are
performed with socket commu-
nications instructions (for UDP).
ST Programming
Open processing
SktUDPCreate(...)
Send processing
SktUDPSend(...)
Receive processing
SktUDPRcv(...)
SktClose(...)
Close processing
Controller
Ethernet
Built-in EtherNet/IP port
1 Introduction
1
1-19

Advertisement

Table of Contents
loading

Table of Contents