Omron NJ501-1300, NJ501-1400, NJ501-1500 User Manual

Page 1
Machine Automation Controller NJ-series
CPU Unit Built-in EtherNet/IP Port
User’s Manual
NJ501-1300 NJ501-1400 NJ501-1500
CPU Unit
W506-E1-01
Page 2
OMRON, 2011
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
Page 3
Introduction
Thank you for purchasing an NJ-series CPU Unit. This manual contains information that is necessary to use the NJ-series CPU Unit. Please read this manual and make sure you understand the functionality and performance of the NJ-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 (an electrical engineer 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 B3503.

Introduction

Applicable Products
This manual covers the following products.
NJ-series CPU Units
NJ501-1300
NJ501-1400
NJ501-1500
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1
Page 4

Relevant Manuals

Relevant Manuals
There are three manuals that provide basic information on the NJ-series CPU Units: the NJ-series CPU Unit Hardware User’s Manual, the NJ-series CPU Unit Software User’s Manual (this manual), and the NJ-series Instructions Reference Manual. Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac Stu- dio Version 1 Operation Manual (Cat. No. W504) for information on the Sysmac Studio.
Other manuals are necessary for specific system configurations and applications. Read all of the manuals that are relevant to your system configuration and application to make the most of the NJ-series CPU Unit.
Basic information
NJ-series User’s Manuals
Introduction to NJ-series Controllers
Setting devices and hardware
Using motion control
Using EtherCAT
Using EtherNet/IP
Using CJ-series Units
Software settings
Using motion control
Using EtherCAT
Using EtherNet/IP
Programming
Using motion control
Using EtherCAT
Using CJ-series Units
Programming error processing
Testing operation and debugging
Using motion control
Using EtherCAT
Using EtherNet/IP
Troubleshooting and managing errors in an NJ-series Controller
NJ-series CPU Unit
Hardware User´s Manual
Use the relevant manuals for references according to any error that occurs.
NJ-series CPU Unit
Software User´s Manual
NJ-series Instructions
Reference Manual
NJ-series CPU Unit Motion
Control User´s Manual
NJ-series CPU Unit Built-in
NJ-series Motion Control
EtherCAT Port User´s Manual
Instructions Reference Manual
NJ-series CPU Unit Built-in
EtherNet/IP Port User´s Manual
NJ-series Troubleshooting Manual
CJ-series Special Unit Operation
Manuals for NJ-series CPU Unit
Maintenance
Using EtherCAT
Using EtherNet/IP
Using CJ-series Units
2
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 5
Manual Configuration
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500)
Section Description
Section 1 Introduction
Section 2 System Configuration
Section 3 Configuration Units
Section 4 Installation and Wiring
Section 5 Troubleshooting
Section 6 Inspection and Maintenance
Appendices
This section provides an introduction to the NJ-series Controllers and their features, and gives the NJ-series Controller specifications.
This section describes the system configuration used for NJ-series Controllers.
This section describes the parts and functions of the configuration devices in the NJ- series Controller configuration, including the CPU Unit and Configuration Units.
This section describes where and how to install the CPU Unit and Configuration Units and how to wire them.
This section describes the event codes, error confirmation methods, and corrections for errors that can occur.
This section describes the contents of periodic inspections, the service life of the Bat- tery and Power Supply Units, and replacement methods for the Battery and Power Supply Units.
The appendices provide the specifications of the Basic I/O Units, Unit dimensions, load short-circuit protection detection, line disconnection detection, and measures for EMC Directives.

Manual Configuration

NJ-series CPU Unit Software User’s Manual (Cat. No. W501)
Section Description
Section 1 Introduction
Section 2 CPU Unit Operation
Section 3 I/O Ports, Slave Configuration, and Unit Configuration
Section 4 Controller Setup
Section 5 Designing Tasks
Section 6 Programming
Section 7 Simulation, Transferring Projects to the Physical CPU Unit, and Opera- tion
Section 8 CPU Unit Status
Section 9 CPU Unit Functions
Section 10 Communications Setup
Section 11 Example of Actual Application Pro- cedures
Section 12 Troubleshooting
Appendices
This section provides an introduction to the NJ-series Controllers and their features, and gives the NJ-series Controller specifications.
This section describes the variables and control systems of the CPU Unit and CPU Unit status.
This section describes how to use I/O ports, how to create the slave configuration and unit configuration and how to assign functions.
This section describes the initial settings of the function modules.
This section describes the task system and types of tasks.
This section describes programming, including the programming languages and the variables and instructions that are used in programming.
This section describes simulation of Controller operation and how to use the results of simulation.
This section describes CPU Unit status.
This section describes the functionality provided by the CPU Unit.
This section describes how to go online with the CPU Unit and how to connect to other devices.
This section describes the procedures that are used to actually operate an NJ-series Controller.
This section describes the event codes, error confirmation methods, and corrections for errors that can occur.
The appendices provide the CPU Unit specifications, task execution times, system- defined variable lists, data attribute lists, CJ-series Unit memory information, CJ- series Unit memory allocation methods, and data type conversion information.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3
Page 6
Manual Configuration
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506) (This Manual)
Section Description
Section 1 Introduction
Section 2 Installing Ethernet Networks
Section 3 System-defined Variables Related to the Built-in EtherNet/IP Port
Section 4 Determining IP Addresses
Section 5 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Section 6 Testing Communications
Section 7 Tag Data Link Functions
Section 8 Message Communications
Section 9 Socket Service
Section 10 FTP Server
Section 11 Automatic Clock Adjustment
Section 12 SNMP Agent
Section 13 Communications Performance and Communications Load
Section 14 Troubleshooting
Appendices
This section provides an overview and the specifications of the built-in EtherNet/IP port on an NJ-series Controller. It introduces EtherNet/IP communications and describes the system configuration and operating procedures.
This section describes the Ethernet network configuration devices, network installa- tion, and cable connection methods.
This section describes the system-defined variables that are related to the built-in EtherNet/IP port.
This section describes how to set IP addresses for built-in EtherNet/IP ports.
This section describes the settings that are required for EtherNet/IP communications.
This section describes how to perform communications test with EtherNet/IP nodes to confirm that the built-in EtherNet/IP port is set correctly.
This section introduces tag data link communications and describes the settings that are required to use tag data links.
This section describes how to use CIP message communications for devices on the EtherNet/IP network, e.g., to read and write data.
This section describes how to use socket communications to send and receive data with TCP/UDP.
This section describes how to use the FTP server to download and upload files in the SD Memory Card to and from FTP clients.
This section describes how to automatically get clock information from an NTP server to update the clock information in the CPU Unit.
This section describes how to use the SNMP to manage the built-in EtherNet/IP port as an SNMP agent.
This section describes tag data links communications, adjustment of the communica- tions load, and communications time.
This section describes how to use event codes and network status to confirm errors and corrections for them.
The appendices provide a functional comparison of EtherNet/IP between NJ-series CPU Units and other series, and describe EDS file management, Windows firewall settings for connections from computers, and details on memory used for CJ-series Units.
4
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 7
Manual Configuration
Sysmac Studio Version 1 Operation Manual (Cat. No. W504)
Section Description
Section 1 Introduction
Section 2 Installation and Uninstallation
Section 3 System Design
Section 4 Programming
Section 5 Online Connections to a Controller
Section 6 Debugging
Section 7 Other Functions
Section 8 Reusing Programming
Section 9 Support Software Provided with the Sysmac Studio
Section 10 Troubleshooting
Appendices
This section provides an overview and lists the specifications of the Sysmac Studio and describes its features and components.
This section describes how to install and uninstall the Sysmac Studio.
This section describes the basic concepts for designing an NJ-series System with the Sysmac Studio and the basic operating procedures.
This section describes how to create programs with the Sysmac Studio.
This section describes how to go online with a Controller.
This section describes how to debug the programs online on the Controller or debug it offline with the Simulator.
This section describes Sysmac Studio functions other than system design functions.
This section describes how to reuse the programs that you create with the Sysmac Studio.
This section describes the Support Software that is provided with the Sysmac Studio.
This section describes the error messages that are displayed when you check a pro- gram on the Sysmac Studio and how to correct those errors.
The appendices describe the following: Driver Installation for Direct USB Cable Connection Specifying One of Multiple Ethernet Interface Cards Online Help Simulation Instructions
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
5
Page 8
Manual Structure

Manual Structure

Page Structure
The following page structure is used in this manual.
Level 2 heading
Level 3 heading
A step in a procedure
Indicates a procedure.
Special information
Icons indicate precautions, additional information, or reference information.
4 Installation and Wiring
4-3 Mounting Units
4-3-1 Connecting Controller Components
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.
1 Join the Units so that the connectors fit exactly.
2 The yellow sliders at the top and bottom of each Unit lock the Units together. Move the sliders
toward the back of the Units as shown below until they click into place.
Precautions for Correct UsePrecautions for Correct Use
The sliders on the tops and bottoms of the Power Supply Unit, CPU Unit, I/O Units, Special I/O Units, and CPU Bus Units must be completely locked (until they click into place) after connecting the adjacent Unit connectors.
Hook
Connector
Move the sliders toward the back until they lock into place.
Hook holes
Release
Lock
Slider
Level 1 heading
vel 2 heading
Le Level 3 heading
Gives the current headings.
3-4 oM
u
gnitn
U n i
t
s
4
4 3-
-
1
noC n e
tc
i
n g oC
n t
r
o l
rel C o m p
no ne
t
s
Page tab
Gives the number of the main section.
Manual name
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.
Note References are provided to more detailed or related information.
6
NJ-series CPU Unit Hardware User’s Manual (W500)
4-9
This illustration is provided only as a sample. It may not literally appear in this manual.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 9
Precaution on Terminology
In this manual, “download” refers to transferring data from the Sysmac Studio to the physical Controller 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.
Manual Structure
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
7
Page 10
Manual Structure
8
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 11

Sections in this Manual

Sections in this Manual
1
2
3
4
5
Introduction
Installing Ethernet Networks
System-defined Variables Related to the Built-in EtherNet/IP Port
Determining IP Addresses
Sysmac Studio Settings for the Built-in EtherNet/IP Port
10
11
12
13
14
FTP Server
Automatic Clock Adjustment
SNMP Agent
Communications Per- formance and Commu- nications Load
Troubleshooting
1
2
3
4
5
6A
7I
10
11
12
13
14
6
7
7
8
9
Testing Communications
Tag Data Link Functions
Message Communications
Socket Service
A
I
8
Appendices
9
Index
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
9
Page 12
Sections in this Manual
10
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 13

CONTENTS

