Socket Service - Omron NJ Series User Manual

Machine automation controller, cpu unit built-in ethernet/ip port
Hide thumbs Also See for NJ Series:
Table of Contents

Advertisement

NTP server
NTP command
Clock information
NJ/NX-series
Controller
Precautions for Correct Use
An NTP server is required to use automatic clock adjustment.
1-4-8

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 val-
ues of the variables that are specified for the send instruction are sent and the data that was received
for a receive instruction is stored in the specified variables.
The connection is closed with a close instruction, and communications end.
For TCP, you can also read the socket status and received data.
You can use a total of 30 TCP ports and UDP ports. (A total of 60 ports for an NX102 CPU Unit)
NJ/NX-series CPU Unit
TCP/UDP
protocol
Built-in EtherNet/IP port
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Ethernet
Built-in EtherNet/IP port
UNIX computer or
other node with socket
service interfaces
Ethernet
Built-in EtherNet/IP port
TCP/UDP
protocol
ST Programming
SktUDPCreate(...)
SktUDPSend(...)
SktUDPRcv(...)
SktClose(...)
NJ/NX-series CPU Unit
Communications processes are
performed with socket commu-
nications instructions (for UDP).
Open processing
Send processing
Receive processing
Close processing
1 Introduction
1
1-25

Advertisement

Table of Contents
loading

Table of Contents