Question: Machine Automation Controller

Answer:
NJ/NX-series
CPU Unit Built-in EtherNet/IPTM Port
User’s Manual
NX701-1
NX502-1
NX102-1
NX102-90
NX1P2-1
NX1P2-9
NJ501-
NJ301-
NJ101-10
NJ101-90
CPU Unit
W506-E1-37
NOTE


Question: All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or

Answer:
transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or
otherwise, without the prior written permission of OMRON.


Question: No patent liability is assumed with respect to the use of the information contained herein.

Answer:
Moreover, because OMRON is constantly striving to improve its high-quality products, the infor-
mation contained in this manual is subject to change without notice.


Question: Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON as-

Answer:
sumes no responsibility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
Trademarks
• Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan
and other countries for OMRON factory automation products.
• Microsoft, Windows, Excel, Visual Basic, and Microsoft Edge are either registered trademarks or
trademarks of Microsoft Corporation in the United States and other countries.
• EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation
GmbH, Germany.
• ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
• The SD and SDHC logos are trademarks of SD-3C, LLC.
Other company names and product names in this document are the trademarks or registered trade-
marks of their respective companies.
Copyrights
• Microsoft product screen shots used with permission from Microsoft.
• This product incorporates certain third party software. The license and copyright information associ-
ated with this software is available at http://www.fa.omron.co.jp/nj_info_e/.
Introduction
Introduction
Thank you for purchasing an NJ/NX-series CPU Unit.
This manual contains information that is necessary to use the NJ/NX-series CPU Unit. Please read
this manual and make sure you understand the functionality and performance of the NJ/NX-series
CPU Unit before you attempt to use it in a control system.
Keep this manual in a safe place where it will be available for reference during operation.
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical sys-
tems (electrical engineers or the equivalent).
• Personnel in charge of introducing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of installing and maintaining FA systems.
• Personnel in charge of managing FA systems and facilities.
For programming, this manual is intended for personnel who understand the programming language
specifications in international standard IEC 61131-3 or Japanese standard JIS B 3503.
Applicable Products
This manual covers the following products.
• NX-series CPU Units • NJ-series CPU Units
• NX701-1£££ • NJ501-££££
• NX502-1£££ • NJ301-££££
• NX102-1£££ • NJ101-10££
• NX102-90££ • NJ101-90££
• NX1P2-1£££££
• NX1P2-9£££££
Part of the specifications and restrictions for the CPU Units are given in other manuals.
Refer to Relevant Manuals on page 2 and Related Manuals on page 24.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 1
Relevant Manuals
The following table provides the relevant manuals for the NJ/NX-series CPU Units. Read all of the
manuals that are relevant to your system configuration and application before you use the NJ/NX-ser-
ies CPU Unit.
Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac
Studio Version 1 Operation Manual (Cat. No. W504) for information on the Sysmac Studio.
Manual
Basic information
Purpose of use
Hardware
User’s
Manual
NX-series
CPU
Unit
Hardware
User’s
Manual
NX-series
NX502
CPU
Unit
Hardware
User’s
Manual
NX-series
NX102
CPU
Unit
Hardware
User’s
Manual
NX-series
NX1P2
CPU
Unit
Hardware
User’s
Manual
NJ-series
CPU
Unit
Software
User’s
Manual
NJ/NX-series
CPU
Unit
Built-in
I/O
and
Option
Board
User's
Manual
NX-series
NX1P2
CPU
Unit
Instructions
Reference
Manual
NJ/NX-series Motion
Control
User’s
Manual
NJ/NX-series
CPU
Unit
Motion
Control
Instructions
Reference
Manual
NJ/NX-series Built-in
EtherCAT
Port
User´s
Manual
NJ/NX-series
CPU
Unit
Built-in
EtherNet/IP
Port
User’s
Manual
NJ/NX-series
CPU
Unit
User’s
Manual
NJ/NX-series
CPU
Unit
OPC
UA
FINS
User’s
Manual
NX-series
CPU
Unit
User's
Manual
NJ/NX-series
Database
Connection
CPU
Units
User's
Manual
NJ-series
SECS/GEM
CPU
Units
User’s
Manual
NJ-series
Robot
Integrated
CPU
Unit
User's
Manual
NJ-series
NJ
Robotics
CPU
Unit
User’s
Manual
NJ/NY-series
NC
Integrated
Controller
Troubleshooting
Manual
NJ/NX-series
Relevant Manuals
Introduction to NX701
¡
CPU Units
Introduction to NX502
¡
CPU Units
Introduction to NX102 ¡
CPU Units
Introduction to NX1P2
¡
CPU Units
Introduction to NJ-series
¡
Controllers
Setting devices and hard-
ware
Using motion control ¡
Using EtherCAT ¡ ¡ ¡ ¡ ¡ ¡
Using EtherNet/IP ¡
Using robot control for
¡
OMRON robots
2 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Manual
Basic information
Purpose of use
Hardware
User’s
Manual
NX-series
CPU
Unit
Hardware
User’s
Manual
NX-series
NX502
CPU
Unit
Hardware
User’s
Manual
NX-series
NX102
CPU
Unit
Hardware
User’s
Manual
NX-series
NX1P2
CPU
Unit
Hardware
User’s
Manual
NJ-series
CPU
Unit
Software
User’s
Manual
NJ/NX-series
CPU
Unit
Built-in
I/O
and
Option
Board
User's
Manual
NX-series
NX1P2
CPU
Unit
Instructions
Reference
Manual
NJ/NX-series Motion
Control
User’s
Manual
NJ/NX-series
CPU
Unit
Motion
Control
Instructions
Reference
Manual
NJ/NX-series Built-in
EtherCAT
Port
User´s
Manual
NJ/NX-series
CPU
Unit
Built-in
EtherNet/IP
Port
User’s
Manual
NJ/NX-series
CPU
Unit
User’s
Manual
NJ/NX-series
CPU
Unit
OPC
UA
FINS
User’s
Manual
NX-series
CPU
Unit
User's
Manual
NJ/NX-series
Database
Connection
CPU
Units
User's
Manual
NJ-series
SECS/GEM
CPU
Units
User’s
Manual
NJ-series
Robot
Integrated
CPU
Unit
User's
Manual
NJ-series
NJ
Robotics
CPU
Unit
User’s
Manual
NJ/NY-series
NC
Integrated
Controller
Troubleshooting
Manual
NJ/NX-series
Relevant Manuals
Software settings
Using motion control ¡
Using EtherCAT ¡
Using EtherNet/IP ¡
Using OPC UA ¡
Using FINS ¡
Using the database
¡
connection service
Using the GEM Serv- ¡
¡
ices
Using robot control for
¡
OMRON robots
Using robot control by
¡
NJ Robotics function
Using numerical con-
¡
trol
Using the NX1P2 CPU
¡
Unit functions
Writing the user program
Using motion control ¡ ¡
Using EtherCAT ¡
Using EtherNet/IP ¡
Using OPC UA ¡
Using FINS ¡
Using the database
¡
connection service
Using the GEM Serv-
¡
ices
¡ ¡
Using robot control for
¡
OMRON robots
Using robot control by
¡
NJ Robotics function
Using numerical con- ¡
trol
Programming error
¡
processing
Using the NX1P2 CPU
¡
Unit functions
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 3
Manual
Basic information
Purpose of use
Hardware
User’s
Manual
NX-series
CPU
Unit
Hardware
User’s
Manual
NX-series
NX502
CPU
Unit
Hardware
User’s
Manual
NX-series
NX102
CPU
Unit
Hardware
User’s
Manual
NX-series
NX1P2
CPU
Unit
Hardware
User’s
Manual
NJ-series
CPU
Unit
Software
User’s
Manual
NJ/NX-series
CPU
Unit
Built-in
I/O
and
Option
Board
User's
Manual
NX-series
NX1P2
CPU
Unit
Instructions
Reference
Manual
NJ/NX-series Motion
Control
User’s
Manual
NJ/NX-series
CPU
Unit
Motion
Control
Instructions
Reference
Manual
NJ/NX-series Built-in
EtherCAT
Port
User´s
Manual
NJ/NX-series
CPU
Unit
Built-in
EtherNet/IP
Port
User’s
Manual
NJ/NX-series
CPU
Unit
User’s
Manual
NJ/NX-series
CPU
Unit
OPC
UA
FINS
User’s
Manual
NX-series
CPU
Unit
User's
Manual
NJ/NX-series
Database
Connection
CPU
Units
User's
Manual
NJ-series
SECS/GEM
CPU
Units
User’s
Manual
NJ-series
Robot
Integrated
CPU
Unit
User's
Manual
NJ-series
NJ
Robotics
CPU
Unit
User’s
Manual
NJ/NY-series
NC
Integrated
Controller
Troubleshooting
Manual
NJ/NX-series
Relevant Manuals
Testing operation and de-
bugging
Using motion control ¡
Using EtherCAT ¡
Using EtherNet/IP ¡
Using OPC UA ¡
Using FINS ¡
Using the database
¡
connection service
¡
Using the GEM Serv-
¡
ices
Using robot control for
¡
OMRON robots
Using robot control by
¡
NJ Robotics function
Using numerical con- ¡
trol
Using the NX1P2 CPU
¡
Unit functions
Learning about error
management and correc- r r r r r r r ¡
tions*1
Maintenance
Using motion control ¡
¡ ¡ ¡ ¡ ¡
Using EtherCAT ¡
Using EtherNet/IP ¡
*1. Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503) for the error management concepts and the error items. However,
refer to the manuals that are indicated with triangles for details on errors corresponding to the products with the manuals that are indi-
cated with triangles.
4 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Manual Structure
Page Structure
The following page structure is used in this manual.
4 Installation and Wiring
NJ-series CPU Unit Hardware User’s Manual (W500) 4-9
4-3
Mounting
Units
4
4-3-1
Connecting
Controller
Components
Manual Structure
Level 1 heading
Level 2 heading
Level 2 heading 4-3 Mounting Units Level 3 heading
Gives the current
Level 3 heading 4-3-1 Connecting Controller Components headings.
The Units that make up an NJ-series Controller can be connected simply by pressing the Units together
and locking the sliders by moving them toward the back of the Units. The End Cover is connected in the
same way to the Unit on the far right side of the Controller.
A step in a procedure 1 Join the Units so that the connectors fit exactly.
Indicates a procedure. Hook Hook holes
Connector
Page tab
2 The yellow sliders at the top and bottom of each Unit lock the Units together. Move the sliders Gives the number
toward the back of the Units as shown below until they click into place. of the main section.
Move the sliders toward the back
until they lock into place.
Lock
Release
Slider
Special information PPrreeccaauuttiioonnss ffoorr CCoorrrreecctt UUssee
The sliders on the tops and bottoms of the Power Supply Unit, CPU Unit, I/O Units, Special I/O
Icons indicate Units, and CPU Bus Units must be completely locked (until they click into place) after connecting
the adjacent Unit connectors.
precautions, additional
information, or reference
information.
Manual name
This illustration is provided only as a sample. It may not literally appear in this manual.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5
Manual Structure
Special Information
Special information in this manual is classified as follows:
Precautions for Safe Use
Precautions on what to do and what not to do to ensure safe usage of the product.
Precautions for Correct Use
Precautions on what to do and what not to do to ensure proper operation and performance.
Additional Information
Additional information to read as required.
This information is provided to increase understanding or make operation easier.
Version Information
Information on differences in specifications and functionality for Controller with different unit versions
and for different versions of the Sysmac Studio is given.
Precaution on Terminology
In this manual, "download" refers to transferring data from the Sysmac Studio to the physical Control-
ler and "upload" refers to transferring data from the physical Controller to the Sysmac Studio.
For the Sysmac Studio, "synchronization" is used to both "upload" and "download" data. Here,
"synchronize" means to automatically compare the data for the Sysmac Studio on the computer with
the data in the physical Controller and transfer the data in the direction that is specified by the user.
6 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Sections in this Manual
Sections in this Manual
1 10
2 11
1 Introduction 10 FTP Server
3 12
Installing Ethernet
2 11 FTP Client
Networks
4 13
System-defined Variables
Automatic Clock
3 Related to the Built-in Eth- 12
Adjustment
erNet/IP Port 5 14
Sysmac Studio Settings
4 for the Built-in Ether- 13 SNMP Agent
6 15
Net/IP Port
Communications Per-
7 A
5 TCP/IP Functions 14 formance and Commu-
nications Load
8 I
6 Tag Data Link Functions 15 Troubleshooting
9
CIP Message
77 A Appendices
Communications
8 Socket Service I Index
Modbus TCP Master
9
Function
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 7
CONTENTS
CONTENTS
Introduction..............................................................................................................1
Intended Audience...........................................................................................................................................1
Applicable Products.........................................................................................................................................1
Relevant Manuals.....................................................................................................2
Manual Structure......................................................................................................5
Page Structure.................................................................................................................................................5
Special Information..........................................................................................................................................6
Precaution on Terminology..............................................................................................................................6
Sections in this Manual...........................................................................................7
Terms and Conditions Agreement........................................................................15
Warranty, Limitations of Liability....................................................................................................................15
Application Considerations............................................................................................................................16
Disclaimers....................................................................................................................................................16
Statement of security responsibilities for assumed use cases and against threats.......................................17
Safety Precautions.................................................................................................18
Precautions for Safe Use ......................................................................................19
Precautions for Correct Use.................................................................................20
Regulations and Standards ..................................................................................21
Software Licenses and Copyrights................................................................................................................21
Versions..................................................................................................................22
Unit Versions of CPU Units and Sysmac Studio Versions.............................................................................22
Unit Versions of CPU Units and Peripheral Tool Versions.............................................................................22
Related Manuals.....................................................................................................24
Revision History.....................................................................................................28
Section 1 Introduction
1-1 Introduction............................................................................................................................1-2
1-1-1 EtherNet/IP Features..................................................................................................................1-2
1-1-2 Features of Built-in EtherNet/IP Port on NJ/NX-series CPU Units..............................................1-2
1-2 System Configuration and Configuration Devices.............................................................1-6
1-2-1 Devices Required to Construct a Network..................................................................................1-6
1-2-2 Support Software Required to Construct a Network...................................................................1-7
1-3 Built-in EtherNet/IP Port........................................................................................................1-9
1-3-1 Specifications..............................................................................................................................1-9
1-3-2 Part Names and Functions........................................................................................................1-13
1-4 Introduction to Communications Services........................................................................1-20
1-4-1 CIP (Common Industrial Protocol) Communications Services..................................................1-20
1-4-2 IP Routing.................................................................................................................................1-22
1-4-3 Packet Filter..............................................................................................................................1-23
1-4-4 Packet Filter (Simple) ...............................................................................................................1-24
8 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
CONTENTS
1-4-5 BOOTP Client...........................................................................................................................1-24
1-4-6 DHCP Client..............................................................................................................................1-25
1-4-7 FTP Server................................................................................................................................1-25
1-4-8 FTP Client.................................................................................................................................1-25
1-4-9 Automatic Clock Adjustment.....................................................................................................1-26
1-4-10 Socket Service..........................................................................................................................1-26
1-4-11 Secure Socket Services............................................................................................................1-27
1-4-12 Specifying Host Names.............................................................................................................1-28
1-4-13 SNMP Agent.............................................................................................................................1-28
1-4-14 TCP/UDP Message Service......................................................................................................1-29
1-5 EtherNet/IP Communications Procedures.........................................................................1-30
Section 2 Installing Ethernet Networks
2-1 Selecting the Network Devices.............................................................................................2-2
2-1-1 Recommended Network Devices................................................................................................2-2
2-1-2 Ethernet Switch Types................................................................................................................2-3
2-1-3 Ethernet Switch Functions..........................................................................................................2-3
2-1-4 Precautions for Ethernet Switch Selection..................................................................................2-4
2-2 Network Installation...............................................................................................................2-7
2-2-1 Basic Installation Precautions.....................................................................................................2-7
2-2-2 Recommended Network Devices................................................................................................2-7
2-2-3 Precautions When Laying Twisted-pair Cable............................................................................2-7
2-2-4 Precautions When Installing and Connecting Ethernet Switches.............................................2-11
2-3 Connecting to the Network.................................................................................................2-13
2-3-1 Ethernet Connectors.................................................................................................................2-13
2-3-2 Connecting the Cable................................................................................................................2-14
Section 3 System-defined Variables Related to the Built-in Ether-
Net/IP Port
3-1 System-defined Variables Related to the Built-in EtherNet/IP Port...................................3-2
3-2 System-defined Variables.....................................................................................................3-3
3-2-1 EtherNet/IP Function Module, Category Name: _EIP.................................................................3-3
3-2-2 Meanings of Error Status Bits...................................................................................................3-37
3-3 Specifications for Individual System-defined Variables..................................................3-39
3-3-1 EtherNet/IP Function Module, Category Name: _EIP...............................................................3-39
Section 4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-1 TCP/IP Settings Display........................................................................................................4-2
4-2 LINK Settings Display..........................................................................................................4-12
4-3 FTP Settings Display...........................................................................................................4-14
4-4 NTP Settings Display...........................................................................................................4-15
4-5 SNMP Settings Display........................................................................................................4-17
4-6 SNMP Trap Settings Display...............................................................................................4-19
4-7 CIP Settings Display............................................................................................................4-21
Section 5 TCP/IP Functions
5-1 Determining IP Addresses....................................................................................................5-2
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 9
CONTENTS
5-1-1 IP Addresses...............................................................................................................................5-2
5-1-2 Built-in EtherNet/IP Port IP Address Settings.............................................................................5-4
5-1-3 Private and Global Addresses...................................................................................................5-11
5-2 Default States of TCP/UDP Ports and the Changing Procedure.....................................5-15
5-3 Testing Communications....................................................................................................5-18
5-3-1 PING Command........................................................................................................................5-18
5-3-2 Using the PING Command........................................................................................................5-18
5-3-3 Host Computer Operation.........................................................................................................5-18
5-4 Packet Filter..........................................................................................................................5-20
5-4-1 Introduction to Packet Filter......................................................................................................5-20
5-4-2 Packet Filter Specifications.......................................................................................................5-21
5-4-3 Packet Filter Settings................................................................................................................5-21
5-4-4 Case Where Packet Filter Is Used............................................................................................5-21
5-4-5 Settings for Devices That Access the Controller.......................................................................5-33
Section 6 Tag Data Link Functions
6-1 Introduction to Tag Data Links.............................................................................................6-2
6-1-1 Tag Data Links............................................................................................................................6-2
6-1-2 Data Link Data Areas..................................................................................................................6-3
6-1-3 Tag Data Link Functions and Specifications...............................................................................6-6
6-1-4 Overview of Operation................................................................................................................6-7
6-1-5 Starting and Stopping Tag Data Links.......................................................................................6-10
6-1-6 Controller Status.......................................................................................................................6-10
6-1-7 Concurrency of Tag Data Link Data..........................................................................................6-14
6-2 Setting Tag Data Links........................................................................................................6-21
6-2-1 Starting the Network Configurator.............................................................................................6-21
6-2-2 Tag Data Link Setting Procedure..............................................................................................6-23
6-2-3 Registering Devices..................................................................................................................6-23
6-2-4 Creating Tags and Tag Sets......................................................................................................6-25
6-2-5 Connection Settings..................................................................................................................6-38
6-2-6 Creating Connections Using the Wizard...................................................................................6-48
6-2-7 Creating Connections by Dragging and Dropping Devices.......................................................6-52
6-2-8 Connecting the Network Configurator to the Network...............................................................6-54
6-2-9 Downloading Tag Data Link Parameters...................................................................................6-62
6-2-10 Uploading Tag Data Link Parameters.......................................................................................6-65
6-2-11 Verifying Tag Data Link Parameters..........................................................................................6-68
6-2-12 Starting and Stopping Tag Data Links.......................................................................................6-72
6-2-13 Clearing the Device Parameters...............................................................................................6-75
6-2-14 Saving the Network Configuration File......................................................................................6-77
6-2-15 Reading a Network Configuration File......................................................................................6-78
6-2-16 Checking Connections..............................................................................................................6-80
6-2-17 Changing Devices.....................................................................................................................6-81
6-2-18 Displaying Device Status..........................................................................................................6-83
6-3 Ladder Programming for Tag Data Links..........................................................................6-85
6-3-1 Ladder Programming for Tag Data Links..................................................................................6-85
6-3-2 Status Flags Related to Tag Data Links....................................................................................6-89
6-4 Tag Data Links with Other Models.....................................................................................6-91
Section 7 CIP Message Communications
7-1 Overview of the CIP Message Communications Service...................................................7-3
7-1-1 Overview of the CIP Message Communications Service............................................................7-3
7-1-2 Message Communications Service Specifications......................................................................7-3
7-2 Client Function of CIP Message Communications.............................................................7-4
7-2-1 Overview.....................................................................................................................................7-4
7-2-2 CIP Communications Instructions...............................................................................................7-4
10 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
CONTENTS
7-2-3 Using CIP Communications Instructions.....................................................................................7-5
7-2-4 Route Path..................................................................................................................................7-6
7-2-5 Request Path (IOI)....................................................................................................................7-16
7-2-6 Service Data and Response Data.............................................................................................7-20
7-2-7 Sample Programming for CIP Connectionless (UCMM) Message Communications................7-22
7-2-8 Sample Programming for CIP Connection (Class 3) Message Communications.....................7-27
7-2-9 Operation Timing.......................................................................................................................7-34
7-2-10 Response Codes.......................................................................................................................7-35
7-3 Server Function of CIP Message Communications..........................................................7-39
7-3-1 CIP Message Structure for Accessing CIP Objects..................................................................7-40
7-3-2 CIP Message Structure for Accessing Variables.......................................................................7-41
7-4 Specifying Request Path.....................................................................................................7-42
7-4-1 Examples of CIP Object Specifications.....................................................................................7-42
7-4-2 Examples of Variable Specifications.........................................................................................7-43
7-4-3 Logical Segment.......................................................................................................................7-43
7-4-4 Data Segment...........................................................................................................................7-43
7-4-5 Specifying Variable Names in Request Paths...........................................................................7-44
7-5 CIP Object Services.............................................................................................................7-48
7-5-1 CIP Objects Sent to the Built-in EtherNet/IP Port.....................................................................7-48
7-5-2 Identity Object (Class ID: 01 hex).............................................................................................7-48
7-5-3 NX Configuration Object (Class ID: 74 hex)..............................................................................7-53
7-5-4 TCP/IP Interface Object (Class ID: F5 hex)..............................................................................7-74
7-5-5 Ethernet Link Object (Class ID: F6 hex)....................................................................................7-77
7-5-6 Controller Object (Class ID: C4 hex).........................................................................................7-83
7-6 Read and Write Services for Variables..............................................................................7-85
7-6-1 Read Service for Variables........................................................................................................7-85
7-6-2 Write Service for Variables........................................................................................................7-86
7-7 Variable Data Types.............................................................................................................7-89
7-7-1 Data Type Codes......................................................................................................................7-89
7-7-2 Common Format.......................................................................................................................7-89
7-7-3 Elementary Data Types.............................................................................................................7-90
7-7-4 Derived Data Types...................................................................................................................7-91
Section 8 Socket Service
8-1 Basic Knowledge on Socket Communications...................................................................8-2
8-1-1 Sockets.......................................................................................................................................8-2
8-1-2 Port Numbers for Socket Services..............................................................................................8-2
8-2 Basic Knowledge on Protocols............................................................................................8-3
8-2-1 Differences between TCP and UDP............................................................................................8-3
8-2-2 Fragmenting of Send Data..........................................................................................................8-4
8-2-3 Data Receive Processing............................................................................................................8-6
8-2-4 Broadcasting...............................................................................................................................8-9
8-3 Overview of Built-in EtherNet/IP Port Socket Services....................................................8-10
8-3-1 Overview...................................................................................................................................8-10
8-3-2 Procedure..................................................................................................................................8-10
8-4 Settings Required for the Socket Services.......................................................................8-12
8-5 Socket Service Instructions................................................................................................8-13
8-6 Details on Using the Socket Services................................................................................8-14
8-6-1 Using the Socket Services........................................................................................................8-14
8-6-2 Procedure to Use Socket Services...........................................................................................8-14
8-6-3 Timing Chart for Output Variables Used in Communications....................................................8-16
8-6-4 UDP Sample Programming.......................................................................................................8-18
8-6-5 TCP Sample Programming.......................................................................................................8-23
8-7 Precautions in Using Socket Services...............................................................................8-31
8-7-1 Precautions for UDP and TCP Socket Services.......................................................................8-31
8-7-2 Precautions for UDP Socket Services.......................................................................................8-31
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 11
CONTENTS
8-7-3 Precautions for TCP Socket Services.......................................................................................8-31
8-8 TCP/UDP Message Service.................................................................................................8-33
8-8-1 Outline of TCP/UDP Message Service.....................................................................................8-33
8-8-2 Specifications of TCP/UDP Message Service...........................................................................8-33
8-8-3 Settings Required for TCP/UDP Message Service...................................................................8-33
8-8-4 Command Format Specifications..............................................................................................8-34
8-9 Secure Socket Services......................................................................................................8-36
8-9-1 Overview of Secure Socket Communications...........................................................................8-36
8-9-2 System Configuration of Secure Socket Services.....................................................................8-38
8-9-3 Procedure to Use Secure Socket Setting Function of the Sysmac Studio................................8-39
8-9-4 Executing Instructions for Secure Socket Communications......................................................8-47
8-9-5 Troubleshooting Errors in Secure Socket Communications......................................................8-51
8-9-6 Secure Socket Communications Logging.................................................................................8-51
8-9-7 Handling of Secure Socket Communications Setting Information.............................................8-54
Section 9 Modbus TCP Master Function
9-1 Overview of Modbus TCP Master Function.........................................................................9-2
9-2 Modbus TCP Master Function Details.................................................................................9-3
9-2-1 Modbus TCP Instruction Type.....................................................................................................9-3
9-2-2 Modbus TCP Instruction Function...............................................................................................9-3
9-3 Modbus TCP Master Function Procedure...........................................................................9-4
Section 10 FTP Server
10-1 Overview and Specifications..............................................................................................10-2
10-1-1 Overview...................................................................................................................................10-2
10-1-2 Specifications............................................................................................................................10-3
10-2 FTP Server Function Details...............................................................................................10-4
10-2-1 Supported Files.........................................................................................................................10-4
10-2-2 Connecting to the FTP Server...................................................................................................10-4
10-3 Using the FTP Server Function..........................................................................................10-7
10-3-1 Procedure..................................................................................................................................10-7
10-3-2 List of Settings Required for the FTP Server Function..............................................................10-7
10-4 FTP Server Application Example........................................................................................10-9
10-5 Using FTP Commands.......................................................................................................10-11
10-5-1 Table of Commands................................................................................................................10-11
10-5-2 Using the Commands..............................................................................................................10-11
10-6 Using SD Memory Card Operations.................................................................................10-18
10-6-1 SD Memory Card Types..........................................................................................................10-18
10-6-2 File Types................................................................................................................................10-18
10-6-3 Initializing SD Memory Cards..................................................................................................10-19
10-6-4 Format of Variable Data..........................................................................................................10-19
10-7 Application Example from a Host Computer...................................................................10-20
Section 11 FTP Client
11-1 Using the FTP Client to Transfer Files...............................................................................11-2
11-1-1 Transferring Files......................................................................................................................11-2
11-1-2 Connectable FTP Servers.........................................................................................................11-3
11-1-3 File Transfer Options.................................................................................................................11-3
11-1-4 Other Functions.........................................................................................................................11-4
11-2 FTP Client Communications Instructions.........................................................................11-5
12 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
CONTENTS
11-2-1 Functions of the FTP Client Communications Instructions.......................................................11-5
11-2-2 Restrictions on the FTP Client Communications Instructions...................................................11-8
11-3 FTP Client Application Example.........................................................................................11-9
Section 12 Automatic Clock Adjustment
12-1 Automatic Clock Adjustment..............................................................................................12-2
12-1-1 Overview...................................................................................................................................12-2
12-1-2 Specifications............................................................................................................................12-2
12-2 Procedure to Use the Automatic Clock Adjustment Function........................................12-4
12-2-1 Procedure..................................................................................................................................12-4
12-2-2 Settings Required for Automatic Clock Adjustment..................................................................12-4
Section 13 SNMP Agent
13-1 SNMP Agent.........................................................................................................................13-2
13-1-1 Overview...................................................................................................................................13-2
13-1-2 Specifications............................................................................................................................13-3
13-1-3 SNMP Messages......................................................................................................................13-3
13-1-4 MIB Specifications.....................................................................................................................13-4
13-2 Procedure to Use the SNMP Agent..................................................................................13-28
13-2-1 Procedures..............................................................................................................................13-28
13-2-2 Settings Required for the SNMP Agent...................................................................................13-28
Section 14 Communications Performance and Communications
Load
14-1 Communications System....................................................................................................14-2
14-1-1 Tag Data Link Communications Method...................................................................................14-2
14-1-2 Calculating the Number of Connections....................................................................................14-4
14-1-3 Packet Interval (RPI) Accuracy.................................................................................................14-5
14-2 Adjusting the Communications Load................................................................................14-7
14-2-1 Checking Bandwidth Usage for Tag Data Links........................................................................14-8
14-2-2 Tag Data Link Bandwidth Usage and RPI.................................................................................14-9
14-2-3 Adjusting Device Bandwidth Usage........................................................................................14-10
14-2-4 Changing the RPI....................................................................................................................14-11
14-2-5 RPI Setting Examples.............................................................................................................14-16
14-3 I/O Response Time in Tag Data Links..............................................................................14-23
14-3-1 Timing of Data Transmissions.................................................................................................14-23
14-3-2 Built-in EtherNet/IP Port Data Processing Time......................................................................14-24
14-3-3 Relationship between Task Periods and Packet Intervals (RPIs)...........................................14-26
14-3-4 Maximum Tag Data Link I/O Response Time..........................................................................14-27
14-4 Message Service Transmission Delay.............................................................................14-30
Section 15 Troubleshooting
15-1 Overview of Troubleshooting.............................................................................................15-2
15-2 Checking Status with the Network Configurator..............................................................15-3
15-2-1 The Network Configurator's Device Monitor Function...............................................................15-3
15-2-2 Connection Status Codes and Troubleshooting......................................................................15-11
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 13
CONTENTS
Appendices
A-1 Functional Comparison of EtherNet/IP Ports on NJ/NX-series CPU Units and
Other Series...........................................................................................................................A-3
A-2 Use the Sysmac Studio to Set the Tag Data Links (EtherNet/IP Connections)...............A-5
A-2-1 Overview of the Tag Data Links (EtherNet/IP Connections) Settings with the Sysmac Studio..A-5
A-2-2 Procedure to Make the EtherNet/IP Connection Settings with the Sysmac Studio....................A-6
A-2-3 EtherNet/IP Connection Settings...............................................................................................A-7
A-2-4 Making the EtherNet/IP Connection Settings with the Sysmac Studio.....................................A-11
A-2-5 Checking Communications Status with the Sysmac Studio and Troubleshooting...................A-32
A-2-6 Troubleshooting........................................................................................................................A-36
A-3 EDS File Management........................................................................................................A-42
A-3-1 Installing EDS Files..................................................................................................................A-42
A-3-2 Creating EDS Files...................................................................................................................A-43
A-3-3 Deleting EDS Files...................................................................................................................A-43
A-3-4 Saving EDS Files.....................................................................................................................A-44
A-3-5 Searching EDS Files................................................................................................................A-44
A-3-6 Displaying EDS File Properties................................................................................................A-45
A-3-7 Creating EDS Index Files.........................................................................................................A-45
A-4 Precautions for Using the Network Configurator on Windows XP, Windows Vis-
ta, or Windows 7 or Higher................................................................................................A-46
A-4-1 Changing Windows Firewall Settings.......................................................................................A-46
A-5 Variable Memory Allocation Methods...............................................................................A-49
A-5-1 Variable Memory Allocation Rules............................................................................................A-49
A-5-2 Important Case Examples........................................................................................................A-58
A-6 Precautions When Accessing External Outputs in CPU Units.......................................A-62
A-7 TCP State Transitions.........................................................................................................A-63
A-8 Example of NX Unit Setting Using NX Configuration Object Service............................A-65
A-8-1 Changing the Unit Operation Settings for Singe NX Unit.........................................................A-65
A-8-2 Changing the Unit Operation Settings for Multiple NX Units....................................................A-66
A-8-3 Initializing the Unit Operation Settings for Singe NX Unit........................................................A-66
A-9 Tag Data Link Settings with Generic Devices..................................................................A-67
A-9-1 Creating Generic Devices........................................................................................................A-67
A-9-2 Creating a Tag or Tag Set for Generic Device..........................................................................A-68
A-10 Procedure to Use Secure Socket Service with Secure Socket Configuration
Commands..........................................................................................................................A-72
A-10-1 Settings for Starting Secure Socket Services..........................................................................A-72
A-10-2 Procedure for Replacing the CPU Unit....................................................................................A-74
A-11 Secure Socket Configuration Commands........................................................................A-79
A-11-1 Operating Environment for Secure Socket Configuration Commands.....................................A-79
A-11-2 Location and Starting Procedure of Secure Socket Configuration Commands.......................A-80
A-11-3 Command and Option Formats................................................................................................A-80
A-11-4 Common Specifications to All Commands...............................................................................A-81
A-11-5 Command Specifications.........................................................................................................A-83
A-12 TCP/ UDP Port Numbers Used for the Built-in EtherNet/IP Port....................................A-95
A-13 Version Information..........................................................................................................A-100
Index
14 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Terms and Conditions Agreement
Terms and Conditions Agreement
Warranty, Limitations of Liability
Warranties
 Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and work-