Introduction............................................................................................................... 1
Relevant Manuals...................................................................................................... 2
Manual Configuration............................................................................................... 3
Manual Structure ...................................................................................................... 6
Sections in this Manual............................................................................................ 9
Read and Understand this Manual........................................................................ 17
Safety Precautions ................................................................................................. 21
Precautions for Safe Use....................................................................................... 23
CONTENTS
Precautions for Correct Use.................................................................................. 24
Regulations and Standards................................................................................... 25
Unit Versions........................................................................................................... 27
Related Manuals ..................................................................................................... 30
Revision History ..................................................................................................... 32
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-series CPU Units ................................................... 1-3
1-2 System Configuration and Configuration Devices............................................................... 1-5
1-2-1 Devices Required to Construct a Network.................................................................................. 1-5
1-2-2 Support Software Required to Construct a Network................................................................... 1-6
1-3 Built-in EtherNet/IP Port................................. ... .... ... ... ... .......................................... ... ............ 1-7
1-3-1 Specifications.............................................................................................................................. 1-7
1-3-2 Part Names and Functions ......................................................................................................... 1-9
1-4 Introduction to Communications Services ......................................................................... 1-11
1-4-1 CIP (Common Industrial Protocol) Communications Services ................................................. 1-11
1-4-2 BOOTP Client........................................................................................................................... 1-12
1-4-3 FTP Server ............................................................................................................................... 1-13
1-4-4 Automatic Clock Adjustment..................................................................................................... 1-13
1-4-5 Socket Service.......................................................................................................................... 1-14
1-4-6 Specifying Host Names ............................................................................................................ 1-14
1-4-7 SNMP Agent............................................................................................................................. 1-15
1-5 EtherNet/IP Communications Procedures ................................................ .... ... ... ... ... .... ... ... 1-16
1-5-1 Outline ...................................................................................................................................... 1-16
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
11
Page 14
CONTENTS
Section 2 Installing Ethernet Networks
2-1 Selecting the Network Devices............................................................................................... 2-2
2-1-1 Recommended Network Devices................................................................................................2-2
2-1-2 Network Devices Manufactured by OMRON...............................................................................2-3
2-1-3 Ethernet Switch Types ................................................................................................................2-3
2-1-4 Ethernet Switch Functions ..........................................................................................................2-3
2-1-5 Precautions for Ethernet Switch Selection..................................................................................2-4
2-2 Network Installation................................................................................................................. 2-6
2-2-1 Basic Installation Precautions .....................................................................................................2-6
2-2-2 Recommended Network Devices................................................................................................2-6
2-2-3 Precautions .................................................................................................................................2-6
2-3 Connecting to the Network..................................................................................................... 2-8
2-3-1 Ethernet Connectors ...................................................................................................................2-8
2-3-2 Connecting the Cable..................................................................................................................2-8
Section 3 System-defined Variables Related to the Built-in
EtherNet/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-3 Specifications for Individual System-defined Variables.................... ................................ 3-10
Section 4 Determining IP Addresses
4-1 IP Addresses......... ... ... .... ......................................................................................................... 4-2
4-1-1 IP Address Configuration ............................................................................................................4-2
4-1-2 Allocating IP Addresses ..............................................................................................................4-3
4-1-3 Subnet Masks ............................................................................................................................. 4-3
4-1-4 CIDR ...........................................................................................................................................4-3
4-2 Built-in EtherNet/IP Port IP Address Settings....................................................................... 4-4
4-2-1 Determining IP Addresses .......................................................................................................... 4-4
4-2-2 Setting IP Addresses...................................................................................................................4-5
4-2-3 Online Connection.......................................................................................................................4-7
4-2-4 Checking the Current IP Address................................................................................................ 4-9
4-3 Private and Global Addresses.............................................................................................. 4-10
4-3-1 Private and Global Addresses...................................................................................................4-10
4-3-2 Using a Private Address for the Built-in EtherNet/IP Port .........................................................4-11
4-3-3 Using a Global Address for the Built-in EtherNet/IP Port ..........................................................4-12
Section 5 Sysmac Studio Settings for the Built-in EtherNet/IP Port
12
5-1 TCP/IP Display ......................................................................................................................... 5-2
5-2 Link Settings Display ............................................................................................... ... ............ 5-4
5-3 FTP Display.............................................................................................................................. 5-5
5-4 NTP Settings Display............................................................................................................... 5-6
5-5 SNMP Settings Display ........................................................................................................... 5-7
5-6 SNMP Trap Settings Display...................................................................................................5-9
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 15
Section 6 Testing Communications
6-1 Testing Communications........................................................................................................ 6-2
6-1-1 PING Command ......................................................................................................................... 6-2
6-1-2 Using the PING Command ......................................................................................................... 6-2
6-1-3 Host Computer Operation........................................................................................................... 6-3
Section 7 Tag Data Link Functions
7-1 Introduction to Tag Data Links...............................................................................................7-2
7-1-1 Tag Data Links ............................................................................................................................ 7-2
7-1-2 Data Link Data Areas.................................................................................................................. 7-3
7-1-3 Tag Data Link Functions and Specifications ............................................................................... 7-5
7-1-4 Overview of Operation................................................................................................................ 7-6
7-1-5 Starting and Stopping Tag Data Links ........................................................................................ 7-8
7-1-6 Controller Status......................................................................................................................... 7-8
7-1-7 Concurrency of Tag Data Link Data..........................................................................................7-10
7-2 Setting Tag Data Links .......................................................................................................... 7-14
7-2-1 Starting the Network Configurator ............................................................................................ 7-14
7-2-2 Tag Data Link Setting Procedure .............................................................................................. 7-16
7-2-3 Registering Devices.................................................................................................................. 7-17
7-2-4 Creating Tags and Tag Sets...................................................................................................... 7-18
7-2-5 Connection Settings.................................................................................................................. 7-28
7-2-6 Connecting the Network Configurator to the Network .............................................................. 7-38
7-2-7 Downloading Tag Data Link Parameters................................................................................... 7-43
7-2-8 Uploading Tag Data Link Parameters ....................................................................................... 7-46
7-2-9 Verifying the Tag Data Links ..................................................................................................... 7-49
7-2-10 Starting and Stopping Tag Data Links ......................................................................................7-52
7-2-11 Clearing the Device Parameters ............................................................................................... 7-54
7-2-12 Saving the Network Configuration File .....................................................................................7-55
7-2-13 Reading a Network Configuration File......................................................................................7-57
7-2-14 Checking Connections.............................................................................................................. 7-58
7-2-15 Changing Devices..................................................................................................................... 7-60
7-2-16 Displaying Device Status.......................................................................................................... 7-61
7-3 Ladder Programming for Tag Data Links ......................................................... ... ... ... .... ... ... 7-62
7-3-1 Ladder Programming for Tag Data Links .................................................................................. 7-62
7-3-2 Status Flags Related to Tag Data Links.................................................................................... 7-66
7-4 Tag Data Links with Models Other than NJ-Series CPU Units .......................................... 7-67
CONTENTS
Section 8 Message Communications
8-1 Overview of the CIP Message Communications Service..................................................... 8-2
8-1-1 Overview of the CIP Message Communications Service ........................................................... 8-2
8-1-2 Message Communications Service Specifications ..................................................................... 8-2
8-2 Using CIP Message Communications ....................................................... ............................ 8-3
8-2-1 Overview..................................................................................................................................... 8-3
8-2-2 CIP Communications Instructions............................................................................................... 8-3
8-2-3 Using CIP Communications Instructions .................................................................................... 8-4
8-2-4 Route Path.................................................................................................................................. 8-6
8-2-5 Preparing Derivative Data Types to Use CIP Communications Instructions............................... 8-9
8-2-6 Sample Programming for CIP Connectionless (UCMM) Message Communications ............... 8-12
8-2-7 Sample Programming for CIP Connection (Class 3) Message Communications..................... 8-18
8-2-8 Operation Timing ...................................................................................................................... 8-25
8-2-9 Response Codes ...................................................................................................................... 8-26
8-3 CIP Objects Sent to the Built-in EtherNet/IP Port............................................................... 8-30
8-3-1 CIP Objects Sent to the Built-in EtherNet/IP Port..................................................................... 8-30
8-3-2 Identity Object (Class ID: 01 Hex) ............................................................................................ 8-30
8-3-3 TCP/IP Interface Object (Class ID: F5 hex) .............................................................................. 8-32
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
13
Page 16
CONTENTS
8-3-4 Ethernet Link Object (Class ID: F6 Hex)...................................................................................8-34
8-3-5 Controller Object (Class ID: C4 Hex) ........................................................................................8-38
Section 9 Socket Service
9-1 Basic Knowledge on Socket Communications......... ... ... .... ... ... ... ... .... ... ... ... .... ... .................. 9-2
9-1-1 Sockets .......................................................................................................................................9-2
9-1-2 Port Numbers for Socket Services ..............................................................................................9-2
9-2 Basic Knowledge on Protocols........................................ .... ... ... ... ... ...................................... 9-3
9-2-1 Differences between TCP and UDP............................................................................................9-3
9-2-2 Fragmenting of Send Data..........................................................................................................9-4
9-2-3 Data Reception Processing.........................................................................................................9-6
9-2-4 Broadcasting ...............................................................................................................................9-8
9-3 Overview of Built-in EtherNet/IP Port Socket Services........................................................ 9-9
9-3-1 Overview .....................................................................................................................................9-9
9-3-2 Procedure....................................................................................................................................9-9
9-4 Settings Required for the Socket Services ..... ... .... ... ... ... .... ......................................... .... ... 9-10
9-4-1 Settings Required for the Socket Services................................................................................9-10
9-4-2 Making the Settings with the Sysmac Studio ............................................................................ 9-11
9-5 Socket Service Instructions..................................................................................................9-13
9-6 Details on Using the Socket Services..................................................................................9-14
9-6-1 Using the Socket Services........................................................................................................9-14
9-6-2 Procedure to Use Socket Services ...........................................................................................9-15
9-6-3 Timing Chart for Output Variables Used in Communications....................................................9-16
9-6-4 UDP Sample Programming.......................................................................................................9-18
9-6-5 TCP Sample Programming.......................................................................................................9-23
9-7 Precautions in Using Socket Services ................................................................................ 9-29
9-7-1 Precautions for UDP and TCP Socket Services .......................................................................9-29
9-7-2 Precautions for UDP Socket Services.......................................................................................9-29
9-7-3 Precautions for TCP Socket Services .......................................................................................9-29
Section 10 FTP Server
10-1 Overview and Specifications................................................................................................ 10-2
10-1-1 Overview...................................................................................................................................10-2
10-1-2 Specifications............................................................................................................................10-2
10-2 FTP Server Function Details................................................................................................. 10-3
10-2-1 Supported Files......................................................................................................................... 10-3
10-2-2 Connecting to the FTP Server ..................................................................................................10-3
10-3 Using the FTP Server Function ............................................................................................10-5
10-3-1 Procedure..................................................................................................................................10-5
10-3-2 List of Settings Required for the FTP Server Function.............................................................. 10-5
10-3-3 FTP Settings Display.................................................................................................................10-6
10-4 FTP Server Application Example .........................................................................................10-7
14
10-5 Using FTP Commands .......................................................................................................... 10-9
10-5-1 Table of Commands .................................................................................................................. 10-9
10-5-2 Using the Commands..............................................................................................................10-10
10-6 Using SD Memory Card Operations................................................................................... 10-16
10-6-1 SD Memory Card Types.......................................................................................................... 10-16
10-6-2 File Types................................................................................................................................ 10-17
10-6-3 Initializing SD Memory Cards..................................................................................................10-17
10-6-4 Format of Variable Data ..........................................................................................................10-17
10-7 Application Example from a Host Computer .................................. .... ... ........................... 10-19
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 17
Section 11 Automatic Clock Adjustment
11-1 Automatic Clock Adjustment................................................................................................ 11-2
11-1-1 Overview................................................................................................................................... 11-2
11-1-2 Specifications............................................................................................................................ 11-3
11-2 Procedure to Use the Automatic Clock Adjustment Function .......................................... 11-4
11-2-1 Procedure ................................................................................................................................. 11-4
11-2-2 Settings Required for Automatic Clock Adjustment .................................................................. 11-4
11-2-3 NTP Display.............................................................................................................................. 11-5
11-3 Troubleshooting Automatic Clock Adjustment................................................................... 11-7
Section 12 SNMP Agent
12-1 SNMP Agent........................................................................................................................... 12-2
12-1-1 Overview................................................................................................................................... 12-2
12-1-2 Specifications............................................................................................................................ 12-3
12-1-3 SNMP Messages...................................................................................................................... 12-3
12-1-4 MIB Specifications.................................................................................................................... 12-4
12-2 Procedure to Use the SNMP Agent.................................................................................... 12-20
12-2-1 Procedures ............................................................................................................................. 12-20
12-2-2 Settings Required for the SNMP Agent .................................................................................. 12-20
12-2-3 SNMP Settings Display........................................................................................................... 12-22
12-2-4 SNMP Trap Settings Display................................................................................................... 12-24
12-3 Troubleshooting SNMP Agent................................. ... .......................................... ... ........... 12-26
12-3-1 SNMP Agent Errors ................................................................................................................ 12-26
12-3-2 Event Log Error Codes for the SNMP Agent .......................................................................... 12-26
CONTENTS
Section 13 Communications Performance and Communications
Load
13-1 Communications System...................................................................................................... 13-2
13-1-1 Tag Data Link Communications Method................................................................................... 13-2
13-1-2 Calculating the Number of Connections ................................................................................... 13-4
13-1-3 Packet Interval (RPI) Accuracy................................................................................................. 13-5
13-2 Adjusting the Communications Load.................................................................................. 13-6
13-2-1 Checking Bandwidth Usage for Tag Data Links........................................................................ 13-7
13-2-2 Tag Data Link Bandwidth Usage and RPI................................................................................. 13-8
13-2-3 Adjusting Device Bandwidth Usage.......................................................................................... 13-9
13-2-4 Changing the RPI ................................................................................................................... 13-10
13-2-5 RPI Setting Examples............................................................................................................. 13-16
13-3 I/O Response Time in Tag Data Links........................ ... .... ... ... .......................................... . 13-21
13-3-1 Timing of Data Transmissions................................................................................................. 13-21
13-3-2 Built-in EtherNet/IP Port Data Processing Time..................................................................... 13-21
13-3-3 Relationship between Task Periods and Packet Intervals (RPIs) ........................................... 13-23
13-3-4 Maximum Tag Data Link I/O Response Time ......................................................................... 13-25
13-4 Message Service Transmission Delay............................................................................... 13-27
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
15
Page 18
CONTENTS
Section 14 Troubleshooting
14-1 Overview of Errors................................................................................................................. 14-2
14-1-1 How to Check for Errors ............................................................................................................ 14-2
14-1-2 Errors Related to the EtherNet/IP Function Module..................................................................14-6
14-2 Troubleshooting..................................................................................................................... 14-9
14-2-1 Error Table.................................................................................................................................14-9
14-2-2 Error Descriptions ...................................................................................................................14-14
14-2-3 Troubleshooting.......................................................................................................................14-37
14-3 Checking Status with the Network Configurator................................... ... ... .... ... ... ... ... .... . 14-38
14-3-1 The Network Configurators Device Monitor Function.............................................................14-38
14-3-2 Connection Status Codes and Troubleshooting...................................................................... 14-45
Appendices
A-1 Functional Comparison of EtherNet/IP Ports on NJ-series CPU Units and Other Series.A-2
A-2 EDS File Management................. ... ... ... ... .... .......................................... ... ...............................A-3
A-2-1 Installing EDS Files.....................................................................................................................A-4
A-2-2 Creating EDS Files......................................................................................................................A-5
A-2-3 Deleting EDS Files......................................................................................................................A-5
A-2-4 Saving EDS Files ........................................................................................................................A-6
A-2-5 Searching EDS Files...................................................................................................................A-6
A-2-6 Displaying EDS File Properties...................................................................................................A-6
A-2-7 Creating EDS Index Files............................................................................................................A-7
A-3 Precautions for Using the Network Configurator on Windows XP, Windows Vista,
or Windows 7 .........................................................................................................................A-8
A-3-1 Changing Windows Firewall Settings..........................................................................................A-8
A-4 Variable Memory Allocation Methods..................................................................................A-11
A-4-1 Variable Memory Allocation Rules ............................................................................................A-11
A-4-2 Important Case Examples.........................................................................................................A-14
A-5 Precautions When Accessing External Outputs from NJ-series CPU Units....... ... ... .... ...A-15
Index
16
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 19

Read and Understand this Manual

Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NON- INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS 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 OR REPAIR.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
17
Page 20
Read and Understand this Manual
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products. This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product, machine, system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses listed may be suitable for the products:
Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or uses not described in this manual.
Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical equipment, amusement machines, vehicles, safety equipment, and installations subject to separate industry or government regulations.
Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any consequence thereof.
18
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 21
Read and Understand this Manual
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other reasons.
It is our practice to change model numbers when published ratings or features are changed, or when significant construction changes are made. However, some specifications of the products may be changed without any notice. When in doubt, special model numbers may be assigned to fix or establish key specifications for your application on your request. Please consult with your OMRON representative at any time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual 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 users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
19
Page 22
Read and Understand this Manual
20
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 23

Safety Precautions

Definition of Precautionary Information
The following notation is used in this manual to provide precautions required to ensure safe usage of the built-in EtherNet/IP port on an NJ-series CPU Unit. The safety precautions that are provided are extremely important to safety. Always read and heed the information provided in all safety precautions. The following notation is used. Refer to the following manuals for safety precautions for the built-in EtherNet/IP port. Installation precautions are also provided for the NJ-series CPU Unit and NJ-series Controller system.
NJ-series CPU Unit Hardware User’s Manual (W500)
NJ-series CPU Unit Software Users Manual (W501)
Indicates a potentially hazardous situation which, if not avoided,
WARNING
could result in death or serious injury. Additionally, there may be severe property damage.
Safety Precautions
Caution
Precautions for Safe Use
Indicates precautions on what to do and what not to do to ensure safe usage of the product.
Precautions for Correct Use
Indicates precautions on what to do and what not to do to ensure proper operation and performance.
Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury, or property damage.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
21
Page 24
Safety Precautions
Symbols
The circle and slash symbol indicates operations that you must not do. The specific operation is shown in the circle and explained in text. This example indicates prohibiting disassembly.
The triangle symbol indicates precautions (including warnings). The specific operation is shown in the triangle and explained in text. This example indicates a precaution for electric shock.
The triangle symbol indicates precautions (including warnings). The specific operation is shown in the triangle and explained in text. This example indicates a general precaution.
The filled circle symbol indicates operations that you must do. The specific operation is shown in the circle and explained in text. This example shows a general precaution for something that you must do.
22
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 25

Precautions for Safe Use

Refer to the following manuals for precautions for the safe use of the built-in EtherNet/IP port. Installation precautions are also provided for the NJ-series CPU Unit and NJ-series Controller system.
NJ-series CPU Unit Hardware User’s Manual (W500)
NJ-series CPU Unit Software Users Manual (W501)
Precautions for Safe Use
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
23
Page 26

Precautions for Correct Use

Precautions for Correct Use
Refer to the following manuals for precautions for the correct use of the built-in EtherNet/IP port. Installation precautions are also provided for the NJ-series CPU Unit and NJ-series Controller system.
NJ-series CPU Unit Hardware Users Manual (W500)
NJ-series CPU Unit Software Users Manual (W501)
24
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 27
Regulations and Standards
Conformance to EC Directives
Applicable Directives
EMC Directives
Low Voltage Directive
Concepts
z EMC Directive
OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards.* Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer. EMC-related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the overall machine conform to EMC standards.
* Applicable EMC (Electromagnetic Compatibility) standards are as follows:
EMS (Electromagnetic Susceptibility): EN 61131-2 and EN 61000-6-2 EMI (Electromagnetic Interference): EN 61131-2 and EN 61000-6-4 (Radiated emission: 10-m regulations)

Regulations and Standards

z Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 VAC and 75 to 1,500 VDC meet the required safety standards. The applicable directive is EN 61131-2.
z Conformance to EC Directives
The NJ-series Controllers comply with EC Directives. To ensure that the machine or device in which the NJ-series Controller is used complies with EC Directives, the Controller must be installed as fol- lows:
The NJ-series Controller must be installed within a control panel.
You must use reinforced insulation or double insulation for the DC power supplies connected to DC Power Supply Units and I/O Units.
NJ-series Controllers that comply with EC Directives also conform to the Common Emission Stan- dard (EN 61000-6-4). Radiated emission characteristics (10-m regulations) may vary depending on the configuration of the control panel used, other devices connected to the control panel, wir- ing, and other conditions. You must therefore confirm that the overall machine or equipment complies with EC Directives.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
25
Page 28
Regulations and Standards
Conformance to Shipbuilding Standards
The NJ-series Controllers comply with the following shipbuilding standards. Applicability to the ship- building standards is based on certain usage conditions. It may not be possible to use the product in some locations. Contact your OMRON representative before attempting to use a Controller on a ship.
Usage Conditions for NK and LR Shipbuilding Standards
The NJ-series Controller must be installed within a control panel.
Gaps in the door to the control panel must be completely filled or covered with gaskets or other material.
The following noise filter must be connected to the power supply line.
Noise Filter
Manufacturer Model
Cosel Co., Ltd. TAH-06-683
Trademarks
Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products.
Windows, Windows 98, Windows XP, Windows Vista, and Windows 7 are registered trademarks of Microsoft Corporation in the USA and other countries.
•EtherCAT is a registered trademark of Beckhoff Automation GmbH for their patented technology.
The SD logo is a trademark of SD-3C, LLC.
Other company names and product names in this document are the trademarks or registered trade- marks of their respective companies.
Software Licenses and Copyrights
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/.
26
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 29
Unit Versions
Unit V ersions
A unit version” has been introduced to manage CPU Units in the NJ Series according to differences in functionality accompanying Unit upgrades.
Notation of Unit Versions on Products
The unit version is given on the ID information label of the products for which unit versions are man- aged, as shown below.
Example for NJ-series NJ501-@@@@ CPU Unit:

Unit Versions

ID information label
Unit model
NJ501 -1500 Ver.1.@@
PORT1 MAC ADDRESS: @@@@@@@@@@@@ PORT2 MAC ADDRESS: @@@@@@@@@@@@
Lot No. DDMYY@ xxxx
Unit version
Lot number and serial number MAC address
The following information is provided on the ID information label.
Item Description
Unit model Gives the model of the Unit. Unit version Gives the unit version of the Unit. Lot number and
serial number
MAC address Gives the MAC address of the built-in port on the Unit.
Gives the lot number and serial number of the Unit. DDMYY: Lot number, @: For use by OMRON, xxxx: Serial number “M” gives the month (1 to 9: January to September, X: October, Y: November, Z: December)
Confirming Unit Versions with Sysmac Studio
You can use the Unit Production Information on the Sysmac Studio to check the unit version of the CPU Unit, CJ-series Special I/O Units, CJ-series CPU Bus Units, and EtherCAT slaves. The unit versions of CJ-series Basic I/O Units cannot be checked from the Sysmac Studio.
z CPU Unit and CJ-series Units
1 Double-click CPU/Expansion Racks under Configurations and Setup in the Multiview
Explorer. Or, right-click CPU/Expansion Racks under Configurations and Setup and select Edit from the menu.
The Unit Editor is displayed for the Controller Configurations and Setup layer.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
27
Page 30
Unit Versions
2 Right-click any open space in the Unit Editor and select Production Information.
The Production Information Dialog Box is displayed.
Simple Display Detailed Display
In this example, “Ver.1.0is displayed next to the unit model.
The following items are displayed.
CPU Unit CJ-series Units
Unit model Unit version Lot number
Unit model Unit version Lot number Rack number, slot number, and unit number
z EtherCAT Slaves
1 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit from the menu. The EtherCAT Configuration Tab Page is displayed for the Controller Configurations and Setup
layer.
2 Right-click the master in the EtherCAT Configurations Editing Pane and select Display Produc-
tion Information.
The Production Information Dialog Box is displayed.
28
The following items are displayed. Node address Type information* Serial number
* If the model number cannot be determined (such as when there is no ESI file), the vendor ID, product
code, and revision number are displayed.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 31
Unit V ersion Notation
In this manual, unit versions are specified as shown in the following table.
Product nameplate Notation in this manual Remarks
“Ver.1.0” or later to the right of the lot number
Unit Versions
Unit version 1.0 or later Unless unit versions are specified, the information in this manual
applies to all unit versions.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
29
Page 32

Related Manuals

Related Manuals
The following manuals are related to the NJ-series Controllers. Use these manuals for reference.
Manual name Cat. No. Model numbers Application Description
NJ-series CPU Unit Hardware User’s Manual
NJ-series CPU Unit Soft- ware User’s Manual
NJ-series CPU Unit Motion Control User’s Manual
NJ-series Instructions Reference Manual
NJ-series Motion Control Instructions Reference Manual
CJ-series Special Unit Manuals for NJ-series CPU Unit
W500 NJ501-@@@@ Learning the basic specifi-
cations of the NJ-series CPU Units, including intro- ductory information, designing, installation, and maintenance. Mainly hard- ware information is pro- vided.
W501 NJ501-@@@@ Learning how to program
and set up an NJ-series CPU Unit. Mainly software information is provided.
W507 NJ501-@@@@ Learning about motion
control settings and pro- gramming concepts.
W502 NJ501-@@@@ Learning about the specifi-
W508 NJ501-@@@@ Learning about the specifi-
W490 W498 W499 W491 Z310 W492 W494 W497
CJ1W-@@@@ Learning how to use CJ-
cations of the instruction set that is provided by OMRON.
cations of the motion con- trol instructions that are provided by OMRON.
series Units with an NJ- series CPU Unit.
An introduction to the entire NJ-series system is provided along with the following information on a Controller built with an NJ501 CPU Unit.
Features and system configuration
Introduction
Part names and functions
General specifications
Installation and wiring
Maintenance and inspection Use this manual together with the NJ-series
CPU Unit Software Users Manual
W501). The following information is provided on a Con-
troller built with an NJ501 CPU Unit.
CPU Unit operation
CPU Unit features
Initial settings
Programming based on IEC 61131-3 lan- guage specifications
Use this manual together with the NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500).
The settings and operation of the CPU Unit and programming concepts for motion control are described. Use this manual together with the NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) and
ware User’s Manual
The instructions in the instruction set (IEC 61131-3 specifications) are described. When programming, use this manual together with the
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) and NJ-series CPU Unit Soft- ware User’s Manual
The motion control instructions are described. When programming, use this manual together with the NJ-series CPU Unit Hardware Users Manual (Cat. No. W500), NJ-series CPU Unit Software User’s Manual (Cat. No. W501) and
NJ-series CPU Unit Motion Control User’s Man- ual (Cat. No. W507).
The methods and precautions for using CJ- series Units with an NJ501 CPU Unit are described, including access methods and pro- gramming interfaces. Manuals are available for the following Units. Analog I/O Units, Insulated-type Analog I/O Units, Temperature Control Units, ID Sensor Units, High-speed Counter Units, Serial Com- munications Units, and DeviceNet Units.
Use these manuals together with the CPU Unit Hardware User’s Manual (Cat. No. W500) and NJ-series CPU Unit Software User’s
Manual
(Cat. No. W501).
(Cat. No.
NJ-series CPU Unit Soft-
(Cat. No. W501).
(Cat. No. W501).
NJ-series
30
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 33
Manual name Cat. No. Model numbers Application Description
NJ-series CPU Unit Built- in EtherCAT Port User’s Manual
NJ-series CPU Unit Built- in EtherNet/IP Port User’s Manual
NJ-series Troubleshoot- ing Manual
Sysmac Studio Version 1 Operation Manual
CX-Integrator CS/CJ/CP/NSJ-series Network Configuration Tool Operation Manual
CX-Designer User’s Manual
CX-Protocol Operation Manual
W505 NJ501-@@@@ Using the built-in EtherCAT
port on an NJ-series CPU Unit.
W506 NJ501-@@@@ Using the built-in Ether-
Net/IP port on an NJ-series CPU Unit.
W503 NJ501-@@@@ Learning about the errors
that may be detected in an NJ-series Controller.
W504 SYSMAC-
SE2@@@
W464 Learning how to configure
V099 Learning to create screen
W344 Creating data transfer pro-
Learning about the operat- ing procedures and func- tions of the Sysmac Studio.
networks (data links, rout- ing tables, Communica- tions Unit settings, etc.).
data for NS-series Pro- grammable Terminals.
tocols for general-purpose devices connected to CJ- series Serial Communica- tions Units.
Information on the built-in EtherCAT port is pro- vided. This manual provides an introduction and provides information on the configuration, fea- tures, and setup. Use this manual together with the NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) and Manual (Cat. No. W501).
Information on the built-in EtherNet/IP port is provided. Information is provided on the basic setup, tag data links, and other features. Use this manual together with the NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) and NJ-series CPU Unit Softw are Us ers Manual (Cat. No. W501).
Concepts on managing errors that may be detected in an NJ-series Controller and informa- tion on individual errors are described. Use this manual together with the CPU Unit Hardware User’s Manual (Cat. No. W500) and NJ-series CPU Unit Softw are Users Manual (Cat. No. W501).
Describes the operating procedures of the Sys- mac Studio.
Describes operating procedures for the CX-Inte- grator.
Describes operating procedures for the CX- Designer.
Describes operating procedures for the CX-Pro- tocol.
NJ-series CPU Unit Softw are Users
Related Manuals
NJ-series
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
31
Page 34

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.
Revision code Date Revised content
01 July 2011 Original production
W506-E1-01
Revision code
32
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 35
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-series CPU Units . . . . . . . . . . . . 1-3
1-2 System Configuration and Configuration Devices . . . . . . . . . . . . . . . . . . . 1-5
1-2-1 Devices Required to Construct a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
1-2-2 Support Software Required to Construct a Network . . . . . . . . . . . . . . . . . . . . 1-6
1-3 Built-in EtherNet/IP Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1-3-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1-3-2 Part Names and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1-4 Introduction to Communications Services . . . . . . . . . . . . . . . . . . . . . . . . 1-11
1-4-1 CIP (Common Industrial Protocol) Communications Services . . . . . . . . . . . 1-11
1-4-2 BOOTP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
1-4-3 FTP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
1-4-4 Automatic Clock Adjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
1-4-5 Socket Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
1-4-6 Specifying Host Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
1-4-7 SNMP Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
1-5 EtherNet/IP Communications Procedures . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
1-5-1 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
1
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-1
Page 36
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. Eth- erNet/IP is not just a network between Controllers. It is also used as a field network. Because Ether- Net/IP uses standard Ethernet technology, various general-purpose Ethernet devices can be used in the network.
Sysmac Studio
(Support Software)
(3) Ethernet switch
(2) Twisted-pair cable
Ethernet (LAN) port
100 m
max.
(1) Built-in EtherNet/IP
port on NJ-series Controller
EtherNet/IP System Configuration Example
(1) Built-in EtherNet/IP
port on NJ-series Controller
(1) Built-in EtherNet/IP
port on NJ-series Controller
z 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. Data of up to 9,600 words can be exchanged at high speed between Controllers and devices.
z 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 nodes is increased, i.e., the concurrency of the connections 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-2
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 37
1 Introduction

1-1-2 Features of Built-in EtherNet/IP Port on NJ-series CPU Units

z Tag Data Links
Cyclic communications between Controllers or between Controllers and other devices are possible on an EtherNet/IP network. Tag data links can quickly perform data exchanges for up to 9,600 words of data.
z Message Communications
You can send CIP commands to devices on the EtherNet/IP network when required by execution of CIP communications instructions in a program. As a result, it is possible to send and receive data with devices on the EtherNet/IP network.
z BOOTP Client
If the NJ-series built-in EtherNet/IP port 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.
z Built-in 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.
1-1 Introduction
1
1-1-2 Features of Built-in EtherNet/IP Port on NJ-series CPU Units
z Autom atic 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.
* A separate NTP server is necessary to automatically adjust the Controller clocks.
z Socket Services
Socket services can be used to send/receive data between general-purpose applications and Con- trollers. You can use these communications services to send and receive any data to and from remote nodes, i.e., between host computers and Controllers or between Controllers. You can exe- cute socket communications instructions in order in a program to execute communications pro- cesses with the socket services. There are two socket services, the UDP socket service and TCP socket service.
z Host Names
You can directly specify IP addresses, but you can also use the host names instead of the IP addresses for NTP servers, SNMP managers, or the destinations of socket instructions and CIP communications instructions (DNS client or hosts settings). This is useful, for example, when server IP addresses change for system revisions because the IP addresses are automatically found when host names are used.
* A separate DNS server is necessary to use host names with the DNS client. * The DNS server is specified directly using its IP address.
z 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.
* A separate SNMP manager is necessary for network management.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-3
Page 38
1 Introduction
z 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
Additional Information
CIP (Common Industrial Protocol) CIP is a shared industrial protocol for the OSI application layer. The CIP is used in networks such
as EtherNet/IP, CompoNet, and DeviceNet. Data can be routed easily between networks that are based on the CIP. You can therefore easily configure a transparent network from the field device level to the host level. The CIP has the following advantages.
Destination nodes are specified by a relative path, without fixed routing tables.
The CIP uses the producer/consumer model. Nodes in the network are arranged on the same
level and it is possible to communicate with required devices whenever it is necessary. The consumer node will receive data sent from a producer node when the connection ID in the packet indicates that the node requires the data. Because the producer can send the same data with the same characteristics in a multicast format, the time required for the transfer is fixed and not dependent on the number of consumer nodes. (Either multicast or unicast can be selected.)
1-4
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 39
1-2 System Configuration and
Configuration Devices

1-2-1 Devices Required to Construct a Network

The basic configuration for an EtherNet/IP system includes one Ethernet switch to which nodes are attached in star configuration using twisted-pair cable.
Sysmac Studio
(Support Software)
(3) Ethernet switch
(2) Twisted-pair cable
1 Introduction
1-2 System Configuration and
Configuration Devices
1
1-2-1 Devices Required to Construct a Network
Ethernet (LAN) port
100 m
max.
(1) Built-in EtherNet/IP
port on NJ-series CPU Unit
(1) Built-in EtherNet/IP
port on NJ-series CPU Unit
(1) Built-in EtherNet/IP
port on NJ-series CPU Unit
The following products are also required to build a network. Obtain them in advance.
Network device Function
(1) Per Node
NJ501-@@@@ NJ-series CPU Unit (built-in Ether- Net/IP port) OMRON PLCs CJ2H-CPU@@-EIP or CJ2M-CPU3@ CJ2 CPU Unit (built-in EtherNet/IP port) CJ-series CJ1W-EIP21 EtherNet/IP Unit* CS-series CS1W-EIP21 EtherNet/IP Unit
(2) Twisted-pair cable The twisted-pair cable has a RJ45 Modular Connector
(3) Ethernet switch This is a relay device that connects multiple nodes in a
These Units are used to connect to an EtherNet/IP net- work.
at each end. This cable is used to connect the built-in EtherNet/IP port or EtherNet/IP Unit to a Ethernet switch. Use an STP (shielded twisted-pair) cable of cat- egory 5, 5e, or higher.
star LAN. For details on recommended devices to con- figure a network, refer to
Devices.
2-1-1 Recommended Network
* The CJ1W-EIP21 cannot be mounted to an NJ-series CPU Unit.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-5
Page 40
1 Introduction

1-2-2 Support Software Required to Construct a Network

This section describes the Support Software that is required to construct an EtherNet/IP network. The built-in EtherNet/IP port has Ethernet Settings and Tag Data Link Settings, which are stored in the non- volatile memory of the CPU Unit. Support Software is provided for each, as described below.
z Built-in Ethernet/IP Settings: Sysmac Studio
Use the Sysmac Studio to set the basic settings, such as the local IP address and subnet mask of the built-in EtherNet/IP port. The Sysmac Studio can also be used to check if data I/O is being per- formed correctly for tag data links.
Windows Computer
Sysmac Studio
Built-in EtherNet/IP port settings (non-volatile memory)
Edit Parameters Dialog Box
NJ-series CPU Unit
Refer to the
Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for details on the Sysmac
Built-in EtherNet/IP port
Studio.
z Tag Data Link Settings: Network Configurator
Use the Network Configurator to set the tag data links for the built-in EtherNet/IP port. (The Network Configurator is included in Sysmac Studio.) The main functions of the Network Configurator are given below.
1) Setting and Monitoring Tag Data Links (Connections)
The network device configuration and tag data links (connections) can be created and edited. After connecting to the network, the device configuration and tag data link settings can be uploaded and monitored.
2) Multi-vendor Device Connections
EDS files can be installed and deleted so that you can construct, set, and manage networks that contain EtherNet/IP devices from other companies. The IP addresses of EtherNet/IP devices can also be changed.
Windows computer with
Network Configurator
Tag Data Link Settings (non-volatile memory)
Edit Device Parameters
Dialog Box
1-6
Transferred.
NJ-series CPU Unit
Built-in EtherNet/IP port
For details on the Network Configurator, refer to
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Section 7 Tag Data Link Functions.
Page 41

1-3 Built-in EtherNet/IP Port

1-3-1 Specifications

Item Specifications
Communications protocol TCP/IP or UDP/IP
Sysmac Studio connection, tag data link, CIP
Supported services
Physical layer
Transmission specifications
CIP service: Tag data links (cyclic communications)
Media access method CSMA/CD Modulation Baseband Transmission paths Star form Baud rate 100 Mbps (100Base-TX)
Transmission media Transmission distance 100 m max. (distance between hub and node) Number of cascade connections Number of connections 32
Packet interval (refresh cycle)
Allowed communications band- width per Unit
Number of registrable tags 256
Tag types
Number of tags per connection (= 1 tag set)
Maximum link data size per node 19,200 bytes
message communications, socket services, FTP server, automatic clock adjustment (NTP client), SNMP agent, DNS client, and BOOTP client
100Base-TX or 10Base-T (100Base-TX is rec- ommended.)
Shielded twisted-pair (STP) cable, Category 5, 5e, or higher
There is no limitation when a Ethernet switch is used.
10 to 10,000 ms in 1-ms increments Packet intervals can be set independently for
each connection. (Data is refreshed over the network at the preset interval and does not depend on the number of nodes.)
1,000 pps Note This includes the heartbeat.
Network variables CIO, Work, Holding, DM, or EM Area
8 (7 tags when the tag set contains the Control- ler status)
600 bytes
1 Introduction
1-3 Built-in EtherNet/IP Port
1
1-3-1 Specifications
*1
*2
*3
Maximum data size per connection
Number of registrable tag sets 32 (1 connection = 1 tag set) Maximum size of 1 tag set Changing tag data link parameters
when Controller is in RUN mode Multi-cast packet filter
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
*5
Note Data concurrency is maintained within
each connection. Refer to 7-1-7 Concur- rency of Tag Data Link Data for methods
to maintain concurrency.
300 words (The Controller status uses 1 word when the tag set contains the Controller status.)
Supported
Supported
*4
1-7
Page 42
1 Introduction
CIP message ser- vice: Explicit mes-
*5
sages
SNMP
EtherNet/IP conformance test Conforms to A8
Ethernet interface
*1 If tag data links are being used, use 100Base-TX. *2 Here, pps means “packets per second” and indicates the number of packets that can be processed in one sec-
ond.
*3 To use a data size of 505 bytes or higher, the system must support a large forward open (an optional CIP spec-
ification). The CS/CJ-series Units support a large forward open, but before connecting to nodes of other com- panies, confirm that those devices also support it.
*4 If the parameters of the built-in EtherNet/IP port are changed, the port is restarted. When other nodes are in
communications with the affected node, the communications will temporarily time out and automatically recover later.
*5 Because the built-in EtherNet/IP port is equipped with an IGMP client (version 2), unnecessary multicast pack-
ets can be filtered by a Ethernet switch that supports IGMP snooping.
*6 The built-in EtherNet/IP port uses the TCP/UDP port numbers shown in the following table.
EIP data links UDP 2222 Fixed values Used by system UDP 2223, 2224
CIP messages TCP 44818 FTP client data transfer port TCP 20 DNS client TCP/UDP 53 BOOTP client UDP 68 HTTP server TCP 80 Used by system, other TCP/UDP 9600 You can change the port number in FTP client control port TCP 21 NTP client UDP 123 SNMP agent UDP 161 SNMP trap UDP 162
Item Specifications
Class 3 (connected) Number of connections: 32 (clients + servers)
Number of clients that can communicate at one
UCMM (unconnected)
Agents SNMPv1 or SNMPv2c MIB MIB-II
Service Protocol Port number Remarks
TCP 9610
time: 32 max. Number of servers that can communicate at one
time: 32 max.
10Base-T or 100Base-TX Auto negotiation or fixed settings
the Unit Settings on the Sysmac Studio.
1-8
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 43