manship for a period of twelve months from the date of sale by Omron (or such other period ex-
pressed in writing by Omron). Omron disclaims all other warranties, express or implied.
 Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF
THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE
PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based
on infringement by the Products or otherwise of any intellectual property right.
 Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally
shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-com-
plying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal
to the purchase price of the non-complying Product; provided that in no event shall Omron be re-
sponsible for warranty, repair, indemnity or any other claims or expenses regarding the Products
unless Omron’s analysis confirms that the Products were properly handled, stored, installed and
maintained and not subject to contamination, abuse, misuse or inappropriate modification. Return
of any Products by Buyer must be approved in writing by Omron before shipment. Omron Compa-
nies shall not be liable for the suitability or unsuitability or the results from the use of Products in
combination with any electrical or electronic components, circuits, system assemblies or any other
materials or substances or environments. Any advice, recommendations or information given orally
or in writing, are not to be construed as an amendment or addition to the above warranty.
See https://www.omron.com/global/ or contact your Omron representative for published informa-
tion.
Limitation on Liability; Etc
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR CON-
SEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 15
Terms and Conditions Agreement
WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT,
WARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the Product on
which liability is asserted.
Application Considerations
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or regulations
which apply to the combination of the Product in the Buyer’s application or use of the Product. At Buy-
er’s request, Omron will provide applicable third party certification documents identifying ratings and
limitations of use which apply to the Product. This information by itself is not sufficient for a complete
determination of the suitability of the Product in combination with the end product, machine, system, or
other application or use. Buyer shall be solely responsible for determining appropriateness of the par-
ticular Product with respect to Buyer’s application, product or system. Buyer shall take application re-
sponsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY OR IN LARGE QUANTITIES WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE
HAS BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIP-
MENT OR SYSTEM.
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable Product, or
any consequence thereof.
Disclaimers
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a guide for
the user in determining suitability and does not constitute a warranty. It may represent the result of
Omron’s test conditions, and the user must correlate it to actual application requirements. Actual per-
formance is subject to the Omron’s Warranty and Limitations of Liability.
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements and oth-
er reasons. It is our practice to change part numbers when published ratings or features are changed,
or when significant construction changes are made. However, some specifications of the Product may
16 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Terms and Conditions Agreement
be changed without any notice. When in doubt, special part numbers may be assigned to fix or estab-
lish key specifications for your application. Please consult with your Omron’s representative at any
time to confirm actual specifications of purchased Product.
Errors and Omissions
Information presented by Omron Companies has been checked and is believed to be accurate; how-
ever, no responsibility is assumed for clerical, typographical or proofreading errors or omissions.
Statement of security responsibilities for assumed use cases and
against threats
OMRON SHALL NOT BE RESPONSIBLE AND/OR LIABLE FOR ANY LOSS, DAMAGE, OR EX-
PENSES DIRECTLY OR INDIRECTLY RESULTING FROM THE INFECTION OF OMRON PROD-
UCTS, ANY SOFTWARE INSTALLED THEREON OR ANY COMPUTER EQUIPMENT, COMPUTER
PROGRAMS, NETWORKS, DATABASES OR OTHER PROPRIETARY MATERIAL CONNECTED
THERETO BY DISTRIBUTED DENIAL OF SERVICE ATTACK, COMPUTER VIRUSES, OTHER
TECHNOLOGICALLY HARMFUL MATERIAL AND/OR UNAUTHORIZED ACCESS.
It shall be the users sole responsibility to determine and use adequate measures and checkpoints to
satisfy the users particular requirements for (i) antivirus protection, (ii) data input and output, (iii) main-
taining a means for reconstruction of lost data, (iv) preventing Omron Products and/or software instal-
led thereon from being infected with computer viruses and (v) protecting Omron Products from unau-
thorized access.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 17
Safety Precautions
Safety Precautions
Refer to the following manuals for safety precautions.
• NX-series CPU Unit Hardware User's Manual (Cat. No. W535)
• NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629)
• NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593)
• NX-series NX1P2 CPU Unit Hardware User's Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
18 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Precautions for Safe Use
Precautions for Safe Use
Refer to the following manuals for precautions for safe use.
• NX-series CPU Unit Hardware User's Manual (Cat. No. W535)
• NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629)
• NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593)
• NX-series NX1P2 CPU Unit Hardware User's Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 19
Precautions for Correct Use
Precautions for Correct Use
Refer to the following manuals for precautions for correct use.
• NX-series CPU Unit Hardware User's Manual (Cat. No. W535)
• NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629)
• NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593)
• NX-series NX1P2 CPU Unit Hardware User's Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
20 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Regulations and Standards
Regulations and Standards
Refer to the following manuals for regulations and standards.
• NX-series CPU Unit Hardware User's Manual (Cat. No. W535)
• NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629)
• NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593)
• NX-series NX1P2 CPU Unit Hardware User's Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
Software Licenses and Copyrights
The products supporting secure socket services incorporate the following third party software. The li-
cense and copyright information associated with this software is available at http://www.fa.omron.co.jp/
nj_info_e/.
• OpenSSL
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit
(http://www.openssl.org/).
Copyright (C) 1998-2019 The OpenSSL Project. All rights reserved.
Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) All rights reserved.
This product includes cryptographic software written by Eric Young
(eay@cryptsoft.com)
Refer to 8-9 Secure Socket Services on page 8-36 for models that support secure socket services.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 21
Versions
Versions
Hardware revisions and unit versions are used to manage the hardware and software in NJ/NX-series
Units and EtherCAT slaves. The hardware revision or unit version is updated each time there is a
change in hardware or software specifications. Even when two Units or EtherCAT slaves have the
same model number, they will have functional or performance differences if they have different hard-
ware revisions or unit versions.
Refer to the following manuals for versions.
• NX-series CPU Unit Hardware User's Manual (Cat. No. W535)
• NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629)
• NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593)
• NX-series NX1P2 CPU Unit Hardware User's Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
Unit Versions of CPU Units and Sysmac Studio Versions
The functions that are supported depend on the unit version of the NJ/NX-series CPU Unit. The ver-
sion of Sysmac Studio that supports the functions that were added for an upgrade is required to use
those functions.
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the relationship be-
tween the unit versions of CPU Units and the Sysmac Studio versions, and for the functions that are
supported by each unit version.
Unit Versions of CPU Units and Peripheral Tool Versions
When you set tag data links for the built-in EtherNet/IP port on an NJ/NX-series CPU Unit, use the
versions of the Network Configurator and the Sysmac Studio that are given in the following table.
OK: Supported, ---: Not supported
CPU Unit Network Configurator for EtherNet/IP Sysmac Studio
Ver. Ver. Ver. Ver.
Ver.3 Ver. Ver. Ver. Ver. Ver. Ver. Ver.