1-3-2 Part Names and Functions

1 Introduction
1-3 Built-in EtherNet/IP Port
USB port
1
1-3-2 Part Names and Functions
Built-in EtherNet/IP port
Built-in EtherCAT port
Indicators
z Ethernet Address Notation
A specific Ethernet address is allocated to each device connected to the Ethernet network. The built-in EtherNet/IP ports address is listed in 12-digit hexadecimal in the two places shown below on the CPU Unit.
PORT 1
XXXXXX XXXXXX
NJ501-XXXX PORT1 : XXXXXXXXXXXX PORT2 : XXXXXXXXXXXX XXXXXXX XXXX
Upper 6 digits of Ethernet address
Lower 6 digits of Ethernet address
Ethernet address (12 digits)
Ver. XXX
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-9
Page 44
1 Introduction
Indicators (LEDs)
z NET RUN, NET ERR, and LINK/ACT
NET RUN indicator: This shows the status of the CIP connection (tag data links, Class 3 mes-
NET ERR indicator: This shows the network communications error status. Refer to Section 14
LINK/ACT indicator: This shows the Ethernet communications status.
Indicator Color Status Operating status
NET RUN
NET ERR
LINK/ACT
sages).
Troubleshooting and Error Processing for details.
--- Not lit
Flashing
Green
Lit
--- Not lit
Flashing
Red
Lit
--- Not lit
Yellow
Flashing Data communications in progress after establishing link. Lit Links established.
Ethernet communications are not possible.
The power supply is OFF or the Controller is being reset.
A MAC address error or communications Controller error
occurred.
Ethernet communications are in progress.
Tag data link connection establishment in progress (origina-
tor operation)
IP address acquisition with BOOTP in progress. Normal
If only the target is set for the tag data link, this indicator lights regardless of whether the connection from the originator is established. It remains lit even if the data links are stopped.
There are no Ethernet communications errors.
The power supply is OFF or was reset. A user-recoverable error occurred.
An error occurred in TCP/IP communications or CIP com-
munications.
FTP Server Setting Error, NTP Server Setting Error, etc.
Tag Data Link Setting Error, Tag Data Link Verification Error,
etc.
A user-non-recoverable error occurred.
A MAC address error or communications Controller error
occurred.
Link not established.
The cable is not connected.
The power supply is OFF or was reset.
1-10
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 45
1 Introduction
Communications Services
1-4 Introduction to Communications
Services

1-4-1 CIP (Common Industrial Protocol) Communications Services

Tag Data Links (Cyclic Communications)
A program is not required to perform cyclic data exchanges with other devices on the EtherNet/IP net- work. Normally, a connection is started with the target device for each tag set that was created with the Network Configurator to start communications for tag data links for a built-in EtherNet/IP port. One con- nection is used per tag set. You can register up to 32 connections. The following table gives the built-in EtherNet/IP port tag and tag set specifications.
Tags Ta g sets
Total size of all tags 9,600 words Maximum size of 1 tag set 300 words
(The maximum size is 299 words when the tag set includes the Controller status.)
Maximum size of 1 tag 300 words (The maximum size is 299 words when the tag set includes the Controller status.)
Number of tags per tag set 8 (7 tags/tag set when the tag set includes the Controller status)
1-4 Introduction to
1
1-4-1 CIP (Common Industrial Protocol) Communications Services
Note Input and output variables cannot be combined.
Number of registrable tags 256 Number of registrable tag sets 32
Connection Information
• Target IP address
• Target tag set
• Originator tag set
• Packet interval (RPI)
Tag Set (Input)
Tag set name: SP1_IN
Controller status
Tag a Tag b Tag c
Tag
g
Originator device Target device
* In this example, a connection is established with the originator’s tag list with tags a to g (inputs), which are in a
tag set called SP1_IN, and the target’s tag list with tags i and ii (outputs), which are in a tag set called SP1_OUT.
Connection
Data flow
EtherNet/IP
Tag Set (Output)
Tag set name: SP1_OUT
Controller Status
Tag
i
ii
Tag
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-11
Page 46
1 Introduction
Message Communications (Class 3 UCMM: Unconnected Message Service)
User-specified CIP commands can be sent to devices on the EtherNet/IP network. CIP commands, such as those for reading and writing data, can be sent and their responses received by executing the CIP Send instruction from the user program in the NJ-series CPU Unit (without a connection).
NJ-series Controller
CIP_SEND
Built-in EtherNet/IP port

1-4-2 BOOTP Client

You set the built-in EtherNet/IP port in the BOOTP settings to use the BOOTP client to obtain settings, such as the built-in EtherNet/IP port IP address.
BOOTP server
BOOTP command
IP address
BOOTP client
The built-in EtherNet/IP port IP address is obtained from the BOOTP server when the power is turned ON.
CIP command
Response
Built-in EtherNet/IP port
Ethernet (EtherNet/IP)
Ethernet
Built-in EtherNet/IP port
1-12
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 47
1 Introduction
Communications Services

1-4-3 FTP Server

An FTP server is built into the built-in EtherNet/IP port so that files can be read from and written to the SD Memory Card in the CPU Unit of the Controller from computers at other Ethernet nodes. This makes it possible to exchange data files between a host computer and the Controller with the host com- puter as the FTP client and the Controller as the FTP server.
SD Memory
Host computer to Controller
File data
Card
Host computer (FTP client)
FTP command
Ethernet
Built-in EtherNet/IP port
NJ-series Controller
Controller to Host computer
File data
1-4 Introduction to
1
1-4-3 FTP Server
SD Memory
Card
SD Memory
Card

1-4-4 Automatic Clock Adjustment

With the built-in EtherNet/IP port, clock information is read from the NTP server at the specified time or at a specified interval after the power supply to the CPU Unit is turned ON. The internal clock time in the CPU Unit is updated with the read time.
NTP server
NTP command
Ethernet
Clock information
Built-in EtherNet/IP port
NJ-series Controller
Precautions for Correct UsePrecautions for Correct Use
An NTP server is required to use automatic clock adjustment.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-13
Page 48
1 Introduction

1-4-5 Socket Service

You can send data to and receive data from any node on Ethernet with the UDP or TCP protocol. To send/receive data with a socket service, you execute multiple socket communications instructions in sequence in an ST program to execute the required communications processes. After a connection with the other communications device is opened with an open instruction, the values of the variables that are specified for the send instruction are sent and the data that was received for a receive 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 16 TCP ports and UDP ports.
UNIX computer or other node with socket service interfaces
Ethernet
TCP/UDP
protocol
NJ-series CPU Unit
TCP/UDP
protocol
Built-in EtherNet/IP port
TCP
IP
Socket
UDP
Built-in EtherNet/IP port
ST Programming
SktUDPCreate(...)
SktUDPSend(...)
SktUDPRcv(...)
SktClose(...)
NJ-series CPU Unit

1-4-6 Specifying Host Names

You can directly specify IP addresses, but you can also use the host names instead of the IP addresses for NTP servers, SNMP managers, or the destinations of socket instructions and CIP communications instructions (DNS client or hosts settings).
Example: Setting Host Names on the DNS Server
DNS server
Communications processes are performed with socket commu- nications instructions (for UDP).
Open processing
Send processing
Receive processing
Close processing
1-14
IP address
Host name
NJ-series Controller
Ethernet
Built-in EtherNet/IP port
Precautions for Correct UsePrecautions for Correct Use
A DNS server is required to use the server host names for the DNS client.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 49
1 Introduction
Communications Services

1-4-7 SNMP Agent

The SNMP agent passes internal status information from the built-in EtherNet/IP port to network man- agement software that uses an SNMP manager.
Monitoring Ethernet/IP Devices
SNMP
manager
SNMP message
Management
information
SNMP agent
SNMP Trap
Built-in EtherNet/IP port
SNMP agent
1-4 Introduction to
1
1-4-7 SNMP Agent
Ethernet
Device that supports SNMP
SNMP agent
When specific conditions occur, the built-in EtherNet/IP port that is set as the SNMP agent sends status notification reports to the SNMP manager. The SNMP manager can learn about changes in status even without periodically monitoring of the built-in EtherNet/IP port. Status notification reports are sent under the following conditions.
When the Controller is turned ON
When links are established
When an SNMP agent fails to be authorized
SNMP manager
Trap
SNMP agent
Controller turned ON.
Built-in EtherNet/IP port
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
1-15
Page 50
1 Introduction
1-5 EtherNet/IP Communications
Procedures

1-5-1 Outline

z Basic Operation
1
Wire the Ethernet network with twisted-pair cable.
2
Set the built-in EtherNet/IP port IP address with the Sysmac Studio.
1. Use the Sysmac Studio to create a new project.
2. Set the local IP address in one of the following ways:
Default: 192.168.250.1 (subnet mask = 255.255.255.0)
Set any IP address.
Obtain from BOOTP server.
3
Use the Sysmac Studio to set the initial settings of the EtherNet/IP Function Module.
Set the TCP/IP settings and Ethernet settings as required.
4
Turn the power ON, and connect the Sysmac Studio online.
5
Perform a communications test with a PING command from a com- puter.
Section 2 Installing Ethernet Networks
Section 4 Determining IP Addresses
Section 5 Sysmac Studio Settings for the Built-in Eth- erNet/IP Port
Section 6 Testing Communi- cations
z Using Tag Data Links
1
Use Network Configurator to create the tag data link table.
Create the network configuration.
Set the connections.
2
Turn the power ON, and connect the Network Configurator online.
3
Download the tag data link setting.
4
Start the tag data links (the links starts automatically when power is turned ON).
Section 7 Tag Data Link Functions
1-16
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 51
5
Check operation.
Check the built-in EtherNet/IP port indicators.
Use the Sysmac Studio to check the communications status with the All Tag
Data Link Communications Status system-defined variable.
Use the monitor function of the Network Configurator to confirm that the tag
data links are in normal operation.
1 Introduction
1-3-2 Part Names and Func- tions
Section 14 Troubleshooting
1-5 EtherNet/IP Communications
Procedures
z Using the Message Communications Service
CIP Communications Instructions
1
Execute CIP communications instructions in the user program.
2
Check operation.
Use the Sysmac Studio to check the communications status with the end codes
of the instruction (Done, Error, and ErrorID).
z Using the Socket Services
1
Execute the socket service instructions in the user program.
2
Check operation.
Use the Sysmac Studio to check the communications status with the end codes
of the instruction (
Done, Error, and ErrorID).
z Using the FTP Server
1
Use the Sysmac Studio to set the initial settings of the EtherNet/IP Function Module.
Set the FTP settings (enabling FTP, login name, and password).
1
1-5-1 Outline
Section 8 Message Commu- nications
1-3-2 Part Names and Func- tions
Section 14 Troubleshooting
Section 9 Socket Service
Section 10 FTP Server
2
Connect to the FTP server in the NJ-series CPU Unit from an FTP client application.
Input the FTP login name and password to log onto the built-in EtherNet/IP port.
z Using the Au tomatic Clock Adjustment
1
Use the Sysmac Studio to set the initial settings of the EtherNet/IP Function Module.
Set the NTP settings (enabling NTP and execution conditions).
2
Execute automatic clock adjustment.
Execute automatic adjustment at specified times or specified intervals.
Use the Sysmac Studio to check the NTP Last Operation Time and NTP Oper-
ation Result system-defined variables.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
Section 11 Automatic Clock Adjustment
1-17
Page 52
1 Introduction
z Using the SNMP Agent
1
Use the Sysmac Studio to set the initial settings of the EtherNet/IP Function Module.
Set the SNMP settings.
Set the SNMP trap settings.
2
Check operation.
Check the event log to see if the SNMP agent started.
z Using BOOT P
1
Use the Sysmac Studio to set the initial settings of the EtherNet/IP Function Module.
Set the BOOTP settings.
2
Check operation.
Check the event log to see if BOOTP started.
Check the Online system-defined variable.
Section 12 SNMP Agent
Section 5 Sysmac Studio Settings for the Built-in Eth- erNet/IP Port
1-18
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 53
Installing Ethernet Networks
2-1 Selecting the Network Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2-1-1 Recommended Network Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2-1-2 Network Devices Manufactured by OMRON . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2-1-3 Ethernet Switch Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2-1-4 Ethernet Switch Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2-1-5 Precautions for Ethernet Switch Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2-2 Network Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
2-2-1 Basic Installation Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
2-2-2 Recommended Network Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
2-2-3 Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
2-3 Connecting to the Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
2-3-1 Ethernet Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
2-3-2 Connecting the Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
2
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
2-1
Page 54
2 Installing Ethernet Networks

2-1 Selecting the Network Devices

2-1-1 Recommended Network Devices

The following table shows the devices recommended for use with the EtherNet/IP.
z Ethernet Switches
Product Manufacturer Model Contact phone number
Sizes and conduc- tor pairs: AWG 24 × 4 pairs
Sizes and conduc- tor pairs: AWG 22 × 2 pairs
Sizes and conduc- tor pairs: 0.5 mm × 4 pairs
Cables Tonichi Kyosan
Cable, Ltd.
Kuramo Electric Co., Ltd.
SWCC Showa Cable Systems Co. Ltd.
RJ45 Connec- tors
Cables Kuramo Electric
RJ45 Assembly Connectors
Cables Fujikura Ltd. F-LINK-E
RJ45 Connec- tors
Panduit Corpora- tion
Co., Ltd. OMRON XS6G-T421-1* OMRON Corporation, Cus-
Panduit Corpora- tion
NETSTAR-C5E SAB 0.5 × 4P
KETH-SB Kuramo Electric Co., Ltd.
FAE-5004 SWCC Showa Cable Systems
MPS588 Panduit Corporation, Japan
KETH-PSB- OMR*
0.5mm × 4P MPS588 Panduit Corporation, Japan
Kanetsu Planning Department
Co. Ltd.
Branch, Osaka Sales Office Kuramo Electric Co., Ltd.
tomer Support Center Kanetsu Planning Department
Branch, Osaka Sales Office
* We recommend using combinations of the above cables and connectors.
z Boots
Product Model Contact phone number
TSUKO MK Boots (IV) LB TSUKO
Precautions for Correct UsePrecautions for Correct Use
Always use a Ethernet switch for tag data links in the network.
If a repeater hub is used for EtherNet/IP tag data links (cyclic communications), the network’s
communications load will increase, data collisions will occur frequently, and stable communi- cations will be impossible.
2-2
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 55
2 Installing Ethernet Networks

2-1-2 Network Devices Manufactured by OMRON

The following network devices are manufactured by OMRON for EtherNet/IP networks.
Specifications OK: Supported, ---: Not supported.
Description Number of ports
Name
Ethernet switch
Model num-
ber
W4S1-03B Packet priority control (QoS): W4S1-05B 5 --- W4S1-05C 5 OK
EtherNet/IP control data priority Failure detection: Broadcast storm,
LSI error detection, 10/100Base-TX, Auto negotiation

2-1-3 Ethernet Switch Types

z Unmanaged Layer 2 (L2) Ethernet Switches
These Ethernet switches use the Ethernet MAC address to switch ports. Ordinary Ethernet switches have this function. Ethernet switch functions and settings cannot be changed.
Failure detection
3 ---
output
2
Manufactured by OMRON
2-1 Selecting the Network Devices
2-1-2 Network Devices
z Managed Layer 2 (L2) Ethernet Switches
These Ethernet switches use the Ethernet MAC address to switch ports. Ethernet switch functions and settings can be changed with special software tools for Ethernet switches running on a network node. You can also collect analytical data. These Ethernet switches provide more-advanced func- tions than unmanaged layer 2 Ethernet switches.

2-1-4 Ethernet Switch Functions

This section describes the Ethernet switch functions that are important for an EtherNet/IP network. For a built-in EtherNet/IP port, consider whether the Ethernet switch supports these functions when you select the Ethernet switch.
Multicast filtering
QoS (Quality of Service) for TCP/UDP port numbers (L4)
z Multicast Filtering
Multicast filtering transfers multicast packets to the specific nodes only. This function is implemented in the Ethernet switch as IGMP snooping or GMRP. Specific nodes” are nodes equipped with an IGMP client that have made transfer requests to the Ethernet switch. (OMRON built-in EtherNet/IP ports are equipped with an IGMP client.) When the Ethernet switch does not use multicast filtering, multicast packets are sent to all nodes, just like broadcast packets, which increases the traffic in the network. Settings must be made in the Ethernet switch to enable this function. There must be enough multicast filters for the network.
z QoS (Quality of Service) Function for TCP/UDP Port Numbers (L4)
This function controls the priority of packet transmissions so that packets can be sent with higher pri- ority to a particular IP address or TCP (UDP) port. The TCP and UDP protocols are called transport layer protocols, leading to the name L4 (layer 4) QoS function. When tag data links and message communications are executed on the same network, tag data links can be sent at higher priority to prevent problems such as transmission delays due to message communications traffic and packet losses due to buffer overflow. Settings must be made in the Ethernet switch to enable this function and give higher priority to tag data link packets.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
2-3
Page 56
2 Installing Ethernet Networks
Support for the above two functions is as follows for the different types of Ethernet switches.
Ethernet Switch Ty pes Multicast filtering L4 QoS Remarks
Unmanaged L2 Ethernet switches
Managed L2 Ethernet switches
OMRON W4S1-series Ethernet switches
Additional Information
If the Network Configurator is used to set the connection type in the connection settings to a mul- ticast connection, multicast packets are used. If the connection type is set to a point-to-point con- nection, multicast packets are not used.
None None ---
Provided. Provided. Both functions must be set
None Provided. L4 QoS is set with a switch. No

2-1-5 Precautions for Ethernet Switch Selection

with a special software tool.
software tool is necessary.
The functions supported by the Ethernet switch may affect tag data link transmission delays and the settings in the Controller configurations and setup. In addition, if the Ethernet switch supports advanced functions, special settings are required for those functions. When you select a Ethernet switch, it is nec- essary to consider whether to select the Ethernet switch based on the kind and amount of communica- tions you want to execute in the network. Refer to the following precautions when you select a Ethernet switch. Refer to 13-2 Adjusting the Communications Load to estimate the communications load for tag data links.
Selecting the Ethernet Switch Based on the Types of Network Communications
z Executing Tag Data Links Only
We recommend that you use an L2 Ethernet switch without multicast filtering or an L2 Ethernet switch with multicast filtering. An L2 Ethernet switch with multicast filtering prevents increased traffic due to unnecessary multicast packets, so the tag data links can operate at higher speed. If either of the following conditions exists, the amount traffic will be the same for both kinds of L2 Ethernet switches (with or without multicast filtering).
The tag data links are set to share the same data with all nodes in the network. (The multicast
packets are transferred to all nodes in the network, just like a broadcast.)
The tag data link settings are all one-to-one (unicast) and multicast packets cannot be used. If multicast filters are being used, settings must be made in the Ethernet switch. There must be
enough multicast filters for the network being used.
2-4
z Executing Tag Data Links and Message Communications
We recommend an L2 Ethernet switch with multicast filtering and L4 QoS. If you set tag data links for higher-priority transmission, it is possible to prevent problems such as transmission delays due to message communications traffic and packet losses due to buffer overflow. You must make special settings in the Ethernet switch when using the multicast filtering function and L4 QoS function.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 57
2 Installing Ethernet Networks
Selecting the Ethernet Switch Based on the Ethernet Switchs Supported Functions
z L2 Ethernet Switch without Multicast Filtering
We recommend this kind of Ethernet switch when only tag data links are executed and any of the fol- lowing conditions is met.
The tag data links are set to share the same data with all nodes in the network. (The multicast
packets are transferred to all nodes in the network, just like a broadcast.)
The tag data link settings are all one-to-one (unicast) and multicast packets cannot be used.
There is little traffic in the tag data links.
No special settings are required for an L2 Ethernet switch without multicast filtering.
z L2 Ethernet Switch with Multicast Filtering
We recommend this kind of Ethernet switch when only tag data links are executed and the following condition is met.
There are many 1:N links (where N represents some number of nodes in the network) in the tag
data link settings, i.e., there are many multicast packets used, or there is heavy traffic in the tag data links.
Special settings are required for an L2 Ethernet switch with multicast filtering. There must be enough multicast filters for the network.
2
Switch Selection
2-1 Selecting the Network Devices
2-1-5 Precautions for Ethernet
z L3 Ethernet Switch with Multicast Filtering and L4 QoS Functions
We recommend this kind of Ethernet switch when both tag data links and message communications are executed. If you set tag data links for higher-priority transmission, you can prevent problems such as transmission delays due to message communications traffic and packet losses due to buffer overflow. Special settings must be made in the Ethernet switch when using the multicast filtering function and L4 QoS function. There must be enough multicast filters for the network.
Precautions for Correct UsePrecautions for Correct Use
Ask the Ethernet switch manufacturer for setting procedures for the Ethernet switch.
Install the Ethernet switch so that its environmental resistance specifications are not
exceeded. Ask the Ethernet switch manufacturer for information on the environmental resis- tance of the Ethernet switch.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
2-5
Page 58
2 Installing Ethernet Networks

2-2 Network Installation

2-2-1 Basic Installation Precautions

Take the greatest care when you install the Ethernet System. Be sure to follow ISO 8802-3 specifica-
tions. Be sure you understand them before attempting to install an Ethernet System.
Unless you are already experienced in installation of communications systems, we strongly recom-
mend that you employ a professional to install your system.
Do not install Ethernet equipment near sources of noise. If a noisy environment is unavoidable, take
adequate measures against noise interference, such as installation of network components in metal cases or the use of optical cable in the system.
When you install an EtherNet/IP network that combines an information network with the control sys-
tem, and the communications load may be heavy due to tag data links, we recommend that you set up the network so that the load does not affect communications. For example, install the tag data links in a segment that is separate from the information network.

2-2-2 Recommended Network Devices

Refer to Net/IP port.
2-1 Selecting the Network Devices for the devices recommended for use with the built-in Ether-

2-2-3 Precautions

Precautions on Laying Twisted-pair Cable
Noise immunity may be reduced by ground loops, which can occur due to improper shield connec-
tions and grounding. Ground the shield at one location, as shown in the following diagram.
Do not connect the shield to the built-in EtherNet/IP port’s connector.
If a cable connects two Ethernet switches, connect the shield at only one end.
GR
STP
Ethernet switch
ConnectorConnectorConnectorConnectorConnector
Built-in EtherNet/IP port
Connect the shield. Do not connect the shield.
STP
(Shield)
STP
Ethernet switch
GR
(Shield)
EtherNet/
IP port
Connector
EtherNet/
IP port
Connector
Power
Supply Unit
GR terminal
Power
Supply Unit
GR terminal
2-6
(Shield)
Press the cable connector in firmly until it locks into place at both the Ethernet switch and the built-in
EtherNet/IP port.
Do not lay the twisted-pair cable together with high-voltage lines.
Do not lay the twisted-pair cable near devices that generate noise.
Do not lay the twisted-pair cable in locations subject to high temperatures or high humidity.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 59
2 Installing Ethernet Networks
Do not lay the twisted-pair cable in locations subject to excessive dirt and dust or to oil mist or other
contaminants.
Ethernet Switch Installation Environment Precautions
Do not ground the Ethernet switch in the same location as a drive-system component, such as an
inverter.
Always use a dedicated power supply for the Ethernet switchs power supply. Do not use the same
power supply for other equipment, such as an I/O power supply, motor power supply, or control power supply.
Before installation, check the Ethernet switchs environmental resistance specifications, and use a
Ethernet switch that is appropriate for the ambient conditions. Contact the Ethernet switch manufac- turer for details on Ethernet switchs environmental resistance specifications.
Ethernet Switch Connection Methods
Connect two Ethernet switches to each other as follows:
Connect an MDI port to an MDI-X port with a straight cable. Connect two MDI ports or two MDI-X ports with a cross cable.
2-2 Network Installation
2
2-2-3 Precautions
Note It is very difficult to distinguish cross cables and straight cables by appearance. Incorrect cables will cause
communications to fail. We recommend cascade connections with straight cables whenever possible.
MDI-X port (cross)
MDI port
Ethernet switch
Ethernet switch
Ethernet switch
Straight cable
Cross cable
Ethernet switch
Some Ethernet switches can automatically distinguish between MDI and MDI-X. When this kind of
Ethernet switch is used, straight cable can be used between Ethernet switches.
Precautions for Correct UsePrecautions for Correct Use
Adjust the built-in EtherNet/IP ports link settings to match the communications settings of the connected Ethernet switch. If the settings do not match, the link will be unstable and prevent nor- mal communications. The following table shows the allowed settings for each Ethernet switch communications mode. (Auto-Nego: Auto negotiation, Full: Full duplex, Half: Half duplex)
Built-in EtherNet/IP port
Ethernet switch
Auto-Nego Best --- OK --- OK 10 Mbps (fixed) Full --- OK --- --- ---
Half OK --- OK --- ---
100 Mbps (fixed) Full --- --- --- Best ---
Half OK --- --- --- OK
Auto- Nego
10 Mbps (fixed) 100 Mbps (fixed)
Full Half Full Half
Best = Recommended; OK = Allowed; --- = Not allowed.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
2-7
Page 60
2 Installing Ethernet Networks

2-3 Connecting to the Network

2-3-1 Ethernet Connectors

The following standards and specifications apply to the connectors for the Ethernet twisted-pair cable.
Electrical specifications: Conforming to IEEE 802.3 standards.
Connector structure: RJ45 8-pin Modular Connector (conforming to ISO 8877)
Connector pin Signal name Abbr.
1 Transmission data + TD+ Output 2 Transmission data TD Output 3 Reception data + RD+ Input 4 Not used. --- --- 5 Not used. --- --- 6 Reception data – RD Input 7 Not used. --- --- 8 Not used. --- --- Hood Frame ground FG ---
Signal direc-
tion

2-3-2 Connecting the Cable

Precautions for Correct UsePrecautions for Correct Use
Turn OFF the power supply to the Controller before you connect or disconnect twisted-pair
cable.
Allow enough space for the bending radius of the twisted-pair cable as shown below.
35 mm
1 Lay the twisted-pair cable. 2 Connect the cable to the Ethernet switch. 3 Connect the twisted-pair cable to the connector on the built-in EtherNet/IP port. Be sure to press the
connectors (both the Ethernet switch side and Ethernet side) until they lock into place.
2-8
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 61
System-defined Variables Related to the Built-in EtherNet/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-3 Specifications for Individual System-defined Variables . . . . . . . . . . . . . . 3-10
3
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-1
Page 62

3 System-defined Variables Related to the Built-in EtherNet/IP Port

3-1 System-defined Variables Related to
the Built-in EtherNet/IP Port
You can use the system-defined variables that are provided for the built-in EtherNet/IP port in programs to check the status of the built-in EtherNet/IP port.
z Checking for Errors in the Built-in EtherNet/IP Port
You can check for built-in EtherNet/IP port errors, Sysmac Studio setting errors, Network Configura- tor setting errors, TCP/IP application errors (e.g., FTP or NTP), etc. The following hierarchy is used. The system gives the error status at each level by logically ORing the error status information in the next lower level.
_EIP_ErrSta
Error status variable for EtherNet/IP Function Module
_EIP_PortErr
_EIP_CipErr
_EIP_TcpAppErr
Error status variable for communications port
_EIP_MacAdrErr _EIP_LanHwErr _EIP_IPAdrDupErr _EIP_EtnCfgErr _EIP_IPAdrCfgErr _EIP_IPRTblErr _EIP_BootpErr _EIP_DNSSrvErr
Error status variable for CIP communications
_EIP_IdentityErr _EIP_TDLinkCfgErr _EIP_TDLinkOpnErr _EIP_TDLinkErr _EIP_MultiSwONErr _EIP_TagAdrErr
Error status variable for TCP/IP application function
_EIP_TcpAppCfgErr _EIP_NTPSrvErr
MAC Address Error Communications Controller Error IP Address Duplication Error Basic Ethernet Setting Error TCP/IP Basic Setting Error TCP/IP Advanced Setting Error BOOTP Server Error DNS Server Connection Error
Identity Error Tag Data Link Setting Error Tag Data Link Connection Failed Tag Data Link Communications Error Multiple Switches ON Error Tag Name Resolution Error
TCP/IP Setting Error NTP Server Connection Error
3-2
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 63
3 System-defined Variables Related to the Built-in EtherNet/IP Port

3-2 System-defined Variables