Question: 3x 3.74 1.09 1.51

Answer:
Ver- Ver. .50 3.53 3.59 3.61 3.64 1.10 1.13 1.17 Ver.
Model or or or or
sion 3.40 or to to to to to to to 1.23
low- high- low- high-


Question: 51 3.58 3.60 3.63 3.66 1.12 1.16 1.22

Answer:
er er er er
NJ501 Ver. --- OK OK OK OK OK OK OK --- OK OK OK OK OK


Answer: to


Answer: NJ301 Ver. --- --- OK OK OK OK OK OK --- OK OK OK OK OK


Answer: to


Answer:
NJ501 Ver. --- --- --- OK OK OK OK OK --- OK OK OK OK OK
NJ301 1.03
or lat-
er
22 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Versions
CPU Unit Network Configurator for EtherNet/IP Sysmac Studio
Ver. Ver. Ver. Ver.
Ver.3 Ver. Ver. Ver. Ver. Ver. Ver. Ver.


Question: 3x 3.74 1.09 1.51

Answer:
Ver- Ver. .50 3.53 3.59 3.61 3.64 1.10 1.13 1.17 Ver.
Model or or or or
sion 3.40 or to to to to to to to 1.23
low- high- low- high-


Question: 51 3.58 3.60 3.63 3.66 1.12 1.16 1.22

Answer:
er er er er
NJ101 Ver. --- --- --- --- OK OK OK OK --- --- OK OK OK OK
NX701 1.10
or lat-
er
NX1P2 Ver. --- --- --- --- --- OK OK OK --- --- --- OK OK*1 OK


Answer:
or lat-
er
NX102 Ver. --- --- --- --- --- --- OK OK --- --- --- --- OK OK


Answer:
or lat-
er
NX502 Ver. --- --- --- --- --- --- --- OK --- --- --- --- --- OK


Answer:
or lat-
er
*1. Use an NX1P2-9B£££££ CPU Unit with Sysmac Studio version 1.30 or higher.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 23
Related Manuals
Related Manuals
The followings are the manuals related to this manual. Use these manuals for reference.
Manual name Cat. No. Model numbers Application Description
NX-series CPU Unit W535 NX701-££££ Learning the basic An introduction to the entire NX701 system
Hardware User's Manual specifications of the is provided along with the following infor-
NX701 CPU Units, mation on the CPU Unit.
including introductory • Features and system configuration
information, design- • Introduction
ing, installation, and • Part names and functions
maintenance. • General specifications
Mainly hardware in- • Installation and wiring
formation is provided. • Maintenance and inspection
NX-series W629 NX502-££££ Learning the basic An introduction to the entire NX502 system
NX502 CPU Unit specifications of the is provided along with the following infor-
Hardware NX502 CPU Units, mation on the CPU Unit.
User’s Manual including introductory • Features and system configuration
information, design- • Introduction
ing, installation, and • Part names and functions
maintenance. • General specifications
Mainly hardware in- • Installation and wiring
formation is provided. • Maintenance and inspection
NX-series W593 NX102-££££ Learning the basic An introduction to the entire NX102 system
NX102 CPU Unit specifications of the is provided along with the following infor-
Hardware NX102 CPU Units, mation on the CPU Unit.
User’s Manual including introductory • Features and system configuration
information, design- • Introduction
ing, installation, and • Part names and functions
maintenance. • General specifications
Mainly hardware in- • Installation and wiring
formation is provided. • Maintenance and inspection
NX-series W578 NX1P2-££££ Learning the basic An introduction to the entire NX1P2 system
NX1P2 CPU Unit specifications of the is provided along with the following infor-
Hardware NX1P2 CPU Units, mation on the CPU Unit.
User’s Manual including introductory • Features and system configuration
information, design- • Introduction
ing, installation, and • Part names and functions
maintenance. • General specifications
Mainly hardware in- • Installation and wiring
formation is provided. • Maintenance and inspection
NJ-series CPU Unit W500 NJ501-££££ Learning the basic An introduction to the entire NJ-series sys-
Hardware User's Manual NJ301-££££ specifications of the tem is provided along with the following in-
NJ101-££££ NJ-series CPU Units, formation on the CPU Unit.
including introductory • Features and system configuration
information, design- • Introduction
ing, installation, and • Part names and functions
maintenance. • General specifications
Mainly hardware in- • Installation and wiring
formation is provided. • Maintenance and inspection
24 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Related Manuals
Manual name Cat. No. Model numbers Application Description
NJ/NX-series CPU Unit W501 NX701-££££ Learning how to pro- The following information is provided on a
Software User’s Manual NX502-££££ gram and set up an Controller built with an NJ/NX-series CPU
NX102-££££ NJ/NX-series CPU Unit.
NX1P2-££££ Unit. • CPU Unit operation
NJ501-££££ Mainly software infor- • CPU Unit features
NJ301-££££ mation is provided. • Initial settings
NJ101-££££ • Programming based on IEC 61131-3
language specifications
NX-series NX1P2 CPU Unit W579 NX1P2-££££ Learning about the Of the functions for an NX1P2 CPU Unit,
Built-in I/O and Option Board details of functions the following information is provided.
User’s Manual only for an NX-series • Built-in I/O
NX1P2 CPU Unit and • Serial Communications Option Boards
an introduction of • Analog I/O Option Boards
functions for an An introduction of following functions for an
NJ/NX-series CPU NJ/NX-series CPU Unit is also provided.
Unit. • Motion control functions
• EtherNet/IP communications functions
• EtherCAT communications functions
NJ/NX-series Instructions W502 NX701-££££ Learning detailed The instructions in the instruction set (IEC
Reference Manual NX502-££££ specifications on the 61131-3 specifications) are described.
NX102-££££ basic instructions of
NX1P2-££££ an NJ/NX-series
NJ501-££££ CPU Unit.
NJ301-££££
NJ101-££££
NJ/NX-series CPU Unit W507 NX701-££££ Learning about mo- The settings and operation of the CPU Unit
Motion Control User’s Man- NX502-££££ tion control settings and programming concepts for motion con-
ual NX102-££££ and programming trol are described.
NX1P2-££££ concepts.
NJ501-££££
NJ301-££££
NJ101-££££
NJ/NX-series W508 NX701-££££ Learning about the The motion control instructions are descri-
Motion Control Instructions NX502-££££ specifications of the bed.
Reference Manual NX102-££££ motion control in-
NX1P2-££££ structions.
NJ501-££££
NJ301-££££
NJ101-££££
NJ/NX-series W505 NX701-££££ Using the built-in Information on the built-in EtherCAT port is
CPU Unit NX502-££££ EtherCAT port on an provided.
Built-in EtherCAT® Port NX102-££££ NJ/NX-series CPU This manual provides an introduction and
User’s Manual NX1P2-££££ Unit. provides information on the configuration,
NJ501-££££ features, and setup.
NJ301-££££
NJ101-££££
NJ/NX-series W506 NX701-££££ Using the built-in Information on the built-in EtherNet/IP port
CPU Unit NX502-££££ EtherNet/IP port on is provided.
Built-in EtherNet/IP™ Port NX102-££££ an NJ/NX-series Information is provided on the basic setup,
User’s Manual NX1P2-££££ CPU Unit. tag data links, and other features.
NJ501-££££
NJ301-££££
NJ101-££££
NJ/NX-series W588 NX701-££££ Using the OPC UA. Describes the OPC UA.
CPU Unit NX502-££££
OPC UA NX102-££££
User’s Manual NJ501-1£00
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 25
Related Manuals
Manual name Cat. No. Model numbers Application Description
NX-series W596 NX701-££20 Using the FINS func- Describes the FINS function of an NX-ser-
CPU Unit NX502-££££ tion of an NX-series ies CPU Unit.
FINS Function NX102-££££ CPU Unit.
User’s Manual
NJ/NX-series W527 NX701-££20 Using the database Describes the database connection serv-
Database Connection CPU NX502-££££ connection service ice.
Units NX102-££20 with NJ/NX-series
User’s Manual NJ501-££20 Controllers.
NJ101-££20
NJ-series W528 NJ501-1340 Using the GEM Serv- Provides information on the GEM Services.
SECS/GEM CPU Units ices with NJ-series
User’s Manual Controllers.
NJ-series O037 NJ501-R£££ Using the NJ-series Describes the settings and operation of the
Robot Integrated CPU Unit Robot Integrated CPU Unit and programming concepts for
User’s Manual CPU Unit. OMRON robot control.
Sysmac Studio W595 SYSMAC-SE2£££ Learning about the Describes the operating procedures of the
Robot Integrated System SYSMAC- operating procedures Sysmac Studio for Robot Integrated CPU
Building Function with Robot SE200D-64 and functions of the Unit.
Integrated CPU Unit Opera- Sysmac Studio to
tion Manual configure Robot Inte-
grated System using
Robot Integrated
CPU Unit.
Sysmac Studio W621 SYSMAC-SE2£££ Learning about the Describes the operating procedures of the
Robot Integrated System SYSMAC- operating procedures Sysmac Studio for IPC Application Control-
Building Function with IPC SE200D-64 and functions of the ler.
Application Controller Opera- Sysmac Studio to
tion Manual configure Robot Inte-
grated System using
IPC Application Con-
troller.
Sysmac Studio W618 SYSMAC-SE2£££ Learning about an Describes an outline, execution proce-
3D Simulation Function Op- SYSMAC-SA4££ outline of the 3D sim- dures, and operating procedures for the 3D
eration Manual £-64 ulation function of the simulation function of the Sysmac Studio.
Sysmac Studio and
how to use the func-
tion.
NJ-series W539 NJ501-4£££ Controlling robots Describes the functionality to control ro-
NJ Robotics CPU Unit NJ501-R£££ with NJ-series CPU bots.
User’s Manual Units.
NJ/NY-series O030 NJ501-5300 Performing numerical Describes the functionality to perform the
NC Integrated Controller NY532-5400 control with NJ/NY- numerical control.
User’s Manual series Controllers.
NJ/NY-series O031 NJ501-5300 Learning about the The G code/M code instructions are descri-
G code NY532-5400 specifications of the bed.
Instructions Reference Man- G code/M code in-
ual structions.
NJ/NX-series W503 NX701-££££ Learning about the Concepts on managing errors that may be
Troubleshooting Manual NX502-££££ errors that may be detected in an NJ/NX-series Controller and
NX102-££££ detected in an information on individual errors are descri-
NX1P2-££££ NJ/NX-series Con- bed.
NJ501-££££ troller.
NJ301-££££
NJ101-££££
Sysmac Studio Version 1 W504 SYSMAC Learning about the Describes the operating procedures of the
Operation Manual -SE2£££ operating procedures Sysmac Studio.
and functions of the
Sysmac Studio.
26 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Related Manuals
Manual name Cat. No. Model numbers Application Description
CNC Operator O032 SYSMAC Learning an introduc- An introduction of the CNC Operator, in-
Operation Manual -RTNC0£££D tion of the CNC Op- stallation procedures, basic operations,
erator and how to connection operations, and operating pro-
use it. cedures for main functions are described.
NX-series Z930 NX-SL££££ Learning how to use Describes the hardware, setup methods,
Safety Control Unit NX-SI££££ NX-series Safety and functions of the NX-series Safety Con-
User's Manual NX-SO££££ Control Units. trol Units.
Sysmac Library W625 SYSMAC-XR020 Learning how to per- Describes the specifications and proce-
User's Manual form Pub/Sub mes- dures to use the function block of MQTT
for MQTT Communications sage communica- communications library.
Library tions through MQTT
broker.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 27
Revision History
Revision History
A manual revision code appears as a suffix to the catalog number on the front and back covers of the
manual.
Cat. No. W506-E1-37
Revision code
Revision
Date Revised content
code
01 July 2011 Original production
02 March 2012 • Added information on the NJ301-££££.
• Added A-8 Accesing Variables with CIP Message Communications.
• Added information on the functions supported by unit version 1.01 of the
CPU Units.
• Corrected mistakes.
03 May 2012 • Added information on the functions supported by unit version 1.02 of the
CPU Units.
• Corrected mistakes.
04 August 2012 • Added information on the functions supported by unit version 1.03 of the
CPU Units.
• Corrected mistakes.
05 February 2013 • Added information on the functions supported by unit version 1.04 of the
CPU Units.
• Corrected mistakes.
06 April 2013 • Corrected mistakes.
07 June 2013 • Added information on the functions supported by unit version 1.06 of the
CPU Units.
08 December 2013 • Added information on the functions supported by unit version 1.08 of the
CPU Units.
• Corrected mistakes.
09 July 2014 • Added information on the functions supported by unit version 1.09 of the
CPU Units.
• Corrected mistakes.
10 January 2015 • Added information on the functions supported by unit version 1.10 of the
CPU Units.
• Corrected mistakes.
11 April 2015 • Added information on the NX701-££££.
• Added information on the NJ101-££££.
• Corrected mistakes.
12 October 2015 • Added information on the hardware revision.
• Corrected mistakes.
13 April 2016 • Added information on the functions supported by unit version 1.11 of the
CPU Units.
• Corrected mistakes.
28 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Revision History
Revision
Date Revised content
code
14 July 2016 • Added information on the functions supported by unit version 1.12 of the
CPU Units.
• Corrected mistakes.
15 October 2016 • Added information on the NX1P2-££££££.
• Added information on the functions supported by unit version 1.13 of the
CPU Units.
• Corrected mistakes.
16 April 2017 • Added information on the functions supported by unit version 1.14 of the
CPU Units.
• Corrected mistakes.
17 October 2017 • Corrected mistakes.
18 January 2018 • Added information on the functions supported by unit version 1.17 of the
CPU Units.
• Corrected mistakes.
19 April 2018 • Added information on the NX102-££££.
• Added information on the functions supported by unit version 1.30 of the
CPU Units.
• Consolidated descriptions related to event codes and errors into the
NJ/NX-series Troubleshooting Manual.
• Corrected mistakes.
20 July 2018 • Added information on the functions supported by unit version 1.31 of the
NX102-££££.
21 April 2019 • Added information on the functions supported by unit version 1.32 of
NX102-££££.
• Added information on the functions supported by unit version 1.21 of the
NX1P2-££££££, NJ501-1£00, NJ301-££££, and NJ101-££00.
• Corrected mistakes.
22 July 2019 • Added information on the functions supported by unit version 1.21 of the
NX701-££££, NJ501-4£00, NJ501-4£10, NJ501-1340 and
NJ501-5300.
• Corrected mistakes.
23 October 2019 • Added information on the NX1P2-9B££££.
• Corrected mistakes.
24 August 2020 • Made changes accompanying the addition of NJ501-R£££.
• Corrected mistakes.
25 July 2021 • Added information on the functions supported by unit version 1.24 of the
NX701-1££0.
• Added information on the functions supported by unit version 1.36 of the
NX102-1£20.
• Added information on the functions supported by unit version 1.45 of the
NX1P2-££00, NJ301-££00, and NJ101-££00.
• Added information on the functions supported by unit version 1.25 of the
NJ501-1£20, NJ501-1340, NJ501-4£££, NJ501-5300, and
NJ101-1£20.
• Added information on the functions supported by unit version 1.43 of the
NX102-££00, NJ501-1£00, and NJ501-R£00.
• Made changes on the information of the SD Memory Card.
• Corrected mistakes.
26 October 2021 • Added information related to the hardware revision A of the NX701-£££
£.
• Corrected mistakes.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 29
Revision History
Revision
Date Revised content
code
27 November 2021 • Added information related to the hardware revision D of the NJ-series
CPU Unit.
28 April 2022 • Added information to Terms and Conditions Agreement.
29 June 2022 • Added information related to the hardware revision B of the NX701-£££
£.
30 November 2022 • Added information on the functions supported by unit version 1.60 of the
NJ-series, NX102, and NX1P2 CPU Units.
• Added information on the functions supported by unit version 1.32 of the
NX701 CPU Units.
31 January 2023 • Corrected mistakes.
32 April 2023 • Added information on the NX502-1£££.
33 May 2023 • Corrected mistakes.
34 October 2023 • Made changes accompanying the release of unit version 1.64 of NX502
CPU Units.
35 April 2024 • Added information on the NX502-1700 and NX502-1600.
36 October 2024 • Made changes on specifications of the CJ-series EtherNet/IP Unit CJ1W-
EIP21S.
37 February 2025 • Added information on the functions supported by unit version 1.68 of the
NX102 CPU Units.
30 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
1
Introduction
1-1 Introduction....................................................................................................1-2
1-1-1 EtherNet/IP Features.......................................................................................1-2
1-1-2 Features of Built-in EtherNet/IP Port on NJ/NX-series CPU Units..................1-2
1-2 System Configuration and Configuration Devices.....................................1-6
1-2-1 Devices Required to Construct a Network......................................................1-6
1-2-2 Support Software Required to Construct a Network.......................................1-7
1-3 Built-in EtherNet/IP Port................................................................................1-9
1-3-1 Specifications..................................................................................................1-9
1-3-2 Part Names and Functions............................................................................1-13
1-4 Introduction to Communications Services................................................1-20
1-4-1 CIP (Common Industrial Protocol) Communications Services......................1-20
1-4-2 IP Routing......................................................................................................1-22
1-4-3 Packet Filter..................................................................................................1-23
1-4-4 Packet Filter (Simple) ...................................................................................1-24
1-4-5 BOOTP Client................................................................................................1-24
1-4-6 DHCP Client..................................................................................................1-25
1-4-7 FTP Server....................................................................................................1-25
1-4-8 FTP Client.....................................................................................................1-25
1-4-9 Automatic Clock Adjustment.........................................................................1-26
1-4-10 Socket Service..............................................................................................1-26
1-4-11 Secure Socket Services................................................................................1-27
1-4-12 Specifying Host Names.................................................................................1-28
1-4-13 SNMP Agent..................................................................................................1-28
1-4-14 TCP/UDP Message Service..........................................................................1-29
1-5 EtherNet/IP Communications Procedures.................................................1-30
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 1-1
1
1 Introduction
1-1 Introduction
1-1-1 EtherNet/IP Features
EtherNet/IP is an industrial multi-vendor network that uses Ethernet.
The EtherNet/IP specifications are open standards managed by the ODVA (Open DeviceNet Vendor
Association), just like DeviceNet.
EtherNet/IP is not just a network between Controllers. It is also used as a field network. Because
EtherNet/IP uses standard Ethernet technology, various general-purpose Ethernet devices can be
used in the network.
Sysmac Studio Ethernet switch
(Support Software)
Twisted-pair cable
Built-in EtherNet/IP Built-in EtherNet/IP Built-in EtherNet/IP
100 m
Ethernet (LAN) port port on NJ/NX -series port on NJ/NX -series port on NJ/NX -series
max.
Controller Controller Controller
EtherNet/IP System Configuration Example
 High-speed, High-capacity Data Exchange through Tag Data Links