The variables are described in the tables as shown below.
Variable name Meaning Function Data type
This is the system- defined variable name. The prefix gives the category name.
This is the mean- ing of the vari- able.
The function of the variable is described. The data
type of the variable is given.
z Functional Classification: EtherNet/IP Communications Errors
Variable name Meaning Function Data type
_EIP_ErrSta Built-in
EtherNet/IP Error
_EIP_PortErr Communications
Port Error
This is the error status variable for the built-in EtherNet/IP port.
It represents the following error flags.
_EIP_PortErr (Communications Port Error)
_EIP_CipErr (CIP Communications Error)
_EIP_TcpAppErr (TCP Application Commu-
nications Error)
Note Refer to Meanings of Error Status Bits
given later for the meaning of individual bits.
This is the error status variable for the com- munications port.
It represents the following error flags.
_EIP_MacAdrErr (MAC Address Error)
_EIP_LanHwErr (Communications Control-
ler Error)
_EIP_EtnCfgErr (Basic Ethernet Setting
Error)
_EIP_IPAdrCfgErr (TCP/IP Basic Setting
Error)
_EIP_IPAdrDupErr (IP Address Duplication Error)
_EIP_BootpErr (BOOTP Server Error)
_EIP_IPRTblErr (TCP/IP Advanced Setting
Error)
Note If a Link OFF or Built-in EtherNet/IP
Processing Error occurs, it is recorded in the event log and then the corre- sponding bit turns ON. Refer to Mean- ings of Error Status Bits given later for the meaning of individual bits.
WORD 16#0000 to
WORD 16#0000 to
Range of
values
The range of values that the variable can take is given.
Range of
values
16#00F0
16#00F0
Reference
The page of the individual system- defined vari- able specifi- cations table is given.
Reference
page 3-10
page 3-11
3-2 System-defined Variables
3
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-3
Page 64
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name Meaning Function Data type
_EIP_CipErr CIP Communica-
tions Error
_EIP_TcpAppErr TCP
Application Com- munications Error
_EIP_MacAdrErr MAC Address
Error
_EIP_LanHwErr Communications
Controller Error
_EIP_EtnCfgErr Basic Ethernet
Setting Error
_EIP_IPAdrCfgErr TCP/IP Basic
Setting Error
_EIP_IPAdrDupErr IP Address Dupli-
cation Error
_EIP_BootpErr BOOTP Server
Error
This is the error status variable for CIP com- munications.
It represents the following error flags.
_EIP_IdentityErr (Identity Error)
_EIP_TDLinkCfgErr (Tag Data Link Setting Error)
_EIP_TDLinkOpnErr (Tag Data Link Con-
nection Failed)
_EIP_TDLinkErr (Tag Data Link Communi-
cations Error)
_EIP_TagAdrErr (Tag Name Resolution
Error)
_EIP_MultiSwONErr (Multiple Switches ON
Error)
Note If a Tag Resolution Error occurs, it is
recorded in the event log and this vari- able changes to TRUE. Refer to ings of Error Status Bits given later for the meaning of individual bits.
This is the error status variable for TCP appli- cation communications.
It represents the following error flags.
_EIP_TopAppCfgErr (TCP/IP Setting Error)
_EIP_NTPSrvErr (NTP Server Connection
Error)
_EIP_DNSSrvErr (DNS Server Connection
Error)
Note Refer to
given later for the meaning of individual bits.
Indicates that an error occurred when the MAC address was read at startup.
TRUE: Error FALSE: Normal TRUE: The communications controller failed. FALSE: Normal TRUE: The Ethernet communications speed
setting (Speed/Duplex) is incorrect. Or, a read operation failed.
FALSE: Normal TRUE:
There is an illegal IP address setting.
A read operation failed.
The IP address obtained from the BOOTP
server is inconsistent.
The DNS settings are not correct. FALSE: Normal TRUE: The same IP address is assigned to
more than one node. FALSE: Other than the above.
TRUE: There was a failure to connect to the BOOTP server (timeout).
FALSE: The BOOTP is not enabled, or BOOTP is enabled and an IP address was normally obtained from the BOOTP server.
Meanings of Error Status Bits
Mean-
WORD 16#0000 to
WORD 16#0000 to
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
Range of
values
16#00F0
16#00F0
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
Reference
page 3-11
page 3-11
page 3-12
page 3-12
page 3-12
page 3-12
page 3-12
page 3-13
3-4
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 65
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name Meaning Function Data type
_EIP_IPRTblErr TCP/IP
Advanced Setting Error
_EIP_IdentityErr Identity Error TRUE: The identity information (which you
_EIP_TDLinkCfgErr Tag Data Link
Setting Error
_EIP_TDLinkOpnErr Tag Data Link
Connection Failed
_EIP_TDLinkErr Tag Data Link
Communications Error
_EIP_TagAdrErr Tag Name
Resolution Error
_EIP_MultiSwONErr Multiple Switches
ON Error
_EIP_TcpAppCfgErr TCP/IP Setting
Error
_EIP_NTPSrvErr NTP Server Con-
nection Error
_EIP_DNSSrvErr DNS Server Con-
nection Error
TRUE: There is an error in one of the follow- ing settings. Or, a read operation failed.
IP router table settings
Hosts settings
FALSE: Normal
cannot overwrite) is not correct. Or, a read operation failed.
FALSE: Normal TRUE: The tag data link settings are incor-
rect. Or, a read operation failed. FALSE: Normal TRUE: The connection was not established
because the remote node information in the tag data link parameters was different from the actual node information.
Note This variable does not change to TRUE
if there is no remote node when the
power is turned ON. FALSE: Other than the above. TRUE: A timeout occurred in a tag data link
connection. FALSE: Other than the above. TRUE: Tag resolution failed (i.e., the address
could not be identified from the tag name). The following causes are possible.
The size of the network-published variable
does not agree with the tag setting.
The I/O direction that is set in the tag data
link settings does not agree with the I/O direction of the variable in the CPU Unit.
There is no network-published variable in
the CPU Unit that corresponds to the tag setting.
FALSE: Other than the above. TRUE: More than one data link start/stop
switch changed to TRUE at the same time. FALSE: Other than the above. TRUE: At least one of the set values for a
TCP/IP application (FTP, NTP, SNMP) is incorrect. Or, a read operation failed.
FALSE: Normal TRUE: The NTP client failed to connect to the
server (timeout). FALSE: NTP is not set or the connection was
successful. TRUE: The DNS client failed to connect to the
server (timeout). FALSE: DNS is not enabled. Or, DNS is
enabled and the connection was successful.
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
Range of
values
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
FAL SE
Reference
page 3-13
3-2 System-defined Variables
page 3-13
page 3-13
page 3-13
3
page 3-14
page 3-14
page 3-14
page 3-14
page 3-14
page 3-15
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-5
Page 66
3 System-defined Variables Related to the Built-in EtherNet/IP Port
z Meanings of Error Status Bits
15Bit: 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
WORD
Bit Meaning
15 Master-detected error: This bit indicates whether the master detected a Controller error in the Unit/slave for the
error status of the Controller error. TRUE: The master detected a Controller error. FALSE: The master has not detected a Controller error.
(Valid for
14 Collective slave error status: This bit indicates if a Controller error was detected for levels (e.g., a Unit, slave,
axis, or axes group) that are lower than the event source (i.e., for a function module). TRUE: A Controller error has occurred at a lower level. FALSE: A Controller error has not occurred at a lower level.
(Valid for _CJB_ErrSta, _MC_ErrSta, and _EC_ErrSta.)
8 to 13 Not used. 7 This bit indicates whether a major fault level Controller error has occurred.
TRUE: A major fault level Controller error has occurred. FALSE: A major fault level Controller error has not occurred.
6 This bit indicates whether a partial fault level Controller error has occurred.
TRUE: A partial fault level Controller error has occurred. FALSE: A partial fault level Controller error has not occurred.
5 This bit indicates whether a minor fault level Controller error has occurred.
TRUE: A minor fault level Controller error has occurred. FALSE: A minor fault level Controller error has not occurred.
4 This bit indicates whether an observation level Controller error has occurred.
TRUE: An observation level Controller error has occurred. FALSE: An observation level Controller error has not occurred.
0 to 3 Not used.
_CJB_U_ErrSta and _EC_SlvErrTbl.)
Note Bits 14 and 15 are never TRUE for the built-in EtherNet/IP port.
Precautions for Correct UsePrecautions for Correct Use
Do not use _ErrSta (Controller Error Status), _CJB_ErrSta (I/O Bus Error Status), _CJB_MstrErrSta (I/O Bus Master Error Status), and _CJB_UnitErrSta (I/O Bus Unit Error Sta-
tus) in the user program. There may be a delay in updating them and concurrency problems may occur with function module error status. Use this variable only to access status through commu- nications from an external device.
3-6
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 67
3 System-defined Variables Related to the Built-in EtherNet/IP Port
z Functional Classification: EtherNet/IP Communications Status
You can check the status of the built-in EtherNet/IP port (e.g., communications status).
Variable name Meaning Function Data type
_EIP_EtnOnlineSta Online TRUE: The built-in EtherNet/IP port’s com-
_EIP_TDLinkRunSta Tag Data Link
Communications Status
_EIP_TDLinkAllRunSta All Tag Data Link
Communications Status
_EIP_RegTargetSta [255] Registered
Target Node Information
_EIP_EstbTargetSta [255] Normal Target
Node Information
_EIP_TargetPLCModeSta [255]
Target PLC Oper- ating Mode
munications can be used. (The link is ON
and IP address is defined. Also, there are
no errors.)
FALSE: The built-in EtherNet/IP port’s com-
munications is disabled due to an error in
initial processing or restart processing.
TRUE: At least one connection is in normal
operation.
FALSE: Other than the above.
TRUE: Tag data links are communicating in
all connections as the originator.
FALSE: An error occurred in at least one
connection.
This variable gives a list of nodes for which
built-in EtherNet/IP connections are regis-
tered.
This variable is valid only when the built-in
EtherNet/IP port is the originator.
Array[x] is TRUE: The connection to the
node with a target node ID of x is regis-
tered.
Array[x] is FALSE: The connection to the
node with a target node ID of x is not regis-
tered.
This variable gives a list of nodes that have
normally established built-in EtherNet/IP
connections.
Array[x] is TRUE: The connection to the
node with a target node ID of x was estab-
lished normally.
Array[x] is FALSE: The connection to the
node with a target node ID of x was not
established, or an error occurred.
This variable shows the operating status of
the target node Controllers that are con-
nected with the built-in EtherNet/IP port as
the originator.
The array elements are valid only when the
corresponding Normal Target Node Infor-
mation is TRUE. If the corresponding Nor-
mal Target Node Information is FALSE, the
Target Node Controller Operating Informa-
tion indicates the previous operating status.
Array[x] is TRUE: This is the operating state
of the target Controller with a node address
of x.
Array[x] is FALSE: Other than the above.
Range of
values
BOOL TRUE or
BOOL TRUE or
BOOL TRUE or
ARRAY [0..255] OF BOOL
ARRAY [0..255] OF BOOL
ARRAY [0..255] OF BOOL
FAL SE
FAL SE
FAL SE
TRUE or FAL SE
TRUE or FAL SE
TRUE or FAL SE
Reference
page 3-15
page 3-15
page 3-15
page 3-15
page 3-16
page 3-16
3-2 System-defined Variables
3
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-7
Page 68
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name Meaning Function Data type
_EIP_TargetPLCErr [255] Target PLC Error
Information
_EIP_TargetNodeErr [255] Target Node
Error Information
_EIP_NTPResult NTP Operation
Information
.ExecTime NTP Last
Operation Time
.ExecNormal NTP Operation
Result
This variable shows the error status (logical OR of fatal and non-fatal errors) of the tar- get node Controllers that are connected with the built-in EtherNet/IP ports as the originator. The array elements are valid only when the corresponding Normal Target Node Information is TRUE. The immedi- ately preceding value is retained if this vari- able is FALSE.
Array[x] is TRUE: A fatal or non-fatal error occurred in the target Controller with a tar- get node ID of x.
Array[x] is FALSE: Other than the above. This variable indicates that the connection
for the Registered Target Node Information was not established or that an error occurred in the target Controller. The array elements are valid only when the Regis- tered Target Node Information is TRUE.
Array[x] is TRUE: A connection was not nor- mally established with the target node for a target node ID of x (the Registered Target Node Information is TRUE and the Normal Target Node Information is FALSE), or a connection was established with the target node but an error occurred in the target Controller.
Array[x] is FALSE: The target node is not registered for a target node ID of x (the Registered Target Node Information is FALSE), or a connection was normally established with the target node (the Regis- tered Target Node Information is TRUE and the Normal Target Node Information is TRUE). An error occurred in the target Controller (the Target PLC Error Information is TRUE.).
Use the GetNTPStatus instruction to read the NTP operation information from the user program. Direct access is not possible.
Gives the last time that NTP processing ended normally. The time that was obtained from the NTP server is stored when the time is obtained normally. The time is not stored if it is not obtained from the NTP server normally.
Note Do not use this variable in the user
program. There may be a delay in updating it. Use this variable only to access status through communica- tions from an external device.
TRUE: Indicates an NTP normal end. FALSE: Indicates that NTP operation ended
in an error or has not been executed even once.
Note Do not use this variable in the user
program. There may be a delay in updating it. Use this variable only to access status through communica- tions from an external device.
Range of
values
ARRAY [0..255] OF BOOL
ARRAY [0..255] OF BOOL
_sNTP_ RESULT
DATE_ AND_ TIME
BOOL TRUE or
TRUE or FAL SE
TRUE or FAL SE
Depends on data type.
FAL SE
Reference
page 3-16
page 3-16
page 3-17
page 3-17
page 3-17
3-8
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 69
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Additional Information
Relationships between the Target Node Information Tables
Registered Target Node Information
Registered Tar- get Node Infor-
mation
(_EIP_RegTarget
Sta)
TRUE TRUE FALSE FALSE A connection with
FALSE Disabled Disabled Disabled The information is
Valid only when
_EIP_RegTargetSta is
TRUE
Normal Target Node
Information
(_EIP_EstbTargetSta)
FALSE Disabled TRUE A connection with
Normal Target Node
Information
Valid only when
_EIP_EstbTargetSta
is TRUE
Target PLC Error
Information
(_EIP_EIP_TargetPLC
Err)
TRUE TRUE A connection with
Registered Target Node Information
Valid only when
_EIP_RegTargetSta is
TRUE
Target Node Error
Information
(_EIP_Targ etNodeErr)
Description
the target node was established nor- mally and there is no error in the tar- get PLC.
the target node was established but there is an error in the target PLC.
the target node was not established nor- mally.
not valid because the target node is not registered.
3-2 System-defined Variables
3
z Functional Classification: EtherNet/IP Communications Switches
You can start and stop tag data links.
Variable name Meaning Function Data type
_EIP_TDLinkStartCmd Tag Data Link
Communications Start Switch
_EIP_TDLinkStopCmd Tag Data Link
Communications Stop Switch
You can start and stop tag data links.
Additional Information
There is a system-defined variable for communications that is related to FINS/TCP* communica- tions.
Variable
name
FINSTCP- ConnSta
* You can use FINS message communications with NJ-series Controllers. However, not all memory areas
in the NJ-series CPU Unit can be accessed. If you require this functionality, e.g., to connect to existing systems, consult with your OMRON representative.
Meaning Description Data type
FINS/TCP Connection Status
This is the start switch for data links. BOOL TRUE or
This is the stop switch for data links. BOOL TRUE or
This is the FINS/TCP connection status.
Opera-
tion/refresh
timing
WORD Anytime 16#0000 to
Range of
values
16#FFFF
Range of
values
FAL SE
FAL SE
Default R/W access
0 R None
Reference
page 3-17
page 3-17
Related instruc-
tions
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-9
Page 70
3 System-defined Variables Related to the Built-in EtherNet/IP Port
3-3 Specifications for Individual System-
defined Variables
The specifications for each system-defined variable are given as described below.
Variable name This is the system-defined variable name. The prefix
Meaning This is the meaning of the variable. Global/local Global: Global variable, Local: Local
Function The function of the variable is described. Data type The data type of the variable is given. Range of values The range of values that the vari-
R/W access R: Read only,
Usage in user program Whether you
gives the category name.
Retained The Retain
RW: Read/write
can use the vari- able directly in the user pro- gram is speci- fied.
Related instruc- tions
attribute of the variable is given.
The instructions that are related to the variable are given. If you cannot use the variable directly in the user program, the instructions
that access the variable are given.
Members The member names are given for
structure variables.
variable
able can take is given.
Network Publish The Network Publish attribute of the
variable is given.
z Functional Classification: EtherNet/IP Communications Errors
Variable name _EIP_ErrSta Meaning Built-in EtherNet/IP Error Global/local Global Function This is the error status variable for the built-in EtherNet/IP port.
It represents the following error flags.
_EIP_PortErr (Communications Port Error)
_EIP_CipErr (CIP Communications Error)
_EIP_TcpAppErr (TCP Application Communications Error) Note Refer to Meanings of Error Status Bits given later for the meaning of individual bits.
Data type WORD Range of values 16#0000 to 16#00F0 R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
You can access this variable from the user program with the following instruction.
GetEIPError
3-10
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 71
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_PortErr Meaning Communications Port Error Global/local Global Function This is the error status variable for the communications port.
It represents the following error flags.
_EIP_MacAdrErr (MAC Address Error)
_EIP_LanHwErr (Communications Controller Error)
_EIP_EtnCfgErr (Basic Ethernet Setting Error)
_EIP_IPAdrCfgErr (TCP/IP Basic Setting Error)
_EIP_IPAdrDupErr (IP Address Duplication Error)
_EIP_BootpErr (BOOTP Server Error)
_EIP_IPRTblErr (TCP/IP Advanced Setting Error) Note If a link OFF or Built-in EtherNet/IP Processing Error occurs, it is recorded in the event log and then corre-
sponding bit turns ON. Refer to Meanings of Error Status Bits given later for the meaning of individual bits.
Data type WORD Range of values 16#0000 to 16#00F0 R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
You can access this variable from the user program with the following instruction.
GetEIPError
3-3 Specifications for Individual System-defined
Variables
3
Variable name _EIP_CipErr Meaning CIP Communications Error Global/local Global Function This is the error status variable for CIP communications.
It represents the following error flags.
_EIP_IdentityErr (Identity Error)
_EIP_TDLinkCfgErr (Tag Data Link Setting Error)
_EIP_TDLinkOpnErr (Tag Data Link Connection Failed)
_EIP_TDLinkErr (Tag Data Link Communications Error)
_EIP_TagAdrErr (Tag Name Resolution Error)
_EIP_MultiSwOnErr (Multiple Switches ON Error) Note If a Tag Resolution Error occurs, it is recorded in the event log and this variable changes to TRUE. Refer to
Meanings of Error Status Bits given later for the meaning of individual bits.
Data type WORD Range of values 16#0000 to 16#00F0 R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TcpAppErr Meaning TCP Application Communications Error Global/local Global Function This is the error status variable for TCP application communications.
It represents the following error flags.
_EIP_TcpAppCfgErr (TCP/IP Setting Error)
_EIP_NTPSrvErr (NTP Server Connection Error)
_EIP_DNSSrvErr (DNS Server Connection Error)
Note Refer to Meanings of Error Status Bits given later for the meaning of individual bits.
Data type WORD Range of values 16#0000 to 16#00F0 R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
You can access this variable from the user program with the following instruction.
GetEIPError
You can access this variable from the user program with the following instruction.
GetEIPError
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-11
Page 72
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_MacAdrErr Meaning MAC Address Error Global/local Global Function Indicates that an error occurred when the MAC address was read at startup.
TRUE: Error
FALSE: Normal Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_LanHwErr Meaning Communications Controller Error Global/local Global Function TRUE: The communications controller failed.
FALSE: Normal Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
Variable name _EIP_EtnCfgErr Meaning Basic Ethernet Setting Error Global/local Global Function TRUE: The Ethernet communications speed setting (Speed/Duplex) is incorrect. Or, a read operation failed.
FALSE: Normal Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_IPAdrCfgErr Meaning TCP/IP Basic Setting Error Global/local Global Function TRUE:
There is an illegal IP address setting.
A read operation failed.
The IP address obtained from the BOOTP server is inconsistent.
The DNS settings are not correct.
FALSE: Normal Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
Variable name _EIP_IPAdrDupErr Meaning IP Address Duplication Error Global/local Global Function TRUE: The same IP address is assigned to more than one node.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
3-12
---
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 73
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_BootpErr Meaning BOOTP Server Error Global/local Global Function TRUE: There was a failure to connect to the BOOTP server (timeout).
FALSE: The BOOTP is not enabled, or BOOTP is enabled and an IP address was normally obtained from the
BOOTP server. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_IPRTblErr Meaning TCP/IP Advanced Setting Error Global/local Global Function TRUE: There is an error in one of the following settings. Or, a read operation failed.
IP router table settings
Hosts settings
FALSE: Normal. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
3-3 Specifications for Individual System-defined
Variables
3
Variable name _EIP_IdentityErr Meaning Identity Error Global/local Global Function TRUE: The identity information (which you cannot overwrite) is not correct. Or, a read operation failed.
FALSE: Normal. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TDLinkCfgErr Meaning Tag Data Link Setting Error Global/local Global Function TRUE: The tag data link settings are incorrect. Or, a read operation failed.
FALSE: Normal. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TDLinkOpnErr Meaning Tag Data Link Connection Failed Global/local Global Function TRUE: The connection was not established because the remote node information in the tag data link parameters
was different from the actual node information.
Note This variable does not change to TRUE if there is no remote node when the power is turned ON.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
---
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-13
Page 74
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_TDLinkErr Meaning Tag Data Link Communications Error Global/local Global Function TRUE: A timeout occurred in a tag data link connection.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TagAdrErr Meaning Tag Name Resolution Error Global/local Global Function TRUE: Tag resolution failed (i.e., the address could not be identified from the tag name). The following causes are
possible.
The size of the network-published variable does not agree with the tag setting.
The I/O direction that is set in the tag data link settings does not agree with the I/O direction of the vari-
able in the CPU Unit.
There is no network-published variable in the CPU Unit that corresponds to the tag setting.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
Variable name _EIP_MultiSwONErr Meaning Multiple Switches ON Error Global/local Global Function TRUE: More than one data link start/stop switch changed to TRUE at the same time.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TcpAppCfgErr Meaning TCP/IP Setting Error Global/local Global Function TRUE: At least one of the set values for a TCP/IP application (FTP, NTP, SNMP) is incorrect. Or, a read operation
failed.
FALSE: Normal. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_NTPSrvErr Meaning NTP Server Connection Error Global/local Global Function TRUE: The NTP client failed to connect to the server (timeout).
FALSE: NTP is not set or the connection was successful. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
---
3-14
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 75
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_DNSSrvErr Meaning DNS Server Connection Error Global/local Global Function TRUE: The DNS client failed to connect to the server (timeout).
FALSE: DNS is not enabled. Or, DNS is enabled and the connection was successful. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
3-3 Specifications for Individual System-defined
z Functional Classification: EtherNet/IP Communications Status
Variable name _EIP_EtnOnlineSta Meaning Online Global/local Global Function TRUE: The built-in EtherNet/IP port’s communications can be used. (The link is ON and IP address is defined.
Also, there are no errors).
FALSE: The built-in EtherNet/IP port’s communications is disabled due to an error in initial processing or restart
processing. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TDLinkRunSta Meaning Tag Data Link Communications Status Global/local Global Function TRUE: At least one connection is in normal operation.
FALSE: Other than the above. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
Variables
3
Variable name _EIP_TDLinkAllRunSta Meaning All Tag Data Link Communications Status Global/local Global Function TRUE: Tag data links are communicating in all connections as the originator.
FALSE: An error occurred in at least one connection. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_RegTargetSta [255] Meaning Registered Target Node Information Global/local Global Function This variable gives a list of nodes for which built-in EtherNet/IP connections are registered.
This variable is valid only when the built-in EtherNet/IP port is the originator.
Array[x] is TRUE: The connection to the node with a target node ID of x is registered.
Array[x] is FALSE: The connection to the node with a target node ID of x is not registered.
Data type ARRAY [0..255] OF BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-15
Page 76
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_EstbTargetSta [255] Meaning Normal Target Node Information Global/local Global Function This variable gives a list of nodes that have normally established EtherNet/IP connections.
Array[x] is TRUE: The connection to the node with a target node ID of x was established normally. Array[x] is FALSE: The connection to the node with a target node ID of x was not established, or an error
occurred. Data type ARRAY [0..255] OF BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TargetPLCModeSta [255] Meaning Target PLC Operating Mode Global/local Global Function This variable shows the operating status of the target node Controllers that are connected with the built-in Ether-
Net/IP port as the originator.
The array elements are valid only when the corresponding Normal Target Node Information is TRUE.
If the corresponding Normal Target Node Information is FALSE, the Target Node Controller Operating Information
indicates the previous operating status.
Array[x] is TRUE: This is the operating state of the target Controller with a node address of x.
Array[x] is FALSE: Other than the above.
Data type ARRAY [0..255] OF BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
Variable name _EIP_TargetPLCErr [255] Meaning Target PLC Error Information Global/local Global Function This variable shows the error status (logical OR of fatal and non-fatal errors) of the target node Controllers that
are connected with the built-in EtherNet/IP ports as the originator.
The array elements are valid only when the corresponding Normal Target Node Information is TRUE.
The immediately preceding value is retained if this variable is FALSE.
Array[x] is TRUE: A fatal or non-fatal error occurred in the target Controller with a target node ID of x.
Array[x] is FALSE: Other than the above.
Data type ARRAY [0..255] OF BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TargetNodeErr Meaning Target Node Error Information Global/local Global Function This variable indicates that the connection for the Registered Target Node Information was not established or that
an error occurred in the target Controller.
The array elements are valid only when the Registered Target Node Information is TRUE.
Array[x] is TRUE: A connection was not normally established with the target node for a target node ID of x (the
Registered Target Node Information is TRUE and the Normal Target Node Information is FALSE), or a connection
was established with the target node but an error occurred in the target Controller.
Array[x] is FALSE: The target node is not registered for a target node ID of x (the Registered Target Node Informa-
tion is FALSE), or a connection was normally established with the target node (the Registered Target Node Infor-
mation is TRUE and the Normal Target Node Information is TRUE). An error occurred in the target Controller (the
Target PLC Error Information is TRUE). Data type ARRAY [0..255] OF BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
3-16
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 77
3 System-defined Variables Related to the Built-in EtherNet/IP Port
Variable name _EIP_NTPResult Members .ExecTime Meaning NTP Last Operation Time Global/local Global Function Gives the last time that NTP processing ended normally.
The time that was obtained from the NTP server is stored when the time is obtained normally. The time is not stored if it is not obtained from the NTP server normally.
Note Do not use this variable in the user program. There may be a delay in updating it. Use this variable only to
access status through communications from an external device.
Data type Structure: _sNTP_RESULT
Members: DATE_AND_TIME R/W access R Retained Not retained. Network Publish Published. Usage in user program Not possible. Related instruc-
tions
Variable name _EIP_NTPResult Members .ExecNormal Meaning NTP Operation Result Global/local Global Function This variable shows if the NTP operation ended normally.
TRUE: Indicates an NTP normal end.
FALSE: Indicates that NTP operation ended in an error or has not been executed even once.
Note Do not use this variable in the user program. There may be a delay in updating it. Use this variable only to
access status through communications from an external device. Data type BOOL Range of values TRUE or FALSE R/W access R Retained Not retained. Network Publish Published. Usage in user program Not possible Related instruc-
tions
You can read the contents of this variable with the GetNTPStatus instruc- tion.
You can read the contents of this variable with the GetNTPStatus instruc- tion.
Range of values Depends on data type.
3-3 Specifications for Individual System-defined
Variables
3
z Functional Classification: EtherNet/IP Communications Switches
Variable name _EIP_TDLinkStartCmd Meaning Tag Data Link Communications Start Switch Global/local Global Function This is the start switch for data links. Data type BOOL Range of values TRUE or FALSE R/W access RW Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
Variable name _EIP_TDLinkStopCmd Meaning Tag Data Link Communications Stop Switch Global/local Global Function This is the stop switch for data links. Data type BOOL Range of values TRUE or FALSE R/W access RW Retained Not retained. Network Publish Published. Usage in user program Possible. Related instruc-
tions
---
---
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
3-17
Page 78
3 System-defined Variables Related to the Built-in EtherNet/IP Port
3-18
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 79
Determining IP Addresses
4-1 IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4-1-1 IP Address Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4-1-2 Allocating IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4-1-3 Subnet Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4-1-4 CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4-2 Built-in EtherNet/IP Port IP Address Settings . . . . . . . . . . . . . . . . . . . . . . . 4-4
4-2-1 Determining IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
4-2-2 Setting IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
4-2-3 Online Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4-2-4 Checking the Current IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
4-3 Private and Global Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
4-3-1 Private and Global Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
4-3-2 Using a Private Address for the Built-in EtherNet/IP Port . . . . . . . . . . . . . . . 4-11
4-3-3 Using a Global Address for the Built-in EtherNet/IP Port . . . . . . . . . . . . . . . . 4-12
4
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-1
Page 80
4 Determining IP Addresses