The EtherNet/IP protocol supports implicit communications, which allows cyclic communications
(called tag data links in this manual) with EtherNet/IP devices.
 Tag Data Link (Cyclic Communications) Cycle Time
Tag data links (cyclic communications) operate at the cyclic period specified for each application,
regardless of the number of nodes. Data is exchanged over the network at the refresh cycle set for
each connection, so the communications refresh cycle will not increase even if the number of no-
des is increased, i.e., the concurrency of the connection's data is maintained.
Because the refresh cycle can be set for each connection, each application can communicate at its
ideal refresh cycle. For example, interprocess interlocks can be transferred at high speed, while the
production commands and the status monitor information are transferred at low speed.
1-1-2 Features of Built-in EtherNet/IP Port on NJ/NX-series CPU Units
 Tag Data Links
Cyclic communications between Controllers or between a Controller and other devices are possible
on an EtherNet/IP network.
High-speed data exchange can be performed through tag data links.
1-2 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
1 Introduction
 CIP Message Communications
You can send CIP commands to devices on the EtherNet/IP network when required by executing
CIP communications instructions in a program.
As a result, it is possible to send and receive data with the devices on the EtherNet/IP network.
 BOOTP Client
If the built-in EtherNet/IP port on an NJ/NX-series CPU Unit is set in the BOOTP settings, the
BOOTP client operates when the Controller power is turned ON, and the IP address is obtained
from the BOOTP server.
It is possible to set all of the IP addresses of multiple built-in EtherNet/IP ports at the same time.
 DHCP Client
If the built-in EtherNet/IP port on an NX502 CPU Unit is set in the DHCP settings, the DHCP client
operates when the Controller power is turned ON, and the IP address is obtained from the DHCP
server.
It is possible to set all of the IP addresses of multiple built-in EtherNet/IP ports at the same time.
 FTP Server for File Transfers to and from Host Computers
An FTP server is built into the Controller. You can use it to read and write data within the Controller
as files from workstations and computers with FTP clients.
The FTP server enables the transfer of large amounts of data from a client without any additional
ladder programming.
 FTP Client for File Transfers to and from Host Computers
An FTP client is built into the Controller, so you can read and write files on workstations and com-
puters that have an FTP server from the Controller.
You can use the FTP client communications instructions to transfer one or more files between the
Controller and an FTP server.
 NTP Client for Automatic Controller Clock Adjustment
The clocks built into Controllers connected to Ethernet can be automatically adjusted to the time of
the clock in the NTP server. If all of the clocks in the system are automatically adjusted to the same
time, time stamps can be used to analyze production histories.
*1. A separate NTP server is necessary to automatically adjust the Controller clocks.
 Socket Services
Socket services can be used to send and receive data between general-purpose applications and
Controllers.
Through the communications services with sockets, you can send and receive data to and from re-
mote nodes, i.e., between the host computer and Controllers or between Controllers.
You can execute socket communications instructions in order in a program to execute communica-
tions processes with the socket services.
There are two socket services, the UDP socket service and TCP socket service.
In addition, secure socket services which perform encrypted communications using TLS are availa-
ble.
Secure socket service instructions can be used for secure socket communications with external
cloud or on-premises servers.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 1-3
1-1
Introduction
1
1-1-2
Features
of
Built-in
EtherNet/IP
Port
on
NJ/NX-series
CPU
Units
1 Introduction
In addition, the MQTT communications library can be used for secure socket communications with
a MQTT broker .
Additional Information
Function Blocks (FBs) for MQTT communications are available for the secure socket communi-
cations between a CPU Unit and a MQTT broker.
Refer to the Sysmac Library User’s Manual for MQTT Communications Library (Cat. No. W625)
for more information on FBs for MQTT communications.
 DNS Client for Specifying Host Names