4-1 IP Addresses

4-1-1 IP Address Configuration

IP addresses are made up of 32 bits of binary data that specify the network number (net ID) and host number (host ID). The network number identifies the network, and the host number identifies the node (or host) on the network. IP addresses are divided into three classes, A, B, and C, so that the address system can be selected according to the scale of the network. (Classes D and E are not used.)
Class A
Bit 31
0
23 0
Host ID (24 bits)Network ID (7 bits)
Class B
Class C
Class D
Class E
Bit 31
1
Bit 31
1
Bit 31
1
Bit 31
101101
Network ID (14 bits)
0
10
11
Network ID (21 bits)
15 0
Host ID (16 bits)
70
Host ID (8 bits)
Multicast address
Experimental address
0
(Cannot be used.)
(Cannot be used.)
The number of networks in each class and the number of hosts possible on the network differ according to the class.
Class Number of networks Number of hosts
Class A Small Class B Medium Class C Large
24
2 max. (16,777,214 max.)
2
16
2 max. (65,534 max.)
2
8
2 max. (254 max.)
2
The 32 bits of binary data in an IP address are divided into four sections of eight bits each. IP addresses are represented by the decimal equivalent of each of the four octets in the 32-bit address, each separated by a period.
For example, the binary address 10000010 00111010 00010001 00100000 would be represented as
130.58.17.32.
4-2
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 81
4-1-2 Allocating IP Addresses
You must assign IP addresses nodes so that each IP address is assigned only once in the network or between several networks.

4-1-3 Subnet Masks

Operation and management of a network can become very difficult if too many nodes are connected on a single network. In such a case it can be helpful to configure the system so that a single network is divided up into several subnetworks. Internally the network can be treated as a number of subnetworks, but from the outside it acts as a single network and uses only a single network ID. To establish subnet- works, the host ID in the IP address is divided into a subnet ID and a host ID by using a setting called the subnet mask. The subnet mask indicates which part of the host ID is to be used as the subnet ID. All bits in the subnet mask that correspond to the bits in the IP address used either as the network ID or subnet ID are set to “1, and the remaining bits, which correspond to the bits in the IP address actually used for the host ID, are set to 0.
The following example shows the subnet mask for an 8-bit subnet ID used in class-B IP addresses.
Bit 31 15
Class B
0
1
4 Determining IP Addresses
4-1 IP Addresses
Host number (16 bits)Network number (14 bits)
0
4
Subnet mask
Set the same subnet mask for all of the nodes on that subnetwork. The built-in EtherNet/IP port sup- ports CIDR (Classless Inter-Domain Routing). The subnet mask can be set to 192.0.0.0 to
255.255.255.252. If subnetworks are not used, set the following subnet mask values for IP address classes A to C.
Class A 255.0.0.0 Class B 255.255.0.0 Class C 255.255.255.0

4-1-4 CIDR

CIDR, or classless interdomain routing, is used to assign IP addresses that do not use classes. IP addresses that use classes are separated into blocks according to network IDs and host IDs, resulting in inefficient usage of IP address space. CIDR does not use classes, so IP address space can be divided as required to more efficiently use IP address space. For example, using a subnet mask setting with CIDR enables building a horizontally distributed network exceeding 254 nodes even if a class C address block (e.g., 192, 168...) is used.
192.0.0.0 to 255.255.255.252
1111111111111111 1111111100000000 FF FF FF 00
Host IDSubnet IDNetwork ID
Class Subnet mask
Subnet Mask Range

4-1-2 Allocating IP Addresses

NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-3
Page 82
4 Determining IP Addresses
4-2 Built-in EtherNet/IP Port IP Address
Settings

4-2-1 Determining IP Addresses

Use one of the following methods to set the IP address of the built-in EtherNet/IP port.
Setting a User-specified IP Address
If you need to change the default IP address of the built-in EtherNet/IP port or if you need to use the built-in EtherNet/IP port with another EtherNet/IP node, set the IP address to the required value.
Automatically Obtaining the IP Address from the BOOTP Server
There are two methods to automatically obtain an IP address.
Obtain the IP address from the BOOTP server each time the power is turned ON.
Obtain the IP address from the BOOTP server once when the power is turned ON and then do not
allow it to change.
BOOTP server
IP address
BOOTP command
NJ-series Controller NJ-series Controller
BOOTP client
Ethernet
4-4
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 83
4-2-2 Setting IP Addresses
Use the Sysmac Studio to set the IP address of the built-in EtherNet/IP port.
1
Select the setting method for IP addresses. Make the following settings on the TCP/IP Settings Display of the Built-in EtherNet/IP Port Set-
tings Tab Page in the Controller Setup to set the local IP address.
2
Connect the Sysmac Studio to the NJ-series CPU Unit via a USB connection or the Ethernet network.
4 Determining IP Addresses
4-2 Built-in EtherNet/IP Port IP Address Settings
Used to set a user-specified IP address.
Used to obtain the IP address from the BOOTP server each time the power is turned ON.
Used to obtain the IP address from the BOOTP server once and then not change it.
3
Connect the Sysmac Studio online to the NJ-series CPU Unit. Refer to 4-2-3 Online Connection for the procedure to connect online.
4
Use one of the following methods to download the IP addresses that were set on the Sysmac Studio to the NJ-series CPU Unit.
Go online with the Controller, and then select Synchronization from the Controller Menu.
The data on the computer and the data in the physical Controller are compared automatically.
Click the Transfer to Controller Button.
Note Use the Synchronization Menu of the Sysmac Studio to upload and download data.
5
After the IP address settings are downloaded, the IP address is reflected in the CPU Unit as fol- lows:
Setting a User-specified IP Address
After the IP address settings are downloaded, the set IP address is automatically saved in the CPU Unit.
Obtaining the IP Address from the BOOTP Server Each Time the Power Is Turned ON
After the data is downloaded, the IP address from the BOOTP server is automatically saved in the CPU Unit. Each time the power supply is turned ON, the IP address from the BOOTP server is automatically saved in the CPU Unit.
Additional Information
4

4-2-2 Setting IP Addresses

If you cannot obtain the IP address from the BOOTP server or the obtained IP address is not cor- rect, select the Fixed setting Option in the IP Address Area and manually set the IP address, subnet mask, and default gateway. Requests to the BOOTP server to obtain the IP address will continue if there is a failure to connect to the BOOTP server.
Obtaining the IP Address from the BOOTP Server Once When the Power Is Turned ON and Then Not Allow It to Change
After the I/O address is downloaded, the IP address from the BOOTP server is automatically saved in the Controller and then the same address is used.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-5
Page 84
4 Determining IP Addresses
1
Additional Information
The TCP/IP Settings Display is not updated even if the IP address is obtained normally from
the BOOTP server. To check the IP address that was obtained from the BOOTP server on the TCP/IP Display, upload the project from the NJ-series Controller.
If you cannot obtain the IP address from the BOOTP server, the
from BOOTP server Option is selected on the TCP/IP Display. Select Fixed Setting in the IP Address Settings and manually set the IP address, subnet mask, and default gateway.
If the Controller power supply is turned ON when the IP address was not normally obtained
from the BOOTP server, the setting remains at Fix at the IP address obtained from BOOTP
server
.
After the IP address is obtained from the BOOTP server, the built-in EtherNet/IP port IP
address setting is automatically set to Fixed setting. Therefore, the IP address will not match when the program is verified on the Sysmac Studio.
Additional Information
Fix at the IP address obtained
When the local IP address of the built-in EtherNet/IP is set, the FINS node address is automati- cally set as follows:
Example: Pairing IP Addresses and FINS Node Addresses with Automatic Creation Method
TCP/IP Settings Display
Host number (last 8 bits of the IP address)
After the IP address is obtained from the BOOTP server, the node address of the built-in EtherNet/IP FINS is set.
FINS Settings Display
The same value as the host number is set.
When FINS node address are created automati- cally, the FINS node address is the host ID and it cannot be changed. It can be changed if you use both methods or an IP address table method.
The FINS node address is required for FINS communications (e.g., to connect to the CX-Integra- tor and other Support Software).
Note You can use FINS message communications with NJ-series Controllers. However, not all memory areas in
the NJ-series CPU Unit can be accessed. If you require this functionality, e.g., to connect to existing sys- tems, consult with your OMRON representative.
4-6
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 85
4-2-3 Online Connection
Connect the Sysmac Studio online to the NJ-series CPU Unit.
Types of Connections between the CPU Unit and Computer That Runs the Sysmac Studio
The CPU Unit and the computer that runs Sysmac Studio are connected as shown below via USB or Ethernet:
USB Connection
USB Direct Connection
Sysmac Studio
USB connection
4 Determining IP Addresses
4-2 Built-in EtherNet/IP Port IP Address Settings
Ethernet Connection
1:1 Ethernet Direct Connection through AutoIP 1:N Ethernet Switch Connection
Ethernet
Note A Ethernet switch is required to connect. Refer to
Note 1 A Ethernet switch is not necessarily required.
2 You can use a straight or cross Ethernet cable
to connect.
Ethernet
2-1-5 Precautions for Ethernet Switch Selection
for details.
Connection from USB Across Ethernet
1:N USB Remote Connection
USB
Note A Ethernet switch is required to connect. Refer to
Precautions for Ethernet Switch Selection for details.
Ethernet
2-1-5
4

4-2-3 Online Connection

Additional Information
Auto IP automatically assigns IP addresses in Windows 98 and later operating systems. Unique IP addresses are automatically assigned from the address 169.254.0.0 to 169.254.255.255.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-7
Page 86
4 Determining IP Addresses
Online Connection Procedure
Connect the CPU Unit and the computer that runs the Sysmac Studio via USB or Ethernet, and then perform the following procedure.
1
Select Controller Communications Setup and click the OK Button in the Sysmac Studio Project Window.
1:1 Connection 1:N Connection
Direct Connection
EtherNet/IP Connection
EtherNet/IP Connection
Additional Information
If there is an error in the set IP address, the NJ-series CPU Unit behaves as follows:
The NET RUN indicator on the CPU Unit does not light and the NET ERR indicator flashes
red.
A TCP/IP Basic Settings Error is recorded in the event log.
If you use a USB direct connection or an Ethernet direction connection, it is possible to reset the IP address because the Sysmac Studio can connect to the CPU Unit via the built-in EtherNet/IP port.
Precautions for Correct UsePrecautions for Correct Use
If the IP address is duplicated or not set correctly, communications are not possible via the
EtherNet/IP network.
The IP address range shown below is used by the system and cannot be specified.
169.254.0.0 to 169.254.255.255
192.168.255.0 to 192.168.255.255
Connecting from a Saved Project
The connection configuration that is set (USB or EtherNet/IP) is saved in the project. (The file is xxx.txs.) If you open a saved project on the Sysmac Studio, you can connect to the EtherNet/IP network without redoing the settings.
4-8
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 87

4-2-4 Checking the Current IP Address

The current IP address can be confirmed in the Controller Status Pane of the Sysmac Studio either when it is set manually or obtained from the BOOTP server.
Basic Controller Status Pane Controller Status Pane with Details
4 Determining IP Addresses
4-2 Built-in EtherNet/IP Port IP Address Settings
Additional Information
If you change the IP address setting from the Obtain from BOOTP server. Option to the Fix at the IP address obtained from BOOTP server Option and synchronize the Controller Setup from the
Sysmac Studio, you can check the IP address that was obtained from the BOOTP server.
4
4-2-4 Checking the Current IP
Address
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-9
Page 88
4 Determining IP Addresses

4-3 Private and Global Addresses

4-3-1 Private and Global Addresses

There are two kinds of IP addresses, private and global.
IP address Description
Global address These are IP addresses that connect directly to the Internet.
Allocated by application to NIC, each address is unique in the world, and as many as 4.3 billion can be allocated world- wide.
Private address These are IP addresses for Intranet (LAN) use. Direct con-
nection to the Internet is not possible. Frames that include private IP addresses are restricted by the router from being sent outside the LAN.
Generally, as shown below, global addresses in the intranet are allocated only to IP routers (such as broadband routers) interfaced with the Internet. All other nodes in the intranet, which includes the built- in EtherNet/ IP port, are allocated private addresses.
Intranet
IP router
Firewall
Intranet
Global address
Private address
Personal computer
(e.g., Sysmac Studio)
Firewall
IP router
Internet
Ethernet (EtherNet/IP)
Controller
Ethernet (EtherNet/IP)
Private address
Global address
Personal computer
(e.g., Sysmac Studio)
Private addressPrivate address
Controller
Controller
(required)
Private address
Cannot connect to Internet
Cannot connect to Internet
Private address
4-10
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 89
4 Determining IP Addresses

4-3-2 Using a Private Address for the Built-in EtherNet/IP Port

Intranet
Intranet
IP router
Firewall
CIP client on a computer, such as Sysmac Studio or Network Configurator
Firewall
IP router
Built-in EtherNet/IP port: Private address
Internet
Communications in intranet
Ethernet (EtherNet/IP)
Ethernet (EtherNet/IP)
Communications in intranet
Controller
CIP client on a computer, such as Sysmac Studio or Network Configurator
Explicit message
Explicit message
4-3 Private and Global Addresses
4
4-3-2 Using a Private Address for
the Built-in EtherNet/IP Port
Controller
Communications in intranet
Built-in EtherNet/IP port: Private address
Built-in EtherNet/IP port: Private address
Controller
z Conditions for Communications Applications
If the built-in EtherNet/IP port uses a private address, you can use explicit message communications service under the following conditions.
The explicit message communications service can be executed on the intranet between built-in
EtherNet/IP ports with private addresses only.
A device such as a personal computer (CIP applications including the Network Configurator) can-
not connect online and communicate over the Internet with a built-in EtherNet/IP port that has a private address. Explicit message communications are also not possible over the Internet between built-in EtherNet/IP ports with private addresses.
Precautions for Correct UsePrecautions for Correct Use
Network Security and Firewalls
To set up an intranet through a global address involves network security considerations. Be sure to consult with a network specialist in advance and consider installation of a firewall. After a fire- wall has been set up by a communications company technician, there may be some applications that cannot be used. Be sure to check first with the communications company technician.
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
4-11
Page 90
4 Determining IP Addresses

4-3-3 Using a Global Address for the Built-in EtherNet/IP Port

Intranet
CIP client on a computer, such as Network Configurator
Ethernet (EtherNet/IP)
Communications over Internet
Firewall
IP router
Private address
Cannot connect to Internet
Cannot connect to Internet
Private address
Intranet
IP router
Firewall
Communications in intranet
Global address
Private address
Ethernet (EtherNet/IP)
Built-in EtherNet/IP port: Global address
Internet
Controller
Global address
(required)
z Conditions for Communications Applications
You can use the explicit message communications service over the Internet under the following con- ditions.
A device such as a personal computer (a CIP application including the Network Configurator) can
connect online and communicate over the Internet with a built-in EtherNet/IP port that has a global address.
The TCP port number (44818) or UDP port number (44818) that is used for EtherNet/IP cannot be
used because it is prohibited by a firewall in the communications path.
4-12
Precautions for Correct UsePrecautions for Correct Use
Network Security and Firewalls
To set a global IP address for a built-in EtherNet/IP port involves network security considerations. It is recommended that the user contract with a communications company for a dedicated line, rather than for a general line such as a broadband line. Also, be sure to consult with a network specialist and consider security measures such as a firewall. After a firewall has been set up by a communications technician, there may be some applications that cannot be used. Be sure to check first with the communications technician.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 91
Sysmac Studio Settings for the Built-in EtherNet/IP Port
5-1 TCP/IP Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5-2 Link Settings Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
5-3 FTP Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5
5-4 NTP Settings Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6
5-5 SNMP Settings Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5-6 SNMP Trap Settings Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9
5
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
5-1
Page 92
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-1 TCP/IP Display

z Setting the IP Addresses
Setting Description Default
IP Address Select the setting method for the IP address for the built-in
EtherNet/IP port.
Fixed setting
Obtain from BOOTP server.
Fix at the IP address obtained from BOOTP server.
IP address Subnet mask Default gateway
* These settings are required if you select
*
*
*
Set the IP address for the built-in EtherNet/IP port. 192.168.250.1 Set the subnet mask for the built-in EtherNet/IP port. 255.255.255.0 Set the IP address of the default gateway for the built-in
EtherNet/IP port. This setting is not required when the default gateway is not used.
Fixed setting.
Fixed setting
None
z DNS
Setting Description Default
DNS Set whether to specify the host name in the DNS server in
CIP communications and socket instructions to specify the remote communications node instead of the IP address.
A DNS server is required to use DNS. Use/Do not use.
*
Priority DNS server Secondary DNS server None
Domain name
*
Set the IP address of the DNS server. You can set priority and secondary IP addresses.
Sets the domain name of the domain to which the built-in EtherNet/IP port belongs. The built-in EtherNet/IP port does not use a domain name in actual communications. (Single-byte alphanumeric characters, dots, and hyphens: 48 characters max.)
Do not use.
None
None
5-2
* These settings are required when DNS is used.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 93
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port
z Hosts Settings
Setting Description Default
Host Name Addresses are converted according to this setting when
host names are used to specify remote communications nodes. They can be set even if DNS is not used. You can set up to six host names. (You can use up to 200 single-byte alpha- numeric characters, dots, and hyphens with up to 63 single- byte alphanumeric characters between dots.)
IP Address Set the IP addresses of the registered hosts. None
None
z Keep Alive
Setting Description Default
Keep Alive Set whether to use the remote node keep alive function of
connected servers and clients (such as socket services, FTP server, Sysmac Studio, and FINS/TCP) for each con- nection number. If node does not respond during the set monitoring time, the connection is disconnected. The connection is left open if the power supply to the remote node is turned OFF without warning. Use the keep-alive function whenever possible.
Use.
Do not use.
Keep Alive Monitoring Time
Linger option Set whether to specify the Linger Option for connections to
The connection is disconnected if the keep-alive function is enabled and the remote node does not respond during the monitoring time set in the Keep Alive Monitoring Setting.
Setting range: 1 to 65,535 (seconds)
FINS/TCP or socket services. If the Linger Option is speci- fied, the port number is immediately opened even before the port number is released after the socket closes (approx. 1 minute).
Specify.
Do not specify.
Use is selected here and the remote
Use.
300
Do not specify.
5-1 TCP/IP Display
5
z IP Router Table
Parameter Description Default
Destination IP address Set these settings when the built-in EtherNet/IP port com- Destination mask IP
address Gateway address None
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
municates with nodes on other IP network segments via an IP router. You can set up to eight combinations of IP addresses and gateway addresses. Specify 0 for the host portions of the IP addresses.
None
5-3
Page 94
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-2 Link Settings Display

Setting Description Default
LINK settings Set the baud rate for the built-in EtherNet/IP port.
Auto
10 Mbps Half Duplex
10 Mbps Full Duplex
100 Mbps Half Duplex
100 Mbps Full Duplex
Auto
5-4
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 95
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-3 FTP Display

Setting Description Default
FTP server Specify whether to use the FTP server. FTP connections
from external devices will not be possible if the Do not use Option is selected.
Por t No.
Login name
Password
*1 These settings are required to use the FTP server. *2 The login name and password are case sensitive.
*1
*1
*1
Set the FTP port number of the built-in EtherNet/IP port. It is normally not necessary to change this setting. The FTP control port is set here. The FTP data transfer port is always port 20.
Set the login name to externally connect to the built-in Eth- erNet/IP port via FTP. (You can use up to 12 alphanumeric
characters.) Set the password to externally connect to the built-in Ether-
Net/IP port via FTP. (You can use 8 to 32 alphanumeric characters.)
*2
*2
5-3 FTP Display
Do not use.
21
5
None
None
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
5-5
Page 96
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-4 NTP Settings Display

Setting Description Default
NTP server clock information Set whether to obtain clock information from the NTP
server to update the clock in the CPU Unit.
Por t No.
Server specifying method
NTP operation timing
*1*2
IP address Set the IP address of the NTP server. (Set this setting
Host name Set the host name of the NTP server (i.e., the domain
*1
Time [hours:minutes:sec- onds]
Interval [minutes] The NTP server is accessed when the specified period
Timeout time (sec- onds)*1
Set the port number to use to connect to the NTP server to obtain clock information. It is normally not necessary to change this setting.
*1
Set the method to use to specify the NTP server to obtain clock information.
IP address
Host name
if the server specifying method is set to the Option.)
name of the host). (Set this setting if server specifying method is set to the Host name Option.) (You can use up to 200 single-byte alphanumeric characters, dots, and hyphens with up to 63 single-byte alphanumeric characters between dots.)
Set the time at which the NTP server is accessed to synchronize the clocks.
Specify a clock time.
Specify a time interval.
The NTP server is accessed at the specified time. (Setting range: 00:00:00 to 23:59:59) (Set this setting if NTP operation timing is set to the Option.)
of time has passed. (Setting range: 1 to 1,440 minutes) (Set this setting if NTP operation timing is set to the Specify a time interval Option.)
Set the timeout detection time. (Setting range: 1 to 255 seconds)
If the remote host does not respond, retry processing is performed four times within the time interval that is set here. If a time interval is specified for NTP opera- tion, timing for the next execution of the NTP operation starts when the fourth retry processing times out.
Do not get.
123
IP address
None
IP address
None
Specify a time.
00:00:00
Specify a clock time
60 min
10 seconds
5-6
*1 This setting is required to get the clock information from the NTP server. *2 The following ports are used by the system and cannot be set by the user: 25, 68, 110, 2222, 2223, 2224, and
9600.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 97
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-5 SNMP Settings Display

5-5 SNMP Settings Display
z SNMP
Setting Description Default
SNMP Specify whether to use the SNMP monitor service. If
not using the SNMP monitor service is specified, an SNMP manager cannot connect from an external device.
Port No. Set the port number to use to connect to the SMTP
server that is used to connect from an SNMP man- ager. This setting does not normally need to be
changed. Address Set the communications device administrator name Location None
Send a recognition trap Set whether to send an authentication trap. If you
and installation location as text information. You do not
necessarily have to input all items. This information is
read by the SNMP manager. (You can input up to 255
single-byte alphanumeric characters for each item.)
select
Send a recognition trap and there is access
from an SNMP manager that is not set in Recognition
1 or Recognition 2, an authentication trap is sent to the
SNMP manager. If you select Send a recognition trap,
specify the SNMP trap settings on the SNMP Trap Tab
Page.
Do not use.
161
None
Do not use.
5
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
5-7
Page 98
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port
z Recognition 1
Setting Description Default
Recognition method Set the method to use to specify SNMP managers for which
IP address Set the IP address of the SNMP manager. If the default setting
Host name Set the host name of the SNMP manager. (Set this setting if
Community name Set the community name to enable the SNMP manager to
*
access is permitted.
IP address
Host name
Make these settings to permit access by only certain SNMP managers. Access is not allowed unless an IP address or host name is set.
of 0.0.0.0 is used, access is permitted from all SNMP manag- ers. (Set this setting if the recognition method in the recognition 1 settings is set to the
the recognition method in the recognition 1 settings is set to the
Host name Option.) (You can use up to 200 single-byte
alphanumeric characters, dots, and hyphens with up to 63 sin- gle-byte alphanumeric characters between dots.)
access information from the built-in EtherNet/IP port. (Single- byte alphanumeric characters, dots, and hyphens: 255 charac- ters max.)
IP address Option.)
IP address
None
None
public
z Recognition 2
Setting Description Default
Recognition 2 Specify whether to use the recognition 2 settings.
Recognition method Set the method to use to specify SNMP managers for which
IP address Set the IP address of the SNMP manager. If the default setting
Host name Set the host name of the SNMP manager. (Set this setting if
Community name Set the community name to enable the SNMP manager to
*
Use.
Do not use.
access is permitted.
IP address
Host name
Make these settings to permit access by only certain SNMP managers. Access is not allowed unless an IP address or host name is set.
of 0.0.0.0 is used, access is permitted from all SNMP manag- ers. (Set this setting if the recognition method in the recognition 2 settings is set to the
the recognition method in the recognition 2 settings is set to the Host name Option.) (You can use up to 200 single-byte alphanumeric characters, dots, and hyphens with up to 63 sin- gle-byte alphanumeric characters between dots.)
access information from the built-in EtherNet/IP port. (Single- byte alphanumeric characters, dots, and hyphens: 255 charac- ters max.)
IP address Option.)
Do not use.
IP address
None
None
public
5-8
* These settings are required if the SNMP service is enabled.
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Page 99
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port

5-6 SNMP Trap Settings Display

5-6 SNMP Trap Settings Display
z SNMP Trap
Setting Description Default
SNMP trap Specify whether to use the SNMP trap (network error detec-
tion). If the SNMP trap service is not used, SNMP traps are not sent to the SNMP manager.
Port No. Set the port number to use to connect to the SNMP server. It is
normally not necessary to change this setting.
z Trap 1
Specifying method Set the specifying method for the SNMP manager destination
IP address Set the IP address of the SNMP manager. (Set this setting if
Host name Set the host name of the SNMP manager. (Set this setting if
Community name Set the community name. (You can use up to 255 single-byte
Version Set the version of the SNMP manager.
*
Setting Description Default
for SNMP traps.
IP address
Host name
the specifying method in the trap 1 settings is set to the address Option.)
the specifying method in the trap 1 settings is set to the Host name Option.) (You can use up to 200 single-byte alphanu- meric characters, dots, and hyphens with up to 63 single-byte alphanumeric characters between dots.)
alphanumeric characters.)
SNMP version 1: SNMPv1
SNMP version 2C: SNMPv2C
IP
Do not use.
162
IP address
None
None
public
SNMPv1
5
NJ-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
5-9
Page 100
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port
z Trap 2
Trap 2 Specify whether to use the trap 2 settings.
*
Setting Description Default
Use.
Do not use.
Specifying method Set the specifying method for the SNMP manager destination
for SNMP traps.
IP address
Host name
IP address Set the IP address of the SNMP manager. (Set this setting if
the specifying method in the trap 2 settings is set to the address Option.)
Host name Set the host name of the SNMP manager. (Set this setting if
the specifying method in the trap 2 settings is set to the Host name Option.) (You can use up to 200 single-byte alphanu- meric characters, dots, and hyphens with up to 63 single-byte alphanumeric characters between dots.)
Community name Set the community name. (You can use up to 255 single-byte
alphanumeric characters.)
Version Set the version of the SNMP manager.
SNMP version 1: SNMPv1
SNMP version 2C: SNMPv2C
Do not use.
IP address
None
IP
None
public
SNMPv1
* These settings are required if the SNMP trap is set is enabled.
5-10
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Loading...