When you specify an NTP server, SNMP manager, or the destination of socket instructions or CIP
communications instructions, you can use the host name, as well as its IP address (DNS client or
hosts settings).
This will help identify the IP address automatically even after the IP addresses of relevant servers
are changed due to system revisions.
*1. A separate DNS server is necessary when you use host names with the DNS client.
*2. The DNS server is specified directly using its IP address.
 Network Management with an SNMP Manager
The SNMP agent passes internal status information from the built-in EtherNet/IP port to network
management software that uses an SNMP manager.
*1. A separate SNMP manager is necessary for network management.
 Complete Troubleshooting Functions
A variety of functions are provided to quickly identify and handle errors.
• Self-diagnosis at startup
• Event log that records the time of occurrence and other error details
 Two EtherNet/IP Communications Ports as a Standard Feature, Equipped
with IP Routing Function (Only with the NX701, NX502, and NX102 CPU
Units)
These CPU Units are equipped with two EtherNet/IP ports for EtherNet/IP communications as
standard.
This feature allows you to separate the information network from the control network. In addition,
the built-in EtherNet/IP ports support the IP routing function to send IP packets to devices on other
IP network segments.
*1. In order to use the function, you must appropriately set the IP router table and default gateway settings for
each device on the network according to your network configuration. For details on the settings, refer to
4-1 TCP/IP Settings Display on page 4-2.
 CIP Safety on EtherNet/IP Compatible (Only with the NX502 and NX102
CPU Units)
Combined with the NX-SL5£££ Safety Control Unit, you can build a system which uses CIP
Safety on EtherNet/IP communications in networks between Controllers and field networks. Safety
communications by CIP Safety is enabled with devices that support CIP Safety on EtherNet/IP and
other Safety CPU Units.
1-4 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
1 Introduction
Version Information
• For NX502 CPU Units, CIP Safety communications via the built-in EtherNet/IP port can be
performed only when an NX502 CPU Unit with unit version 1.64 or later and an NX-SL5£££
Safety Control Unit are used together.
• To perform CIP Safety communications in the NX502 CPU Unit of unit version earlier than