w505 NX Nj-Series Cpu Unit Built-In Ethercat Port Users Manual en PDF
w505 NX Nj-Series Cpu Unit Built-In Ethercat Port Users Manual en PDF
NJ/NX-series
CPU Unit Built-in EtherCAT Port ®
User’s Manual
NX701-17
NX701-16
NX1P2-11
NX1P2-10
NX1P2-90
NJ501-5
NJ501-4
NJ501-3
NJ301-12
NJ301-11
NJ101-10
NJ101-90 CPU Unit
W505-E1-15
NOTE
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. Neverthe-
less, 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.
Trademarks
• Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other
countries for OMRON factory automation products.
• Microsoft, Windows, Windows Vista, Excel, and Visual Basic are either registered trademarks or trademarks of
Microsoft Corporation in the United States and other countries.
• EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany.
• ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
Other company names and product names in this document are the trademarks or registered trademarks of their
respective companies.
Copyrights
Microsoft product screen shots reprinted with permission from Microsoft Corporation.
Introduction
Introduction
Thank you for purchasing an NJ/NX-series CPU Unit.
This manual contains information that is necessary to use the NJ/NX-series CPU Unit. Please read this
manual and make sure you understand the functionality and performance of the NJ/NX-series CPU
Unit before you attempt to use it in a control system.
Keep this manual in a safe place where it will be available for reference during operation.
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical sys-
tems (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 B 3503.
Applicable Products
This manual covers the following products.
• NX-series CPU Units
• NX701-17
• NX701-16
• NX1P2-11
• NX1P2-111
• NX1P2-10
• NX1P2-101
• NX1P2-90
• NX1P2-901
Relevant Manuals
The following table provides the relevant manuals for the NJ/NX-series CPU Units.
Read all of the manuals that are relevant to your system configuration and application before you use
the NJ/NX-series CPU Unit.
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.
Manual
Basic information
Hardware User’s Manual
NX-series CPU Unit
Hardware User's Manual
NX-series NX1P2 CPU Unit
Hardware User’s Manual
NJ-series CPU Unit
Software User’s Manual
NJ/NX-series CPU Unit
Built-in I/O and Option Board User's Manual
NX-series NX1P2 CPU Unit
Instructions Reference Manual
NJ/NX-series
Motion Control User’s Manual
NJ/NX-series CPU Unit
Motion Control Instructions Reference Manual
NJ/NX-series
Built-in EtherCAT Port User’s Manual
NJ/NX-series CPU Unit
Built-in EtherNet/IP Port User’s Manual
NJ/NX-series CPU Unit
User’s Manual
NJ-series Database Connection CPU Units
User’s Manual
NJ-series SECS/GEM CPU Units
CPU Unit User’s Manual
NJ-series NJ Robotics
Troubleshooting Manual
NJ/NX-series
Purpose of use
NJ/NX-series
Relevant Manuals
Troubleshooting Manual
NJ-series NJ Robotics
User’s Manual
NJ-series Database Connection CPU Units
User’s Manual
NJ/NX-series CPU Unit
Built-in EtherNet/IP Port User’s Manual
of the error items. Refer to the manuals that are indicated with triangles for details on errors.
NJ/NX-series CPU Unit
Built-in EtherCAT Port User’s Manual
NJ/NX-series
Manual
Motion Control User’s Manual
NJ/NX-series
Instructions Reference Manual
NX-series NX1P2 CPU Unit
Basic information
Software User’s Manual
NJ-series CPU Unit
Hardware User’s Manual
NX-series NX1P2 CPU Unit
Hardware User's Manual
NX-series CPU Unit
Hardware User’s Manual
Using EtherNet/IP
Controlling robots
Using EtherCAT
Using EtherCAT
corrections *1
Maintenance
Manual Structure
Manual Structure
Page Structure
The following page structure is used in this manual.
A step in a procedure 1 Join the Units so that the connectors fit exactly.
Hook
Indicates a procedure. Connector
Hook holes
Lock
Release
Slider
Manual name 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.
Special Information
Special information in this manual is classified as follows:
Additional Information
Additional information to read as required.
This information is provided to increase understanding or make operation easier.
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.
1 A
2 I
1 Introduction A Appendices
3
Part Names and
2 Slave Settings I Index
4
3 EtherCAT Communications
5
9 Troubleshooting
CONTENTS
Introduction ............................................................................................................... 1
Intended Audience ........................................................................................................................................ 1
Applicable Products ...................................................................................................................................... 1
Versions ................................................................................................................... 19
Checking Versions ...................................................................................................................................... 19
Unit Versions of CPU Units and Sysmac Studio Versions .......................................................................... 21
Section 1 Introduction
1-1 Introduction to EtherCAT ........................................................................................................ 1-2
1-1-1 EtherCAT Features ..................................................................................................................... 1-2
1-1-2 EtherCAT Communications......................................................................................................... 1-2
1-1-3 EtherCAT Features for NJ/NX-series CPU Units ........................................................................ 1-3
1-2 System Configuration and Configuration Devices............................................................... 1-4
1-2-1 System Configuration.................................................................................................................. 1-4
1-2-2 Determining the Network Configuration ...................................................................................... 1-8
1-3 Specifications of Built-in EtherCAT Port ............................................................................... 1-9
1-3-1 Performance Specifications ........................................................................................................ 1-9
1-4 Introduction of Communications ......................................................................................... 1-11
1-4-1 Process Data Communications and SDO Communications ..................................................... 1-11
1-4-2 Other Functions......................................................................................................................... 1-11
1-5 EtherCAT Communications Procedure ............................................................................... 1-13
1-5-1 Overview ................................................................................................................................... 1-13
Section 9 Troubleshooting
9-1 Overview of Errors .................................................................................................................. 9-2
9-1-1 How to Check for Errors.............................................................................................................. 9-3
9-1-2 Errors Related to the EtherCAT Master Function Module........................................................... 9-7
9-2 Troubleshooting .................................................................................................................... 9-10
9-2-1 Error Table................................................................................................................................. 9-10
9-2-2 Error Descriptions ..................................................................................................................... 9-16
9-2-3 Resetting Errors ........................................................................................................................ 9-48
9-2-4 Diagnostic and Statistical Information ....................................................................................... 9-50
9-3 Precautions When Connecting or Disconnecting Slaves during Communications ....... 9-67
9-3-1 Procedure for Connecting and Disconnecting Slaves during Communications........................ 9-67
9-3-2 Prohibition to Physically Disconnecting a Slave and Resetting an Error or
Connecting a Slave at the Same Time9-67
9-4 Replacing Slaves during Communications......................................................................... 9-68
9-4-1 Introduction ............................................................................................................................... 9-68
9-4-2 Slave Replacement Methods.................................................................................................... 9-69
9-4-3 Backing Up Settings ................................................................................................................. 9-70
9-4-4 Restoring Settings .................................................................................................................... 9-71
9-4-5 Replacement Procedure ........................................................................................................... 9-73
Appendices
A-1 EtherCAT Status in Relation to CPU Unit Status ..................................................................A-2
A-1-1 When the Power Supply Is Turned ON....................................................................................... A-2
A-1-2 CPU Unit Operating Modes ........................................................................................................ A-3
A-1-3 Controller Errors Other Than Errors in the Built-in EtherCAT Master ......................................... A-5
A-1-4 Others ......................................................................................................................................... A-6
A-1-5 When the Power Supply Is Turned OFF ..................................................................................... A-7
A-2 Monitoring Packets..................................................................................................................A-8
A-3 Multi-vendor Environments ..................................................................................................A-17
A-3-1 EtherCAT Slave Information File (ESI Files)............................................................................. A-17
A-3-2 Connecting Slaves from Other Manufacturers to an OMRON Master...................................... A-19
A-3-3 Installing ESI Files .................................................................................................................... A-19
A-3-4 Editing PDO Entry Tables ......................................................................................................... A-25
A-3-5 Settings for MDP-compatible Slaves from Other Manufacturers .............................................. A-28
A-4 Glossary .................................................................................................................................A-31
A-5 Version Information ...............................................................................................................A-33
Index
Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and workman-
ship for a period of twelve months from the date of sale by Omron (or such other period expressed in
writing by Omron). Omron disclaims all other warranties, express or implied.
Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF
THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE
PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based
on infringement by the Products or otherwise of any intellectual property right.
Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally
shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-com-
plying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal
to the purchase price of the non-complying Product; provided that in no event shall Omron be
responsible for warranty, repair, indemnity or any other claims or expenses regarding the Products
unless Omron’s analysis confirms that the Products were properly handled, stored, installed and
maintained and not subject to contamination, abuse, misuse or inappropriate modification. Return of
any Products by Buyer must be approved in writing by Omron before shipment. Omron Companies
shall not be liable for the suitability or unsuitability or the results from the use of Products in combi-
nation with any electrical or electronic components, circuits, system assemblies or any other materi-
als or substances or environments. Any advice, recommendations or information given orally or in
writing, are not to be construed as an amendment or addition to the above warranty.
Application Considerations
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or regulations
which apply to the combination of the Product in the Buyer’s application or use of the Product. At
Buyer’s request, Omron will provide applicable third party certification documents identifying ratings
and limitations of use which apply to the Product. This information by itself is not sufficient for a com-
plete determination of the suitability of the Product in combination with the end product, machine, sys-
tem, or other application or use. Buyer shall be solely responsible for determining appropriateness of
the particular Product with respect to Buyer’s application, product or system. Buyer shall take applica-
tion responsibility in all cases.
NEVER USE THE PRODUCT 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 PRODUCT(S) IS PROPERLY RATED AND
INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable Product, or
any consequence thereof.
Disclaimers
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a guide for
the user in determining suitability and does not constitute a warranty. It may represent the result of
Omron’s test conditions, and the user must correlate it to actual application requirements. Actual perfor-
mance is subject to the Omron’s Warranty and Limitations of Liability.
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements and other
reasons. It is our practice to change part numbers when published ratings or features are changed, or
when significant construction changes are made. However, some specifications of the Product may be
changed without any notice. When in doubt, special part numbers may be assigned to fix or establish
key specifications for your application. Please consult with your Omron’s representative at any time to
confirm actual specifications of purchased Product.
Safety Precautions
Refer to the following manuals for safety precautions.
• NX-series CPU Unit Hardware User’s Manual (Cat No. W535)
• NX-series NX1P2 CPU Unit Hardware User’s Manual (Cat. No. W578)
• NJ-series CPU Unit Hardware User’s Manual (Cat No. W500)
Conformance to EU Directives
Applicable Directives
• EMC Directives
• Low Voltage Directive
Concepts
EMC Directive
OMRON devices that comply with EU 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 EU
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
EMI (Electromagnetic Interference): EN 61131-2 (Radiated emission: 10-m regulations)
Conformance to EU Directives
The NJ/NX-series Controllers comply with EU Directives. To ensure that the machine or device in
which the NJ/NX-series Controller is used complies with EU Directives, the Controller must be
installed as follows:
• The NJ/NX-series Controller must be installed within a control panel.
• You must use the power supply in SELV specifications for the DC power supplies connected to
DC Power Supply Units and I/O Units.
• NJ/NX-series Controllers that comply with EU Directives also conform to the Common Emission
Standard (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, wiring, and other conditions.
You must therefore confirm that the overall machine or equipment complies with EU Directives.
Conformance to KC Standards
Noise Filter
Manufacturer Model
Cosel Co., Ltd. TAH-06-683
Versions
Hardware revisions and unit versions are used to manage the hardware and software in NJ/NX-series
Units and EtherCAT slaves. The hardware revision or unit version is updated each time there is a
change in hardware or software specifications. Even when two Units or EtherCAT slaves have the
same model number, they will have functional or performance differences if they have different hard-
ware revisions or unit versions.
Checking Versions
You can check versions on the ID information indications or with the Sysmac Studio.
ID information indication
MAC address
PORT1 :
PORT2 :
Unit version Ver.1. HW Rev. Hardware
revision
ID information indication
LOT No. DDMYY xxxx
ID information indication
1 Right-click CPU Rack under Configurations and Setup - CPU/Expansion Racks in the Multi-
view Explorer and select Production Information.
The Production Information Dialog Box is displayed.
2 Right-click any open space in the Unit Editor and select Production Information.
The Production Information Dialog Box is displayed.
The information that is displayed is different for the Outline View and Detail View. The Detail View
displays the unit version, hardware version, and software versions. The Outline View displays only
the unit version.
Note The hardware revision is separated by “/” and displayed on the right of the hardware version. The hardware
revision is not displayed for the Unit that the hardware revision is in blank.
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 Tab Page is displayed.
2 Right-click the master on the EtherCAT Tab Page and select Display Production Information.
The Production Information Dialog Box is displayed.
The unit version is displayed after “Rev.”
Related Manuals
The followings are the manuals related to this manual. Use these manuals for reference.
Revision History
A manual revision code appears as a suffix to the catalog number on the front and back covers of the
manual.
Introduction
This section provides an overview of EtherCAT communications, describes the system
configuration and specifications, and provides operating procedures.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-1
1 Introduction
EtherCAT does not send data to individual slave nodes on the network, instead, it passes Ethernet
frames through all of the slave nodes.
When frame passes through a slave node, the slave node reads and writes data in the areas allocated
to it in the frames in a few nanoseconds.
The Ethernet frames transmitted by the EtherCAT master pass through all EtherCAT slaves without
stopping. The last slave returns all of the frames, which again pass through all of the slaves before
returning to the EtherCAT master.
This mechanism ensures high speed and realtime data transmission.
1-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-3
1 Introduction
Sysmac Studio
ESI files
.xml
Built-in EtherCAT port
Input port
EtherCAT Junction Slave Communications cable Unit power supply
EtherCAT Master
The EtherCAT master manages the network, monitors the status of slaves, and exchanges I/O data
with slaves. There is one output port.
Output Port
The output port transmits EtherCAT communications data to other devices. When you connect the
output port to another device, always connect it to the input port on the other device. Normal com-
munications will not be possible if you connect to the output port on another device.
1-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
EtherCAT Slaves
Each EtherCAT slave outputs the output data that it received from the EtherCAT master through the
EtherCAT network. It also sends input data to the EtherCAT master through the EtherCAT network.
1
• Each slave has one input port and at least one output port.
• In the EtherCAT network, you can use the salves and Junction Slaves that are listed below in total
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-5
1 Introduction
Synced/
Reference Assigning
Name Type Model Non-synced
Clock*1 an axis
Slaves
AC Servo Drive G5-series Servo R88M-K/R88D-KN-ECT Synced Exist Possible
Drive with EtherCAT Slaves
communications
Linear Servo Drives G5-series Linear R88L-EC/R88D-KN-ECT-L Synced Exist Possible
Servo Drives with Slaves
EtherCAT communi-
cations
Encoder Input Slave with 3-tier ter- GX-EC0211/EC0241 Synced Exist Possible
Slaves minal block Slaves
Vision Sensors FH Series FH-1 Synced Exist Not possible
FH-3 Slaves
*1 Shows whether or not the slave provides a reference clock. A slave or a master that provides a reference clock is
required for a system configuration that enables synchronization between slaves based on a distributed clock (DC). When
you connect a slave that supports the reference clock, you must meet some conditions. Refer to 4-1-1 Supported Network
Topologies for detail on the conditions.
*2 A CPU Unit with unit version 1.05 or later and Sysmac Studio version 1.06 or higher are required.
*3 A CPU Unit with unit version 1.07 or later and Sysmac Studio version 1.08 or higher are required.
*4 A CPU Unit with unit version 1.07 or later and Sysmac Studio version 1.11 or higher are required.
1-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
Additional Information
Sysmac Studio
The Sysmac Studio runs on a personal computer and it is used to configure EtherCAT networks and
slaves, and to program, monitor, and debug the Controller.
Communications Cables
Use a straight, shielded twisted-pair cable (double shielding with aluminum tape and braiding) of
Ethernet category 5 (100BASE-TX) or higher.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-7
1 Introduction
Additional Information
With a CPU Unit with unit version 1.06 or later and Sysmac Studio version 1.07 or higher, you
can add NX-series Safety Control Units to the EtherCAT network.
You can use NX-series Safety Control Units on EtherCAT Slave Terminals to build a safety con-
trol system on EtherCAT.
Start
Yes
Length of cable No
connecting slaves
100 m or less?
Yes
End
Note Refer to 1-3-1 Performance Specifications for details on the maximum number of slaves.
1-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
EtherCAT Port
1-3-1 Performance Specifications
1
Specification
Item NX1P2- NJ501-/
*1 Refer to 3-1-1 CoE (CAN Application Protocol over EtherCAT) for details on CoE.
*2 Connection is possible only in full duplex mode. Half-duplex connections will result in link OFF status.
*3 Wiring in a ring configuration is not possible.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-9
1 Introduction
*4 Setting is available only for integer multiples of the task period of the primary periodic task.
*5 Unit version 1.03 or later of the CPU Unit is required to use this setting on the NJ301-.
*1 For the NJ301- and NJ101- CPU Units, unit version 1.10 or later and Sysmac Studio version
1.12 or higher are required to use the packet monitoring function.
*2 A CPU Unit with unit version 1.11 is required to use the diagnosis/statistics log.
1-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
1-4 Introduction of
Communications
This section provides an introduction of the communications functions of the built-in EtherCAT port.
SDO Communications
“SDO communications” is a communications method in which control information is exchanged in non-
cyclic event communications between the EtherCAT master and slaves.
You can use EtherCAT communications instructions to read and write the SDO data in EtherCAT
slaves.
Refer to 6-2 SDO Communications for details on the specifications of SDO communications.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-11
1 Introduction
To enable/disable slaves during system operation, use the Enable/Disable EtherCAT Slave instruc-
tion. Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for details on this
instruction.
Maintenance
Disconnecting/Reconnecting Slaves
Use this function to temporarily stop and start communications with a specified slave.
It is useful because, during system operation, you can replace an erroneous EtherCAT slave without
interrupting the communications with EtherCAT slaves that are operating normally.
Refer to 9-4 Replacing Slaves during Communications for details on how to use this function.
Diagnosis/Statistics Log
The diagnostic and statistical information provides statistics on the number of communications
frames sent and received by the EtherCAT master and EtherCAT slaves as well as the number of
frames for which errors were detected.
This function acquires the diagnostic and statistical information at the specified cycle and saves the
information as a log file in an SD Memory Card that is mounted on the CPU Unit.
You can use it to diagnose the EtherCAT network line quality based on the diagnostic and statistical
information.
Use this function for the following applications.
• Checking the EtherCAT network line quality for predictive monitoring and preventive maintenance
• Finding locations of errors when they occur
Refer to Diagnosis/Statistics Log of CPU Unit for details on how to use this function.
1-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
Procedure
1-5-1 Overview
1
Step Section
1-5-1 Overview
1. Mounting and Setting Devices and Hardware 2-2 Setting the Node Addresses of the
EtherCAT Slaves
↓
2. Laying EtherCAT Communications Cables Section 4 EtherCAT Network Wiring
↓
3. Creating the EtherCAT Network Configuration 5-2 Creating the EtherCAT Network Con-
figuration
↓
4. Setting EtherCAT Slave Variables and Axes 5-3 Setting EtherCAT Slave Variables and
Axes
↓
5. Setting EtherCAT Parameters 5-4 EtherCAT Master and Slave Parame-
ter Settings
↓
6. Programming Section 6 Process Data Communications
and SDO Communications
↓
7. Turning ON Power and Going Online from the Sysmac Studio 2-1-3 Connecting the Sysmac Studio
3-3 State Transitions for EtherCAT Com-
munications
↓
8. Online Debugging 5-5 Comparing and Merging EtherCAT
Network Configurations
↓
9. Downloading the Network Configuration Information and the User 5-6 Downloading the Network Configura-
Program tion Information
↓
10. Checking the EtherCAT Process Data Communications Status 5-7 Confirming Communications after
Completing EtherCAT Configuration and
Settings
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-13
1 Introduction
1-5-2 Details
Sysmac Studio
Step Description Section
operation
1. Mounting and Setting Devices • Use the hardware switches on all of the 2-2 Setting the
and Hardware EtherCAT slaves in the network to set the Node
node addresses. (The starting node Addresses of
address and sequence are not specified.) the EtherCAT
See the manuals for each slave for infor- Slaves
mation on the procedure for setting node
addresses.
1-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
1 Introduction
Procedure
Setting EtherCAT Master Set the EtherCAT master parameters. Create an EtherCAT 5-4-1 Setting
Parameters (Examples: Fail-soft Operation Setting and master with EtherCAT EtherCAT Mas-
Wait Time for Slave Startup) under Configurations ter
The values that are set are reflected in the and Setup.
network configuration information. 1
Setting EtherCAT Slave Set the EtherCAT slave parameters. Create EtherCAT 5-4-2 Setting
Parameters Example: Enable/disable slaves. slaves with EtherCAT EtherCAT
under Configurations Slaves
1-5-2 Details
and Setup.
↓
6 Programming
Process Data Communica- Specify the device variables in the user pro- Create the programs 6-1 Process
tions gram. with POUs under Pro- Data Communi-
Input conditions include system-defined gramming. cations (PDO
variables for network error flags and normal Communica-
or error flags for each slave. tions)
Assign to the task that refreshes I/O for Set it for each slave
each EtherCAT slave. from I/O Control Task
Settings under Config-
urations and Setup -
Task Settings.
SDO Communications Read and write the following specified data Create the programs 6-2 SDO Com-
for slaves: with POUs under Pro- munications
Use EC_CoESDORead and EC_CoES- gramming.
DOWrite instructions.
• SDO data in slaves (parameters, error
information, etc.)
↓
7. Turning ON Power and Going • Turn ON the power supply to EtherCAT Select Communica- 2-1-3 Connect-
Online from the Sysmac Studio slaves. tions Setup from the ing the Sysmac
• Turn ON the I/O power supplies to the Controller Menu and Studio
slaves. make the settings to go 3-3 State Tran-
• Turn ON the power supply to NJ/NX- online. sitions for Eth-
series Controller. erCAT
• Use the Sysmac Studio to set communi- Communica-
cations with the NJ/NX-series Controller tions
and go online.
↓
8. Online Debugging Compare and merge the network configura- Right-click the Ether- 5-5 Comparing
tion that was set on the Sysmac Studio and CAT master under Con- and Merging
the actual network configuration. figurations and Setup EtherCAT Net-
− EtherCAT and select work Configura-
Actual network configu- tions
ration.
↓
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 1-15
1 Introduction
Sysmac Studio
Step Description Section
operation
9. Downloading the Network Download the network configuration infor- Select Synchroniza- 5-6 Download-
Configuration Information and mation (EtherCAT configuration, process tion from the Controller ing the Network
the User Program data information, and parameters). Menu to download and Configuration
verify the network con- Information
Note Use the synchronization operation of figuration information.
the Sysmac Studio to download the
project.
↓
10. Checking the EtherCAT Pro- • In the Sysmac Studio, check that process Display the Controller 5-7 Confirming
cess Data Communications Sta- data communications with all EtherCAT Status Pane and switch Communica-
tus slaves are performed normally. to the detailed view. tions after Com-
• Check the indicators on the NJ/NX-series pleting
CPU Unit. EtherCAT Con-
figuration and
a) A flashing yellow EtherCAT LINK/ACT
Settings
indicator shows that data is being trans-
mitted and received after the link is
established.
b) A solid green EtherCAT NET RUN
indicator shows the device is in the oper-
ational state (normal communications
state).
c) If the EtherCAT NET ERR indicator is
not lit, there is no error.
1-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2
Part Names and Slave Settings
This section provides the part names and describes the slave settings and Sysmac
device functions.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-1
2 Part Names and Slave Settings
The locations of the built-in EtherCAT port indicators are shown below.
Operation indicators
for the Built-in EtherCAT port
SD PWR
SD BUSY
PORT1
EtherNet/IP
NET RUN
NET ERR
LINK/ACT
PORT1 EtherNet/IP
PORT2 PORT3
EtherNet/IP EtherCAT
NET RUN NET RUN
NET ERR NET ERR
LINK/ACT LINK/ACT
Operation indicators
for the Built-in EtherCAT port
2-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
OUT
Refer to 3-3-2 Control States for EtherCAT Communications for details on the states.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-3
2 Part Names and Slave Settings
2-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
Axis Basic Settings: Used to create Axis Variables and set parameters for
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-5
2 Part Names and Slave Settings
Refer to Section 5 Setting Up EtherCAT Communications with the Sysmac Studio for the Sysmac
Studio procedures.
2-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-7
2 Part Names and Slave Settings
2-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
EtherCAT Slaves
Setting Node Address Using Hardware Switches
Setting the node address is described here. An OMRON GX-series Remote I/O Terminal is used as
the slave. With a GX-series Remote I/O Terminal, the node address is set on hardware switches.
With a GX-series Remote I/O Terminal, these switches are used to set the node address as a slave
on the EtherCAT network.
The 10s digit is set using the left rotary switch and the 1s digit is set using the right rotary switch. The
setting range is from 00 to 99.
2
The node address setting values are described in the following table.
Switch setting Node address setting
00 Set with the Sysmac Studio*.
01 to 99 Set with the hardware switches.
* Refer to 1-3-1 Performance Specifications for details on the settable node address range.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-9
2 Part Names and Slave Settings
2 Double-click EtherCAT under Configurations and Setups on the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setups and select Edit.
3 Right-click the EtherCAT master that is displayed in the Edit Pane and select Write Slave Node
Address.
2-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
EtherCAT Slaves
2
Additional Information
• The switch setting is read only once when the power is turned ON. Even if the setting is
changed after the power supply is turned ON, the new setting will not be used until the next
time that power is turned ON.
• If same node address is set for more than one node, a Slave Node Address Duplicated Error
occurs and the operation of the slave stops. If a duplicated node address is set, the system-
defined variable _EC_SlavAdrDupErr (Slave Node Address Duplicated Error) changes to
TRUE.
• Use the Sysmac Studio to set the node address if there are no hardware switches or the node
address is beyond the range that can be set with the hardware switches.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-11
2 Part Names and Slave Settings
2-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
Additional Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-13
2 Part Names and Slave Settings
Additional Information
• If you use slaves from other manufacturers, obtain the slave information files that are compli-
ant with the version-1.0.1 ESI specifications from the slave manufacturers.
• Refer to 9-4-3 Backing Up Settings for the procedure to back up slave data from the Sysmac
Studio.
• Refer to 9-4-4 Restoring Settings for the procedure to restore slave data from the Sysmac Stu-
dio.
• Refer to A-3 Multi-vendor Environments for information on ESI.
Additional Information
• Refer to 2-2 Setting the Node Addresses of the EtherCAT Slaves or the manuals for each
slave for the procedure to set the node addresses.
• Refer to 5-4-2 Setting EtherCAT Slaves for information on setting node addresses with the
Sysmac Studio.
2-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
2
Additional Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-15
2 Part Names and Slave Settings
2-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
2 Part Names and Slave Settings
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 2-17
2 Part Names and Slave Settings
2-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
EtherCAT Communications
3
This section describes the different types of EtherCAT communications, EtherCAT set-
tings, and state transitions.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-1
3 EtherCAT Communications
SDO Communications:
Communications using service data objects (SDOs) for communicating information when required.
Controller
(communications master) EtherCAT communications Slave
line
Process data
communications Executed periodically.
Output data
Input data
SDO communications
Data written.
Data read.
The EtherCAT port built into the NJ/NX-series CPU Unit uses process data communications for com-
mands to refresh I/O data in a fixed control period, including I/O data for EtherCAT slaves, and position
control data for Servomotors. It uses SDO communications for commands to read and write data, such
as for parameter transfers, at specified times.
Process data communications are executed each control cycle to refresh data continuously, and SDO
communications are executed between PDO communications.
3-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
3 EtherCAT Communications
Object Dictionary
The object dictionary is a data table within the device that interfaces the application and commu-
nications. It describes the information handled by the device. Each piece of information is called
an object. Each object is assigned a 4-digit hexadecimal index.
Each object is divided into a data type area, a CoE communications area, and a manufacturer-
specific area.
CANopen device
Application
Communications
PDO SDO
EtherCAT
Process data communications is used to read and write the process data in the CoE communi-
cations area in these objects.
SDO communications is used to read and write the parameters within the manufacturer-specific
area in these objects.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-3
3 EtherCAT Communications
Additional Information
EtherCAT Master
The clock that gives the standard network time is called a “reference clock”. The reference clock
is provided either by the master or a slave that supports the function to provide a reference
clock, to the other slaves. As described in the table below, whether the master or slave provides
a reference clock depends on the used CPU Unit.
When NX-series CPU Units Is Used When NJ-series CPU Units Is Used
The EtherCAT master of the NX-series CPU Unit Of the slaves that provide a reference clock, the
slave that is the closest to the EtherCAT master on
the wiring. In the above figure. the left most slave of
the slaves with the DC functionality.*
3-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
3 EtherCAT Communications
CPU Unit
EtherCAT communications
EC_CoESDORead/
EC_CoESDOWrite
EtherCAT
PDO PDO
SDO communications: data IN data OUT
When required
(from instruction or
Sysmac Studio)
SDO data SDO data
PDO communications is used for constant data exchange between the master and slaves. It is called
process data communications. PDO data (i.e., I/O data that is mapped to PDOs) that is allocated in
advance is input and output periodically each EtherCAT process data communications cycle (i.e., the
task period of primary periodic task or priority-5 periodic task).
It is accessed from the NJ/NX-series CPU Unit in the following ways.
• With device variables for EtherCAT slave I/O
• With Axis Variables for Servo Drive and encoder input slaves to which an axis is allocated
Additional Information
You can use the priority-5 periodic task only with NX701 CPU Units.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-5
3 EtherCAT Communications
SDO Communications
SDO communications are used to read and write specified slave data from the master when required.
This is called SDO communications.
You can read/write the following specified slave data with the EC_CoESDORead (Read CoE SDO)
instruction or the EC_CoESDOWrite (Write CoE SDO) instruction.
• SDO data in slaves (parameters, error information, etc.)
CPU Unit
EtherCAT master
Special Unit
Special Unit
EtherCAT
Slave configuration
3-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
3 EtherCAT Communications
CPU Unit
EtherCAT master
Axis Variable A Axis Variable B
Allocated. Allocated.
EtherCAT
3
EtherCAT
System- System-defined These variables are defined by the system for communications parameters,
defined vari- variables for communication status, and other functions. You cannot change the names
ables EtherCAT master of these variables.
Additional Information
EtherCAT communications cannot be performed unless the correct network configuration infor-
mation is downloaded to the CPU Unit.
Refer to Section 5 Setting Up EtherCAT Communications with the Sysmac Studio for details.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-7
3 EtherCAT Communications
Instructions and variables are used according to slave types and target data as shown below.
Slave type Type of data Timing Instructions Variables
Slaves to which you Process data Constantly Read/write instructions Device variables
cannot assign axes read/written such as LD, OUT and
MOV
SDO data Read/written as EtherCAT instructions User-defined variables
required (EC_CoESDORead or
EC_CoESDOWrite)
Slaves to which you Process data Constantly Motion control instruc- Axis Variables or
can assign axes read/written tions or read/write device variables
instructions such as
LD, OUT and MOV
SDO data Read/written as EtherCAT instructions User-defined variables
required (EC_CoESDORead or
EC_CoESDOWrite)
3-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
3 EtherCAT Communications
Power ON
Self-diagnosis
1. Init state (Process data communications and SDO communications are not possible.)
4. Operational state (I/O for process data communications and SDO communications are possible.)
After the power is turned ON, the communications master and slaves go from the Init state to the Pre-
operational state, Safe-operational state, and then Operational state before starting EtherCAT commu-
nications. Afterwards, EtherCAT communications are performed while the state changes automatically
between these states according to error occurrence and other conditions.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-9
3 EtherCAT Communications
The current control state can be determined using the RUN indicator on the front panel.
Process data SDO
State Description RUN indicator
communications communications
1. Init Communications are Not allowed Not allowed Not lit
being initialized. Com-
munications are not
possible.
This state continues if
the network is not
configured.
2. Pre-operational Only SDO communi- Not allowed Possible Flashing
cations are possible
in this state.
Communications
always enters this
state after initializa-
tion, and changes to
the safe-operational
state after initial set-
ting of the network is
performed.
3. Safe operational In this state, SDO Only inputs are Possible Flashing
communications and possible
only inputs for pro-
cess data communi-
cations are possible.
Communications
always enters this
state before going
into the Operational
state.
4. Operational This is the normal Possible Possible Lit
state for communica-
tions.
3-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
3 EtherCAT Communications
I/O Refreshing
The procedure from startup of the EtherCAT network until process data I/O can be refreshed is
shown below. There is no correlation between the startup of the EtherCAT network and the exe-
cution of the user program. Design the user program by adding the system-defined variables* for
the relevant slaves to the interlock conditions of the device variables for the slaves.
* _EC_ActSlavTbl[1..n], _EC_MBXSlavTbl[1..n], _EC_PDSlavTbl[1..n], _EC_DisconnSlavTbl[1..n], and
_EC_DisableSlavTbl[1..n]
Here, n is the maximum value of the settable node address. Refer to 1-3-1 Performance Specifications for
the maximum value of the settable node address.
START Power ON
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 3-11
3 EtherCAT Communications
3-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
EtherCAT Network Wiring
This section describes how to connect and wire an EtherCAT network.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 4-1
4 EtherCAT Network Wiring
Input port
Branching
EtherCAT Master
Junction Slave
Remote I/O Slave
Servo Drive Slave Servo Drive Slave Servo Drive Slave Remote I/O Slave Output port
Input port
4-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
4 EtherCAT Network Wiring
Additional Information
If you use EtherCAT Junction Slaves, the EtherCAT Junction Slave ports that are actually con-
nected to slaves will communicate normally even if they do not agree with the Sysmac Studio
network configuration.
If you need to make the Sysmac Studio network configuration consistent with the ports that are
actually connected to slaves, use the compare and merge function of the Sysmac Studio to
check the actual configuration.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 4-3
4 EtherCAT Network Wiring
4-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
4 EtherCAT Network Wiring
Cable
Manu- Contact infor-
Product name length Model
facturer mation
[m]
Rugged type *1 OMRON 0.3 XS5W-T421-AMD-K OMRON Cus-
Cable with Connectors on Corpora- 0.5 XS5W-T421-BMD-K tomer Service
Both Ends (RJ45/RJ45) tion Center
1 XS5W-T421-CMD-K
Cable color: Light blue
2 XS5W-T421-DMD-K
5 XS5W-T421-GMD-K
10 XS5W-T421-JMD-K
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 4-5
4 EtherCAT Network Wiring
*1 Cables are available in the following lengths: 0.3, 0.5, 1, 2, 3, 5, 10, and 15 m. Refer to the Industrial Ethernet
Connectors Catalog (Cat. No. G019) for details.
*2 For details, contact your OMRON representative.
* We recommend that you use combinations of the above Cables and Connectors.
* We recommend that you use combinations of the above Cables and Connectors.
Additional Information
If an Ethernet cable of category 5 or higher is used, communications will be possible even if the
cable is not shielded. However, we recommend a cable with double, aluminum tape and braided
shielding to ensure sufficient noise immunity.
4-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
4 EtherCAT Network Wiring
Pin Assignments
Pin No. Signal name Abbreviation Signal direction
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 ---
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 4-7
4 EtherCAT Network Wiring
Communications cable
Input port
L1 Output port
L2
Slaves
Ln
Last slave
The cable between any two nodes (L1, L2 ... Ln) must be 100 m or less. Use the Sysmac Studio to con-
firm if communications are possible for the total cable length. Firmly connect the communications cable
connector until it clicks into place.
Additional Information
Make sure the cable between each pair of devices connects an output port to an input port. Nor-
mal communications are not possible if an output port is connected to another output port or an
input port is connected to another input port.
4-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
4 EtherCAT Network Wiring
2 Connect the Ethernet communications cable to the built-in EtherCAT port on the NJ/NX-series
CPU Unit. Firmly insert the connector until it locks into place.
4
Built-in EtherCAT port
RJ45 Modular Connector
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 4-9
4 EtherCAT Network Wiring
4-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Setting Up EtherCAT
Communications with the Sysmac
Studio
This section describes how to set the network configuration information and how to
check EtherCAT communications from the Sysmac Studio.
5
5-1 Overview of Network Configuration Information . . . . . . . . . . . . . . . . . . . . 5-2
5-2 Creating the EtherCAT Network Configuration . . . . . . . . . . . . . . . . . . . . . . 5-3
5-3 Setting EtherCAT Slave Variables and Axes . . . . . . . . . . . . . . . . . . . . . . . . 5-6
5-3-1 Registering Device Variables for All EtherCAT Slaves . . . . . . . . . . . . . . . . . . 5-6
5-3-2 Axis Settings for Servo Drives and Encoder Input Slaves . . . . . . . . . . . . . . . 5-10
5-4 EtherCAT Master and Slave Parameter Settings . . . . . . . . . . . . . . . . . . . . 5-11
5-4-1 Setting EtherCAT Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-11
5-4-2 Setting EtherCAT Slaves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5-5 Comparing and Merging EtherCAT Network Configurations . . . . . . . . . . 5-24
5-5-1 Comparing and Merging with the Actual Network Configuration
from the Sysmac Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
5-5-2 Automatically Creating the Network Configuration . . . . . . . . . . . . . . . . . . . . 5-28
5-5-3 Using the Sysmac Studio to Obtain Serial Numbers
from the Actual Network Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
5-6 Downloading the Network Configuration Information . . . . . . . . . . . . . . . 5-33
5-6-1 Downloading the Network Configuration Information from
the Sysmac Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
5-7 Confirming Communications after Completing EtherCAT
Configuration and Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-1
5 Setting Up EtherCAT Communications with the Sysmac Studio
Sysmac Studio
NJ/NX-series CPU Unit
EtherCAT master
EtherCAT
5-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
2 Double-click EtherCAT under Configurations and Setup on the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
Double-click EtherCAT or rightclick EtherCAT and select Edit.
Multi-view Explorer
EtherCAT master will be displayed in the Edit Pane.
Edit Pane
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-3
5 Setting Up EtherCAT Communications with the Sysmac Studio
3 Select a slave in the Toolbox, drag it to the Edit Pane, and drop it under the master. The slave
will be added under the master.
Toolbox
4 Select another slave in the Toolbox, drag it to the Edit Pane, and drop it under the slave to which
you want to connect it to. The slave will be added under the slave.
For detailed procedures, such as those for deleting slaves, or copying and pasting slaves, refer
to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504).
Refer to the NX-series EtherCAT Coupler Unit User’s Manual (Cat. No. W519) and the Sysmac
Studio Version 1 Operation Manual (Cat. No. W504) for information on creating the EtherCAT
Slave Terminal configuration.
Refer to A-8 MDP Settings for EtherCAT Network Slaves in the Sysmac Studio Version 1 Oper-
ation Manual (Cat. No. W504) for information on MDP slaves and editing the configurations of
the modules that you can connect to the MDP slaves.
5-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
Additional Information
You can go online and read the actual network configuration from the Sysmac Studio to display it
and to use it as the network configuration in the project.
For details, refer to 5-5-2 Automatically Creating the Network Configuration.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-5
5 Setting Up EtherCAT Communications with the Sysmac Studio
1 Register the variables in advance in the global variable table or the local variable table of one of
the POUs.
4 Double-click I/O Map under Configurations and Setup on the Multiview Explorer. Or, right-
click I/O Map under Configurations and Setup and select Edit.
5-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
5 Select the variables from the pull-down list in the I/O Map Tab Page to assign them to I/O ports.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-7
5 Setting Up EtherCAT Communications with the Sysmac Studio
3 To specify a variable table for the scope, specify the Variable Type.
1 Double-click I/O Map under Configurations and Setup on the Multiview Explorer. Or, right-
click I/O Map under Configurations and Setup and select Edit.
5-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
2 Select a slave or I/O ports on the I/O Map Tab Page, right-click, and select Create Device Vari-
able.
Device variables are automatically assigned to the I/O ports of the slaves and registered in the
variable table that is specified by the variable type.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-9
5 Setting Up EtherCAT Communications with the Sysmac Studio
Additional Information
5-3-2 Axis Settings for Servo Drives and Encoder Input Slaves
To operate slaves that can be assigned to axes in the Motion Control Function Module, you have to
make axes settings. For details on the items and procedures of the axes setting, refer to the NJ/NX-
series CPU Unit Motion Control User's Manual (Cat. No. W507).
5-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-11
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-13
5 Setting Up EtherCAT Communications with the Sysmac Studio
Additional Information
5-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-15
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-17
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
Version Information
A CPU Unit with unit version 1.04 or later and Sysmac Studio version 1.05 or higher are required
to disable EtherCAT slaves with the special instruction.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-19
5 Setting Up EtherCAT Communications with the Sysmac Studio
1 Select the slave for which to change the allocated data. The parameters and allocated data for
the slave will appear.
Slave
parameters
Allocated
data
Slave
parameters
2 Click the Edit PDO Map Settings Button at the lower right of the allocated data in the pane.
5-20 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
The Edit PDO Map Settings Window will appear. Edit the allocated data as required.
*1 Even if a slave physically exits, it cannot be enabled or disabled if there are any of the following errors.
• If there is a Network Configuration Information Error or Network Configuration Error in the master.
• If the slave is disconnected from the network or if it has a Slave Initialization Error, Process Data Communi-
cations Error, Slave Application Error, or EtherCAT Frame Not Received error.
*2 If a slave is disabled (either with or without a physical slave), you cannot disconnect the slaves.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-21
5 Setting Up EtherCAT Communications with the Sysmac Studio
Inputs Outputs
Change in status Device variable Device variable Output refresh val-
Input refresh values
values values ues
Disabled slaves Input refreshing is 0 or FALSE Depends on results Output refreshing
after turning ON performed but not of user program is not performed.
the power supply applied to the execution.
or transferring the device variables.
EtherCAT network
configuration infor-
mation
Slaves changed Input refreshing is Input refresh val- Depends on results The values of the
from disabled to performed. ues are applied. of user program exe- device variables
enabled cution. are output.
Slaves changed Input refreshing is The values from Depends on results Depends on the set-
from enabled to performed but not before the status of of user program tings of the slave
disabled applied to the the slave was execution. and on slave mod-
device variables. changed are els.
retained. With GX-series
EtherCAT Slaves,
a value is output
according to the
Error Mode Output
setting on each
slave.
(1) Confirm that the slave is enabled before you access the device variables of the input
device.
_EC_DisableSlavTbl
[node_address_of_input
_device] system-defined Device variable
variable of input device
_EC_DisableSlavTbl
[node_address_of_input
_device] system-defined Device variable
variable of input device
5-22 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
(2) If the input device is disabled, always write the value of the device variable.
_EC_DisableSlavTbl
[node_address_of_input_dev Device variable
ice] system-defined variable of input device
Considered FALSE
R if the input device
is disabled.
Device variable
of input device
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-23
5 Setting Up EtherCAT Communications with the Sysmac Studio
#12
#12
The output port numbers for the branches do not match the node addresses for the connected
slaves. In this example, the settings on the Sysmac Studio and the slaves connected to Out1 and
Out3 on node #09 in the actual network configuration do not match.
5-24 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
Use the following procedure to compare and merge the network configuration settings on the Sysmac
Studio and the actual network configuration.
2 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
3 Right-click the EtherCAT master that is displayed in the Edit Pane and select Compare and
Merge with Actual Network Configuration.
5
5-5-1 Comparing and Merging with the Actual Network Configuration from the Sysmac Studio
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-25
5 Setting Up EtherCAT Communications with the Sysmac Studio
The Compare and Merge with Actual Network Configuration Dialog Box is displayed. The
results of comparing the settings on the Sysmac Studio with the actual network configuration are
displayed in the Comparison results Column.
4 If there is a slave that exists only on the actual network, “Added” is displayed in the Comparison
results Column. Drag the slave in the actual network configuration to the Sysmac Studio net-
work configuration.
After you drag the missing slaves and add them to the network configuration on the Sysmac
Studio, the Comparison results Column will show that everything in the configurations matches.
5-26 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-5-1 Comparing and Merging with the Actual Network Configuration from the Sysmac Studio
Here, either correct the node address in the network configuration on the Sysmac Studio or the
node address in the physical slave in the actual network configuration, and then repeat the com-
pare and merge operation to confirm that the configurations are the same.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-27
5 Setting Up EtherCAT Communications with the Sysmac Studio
Additional Information
• Make sure that the communications cables between the master and slaves are connected cor-
rectly before you perform the compare and merge operation. The Compare and Merge with
Actual Network Configuration Dialog Box is not displayed if the connections are not correct.
• The Compare and Merge with Actual Network Configuration Dialog Box is not displayed if
there is a slave in the actual network configuration for which the node address is not set or if
the same address is set for more than one slave in the actual network configuration. Make
sure that node addresses are set correctly for the slaves in the actual network configuration
before you perform the compare and merge operation.
• The Compare and Merge with Actual Network Configuration Dialog Box is not displayed if an
EtherCAT Frame Not Received error occurs. Remove the cause of the error and perform the
compare and merge operation. Refer to 9-2-1 Error Table for the cause of the error.
• When the compare and merge operation is performed, the synchronization between the Sys-
mac Studio and the Controller is lost. Synchronize the Sysmac Studio and Controller before
you perform any online operations for the slaves. Refer to the Sysmac Studio Version 1 Oper-
ation Manual (Cat. No. W504) for information on synchronization.
2 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
5-28 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
3 Right-click the EtherCAT master that is displayed in the Edit Pane and select Compare and
Merge with Actual Network Configuration.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-29
5 Setting Up EtherCAT Communications with the Sysmac Studio
6 Go offline, and then assign device variables, set the axis parameters, set up the tasks, and set
the master and slave parameters.
Additional Information
• Make sure that the communications cables between the master and slaves are connected cor-
rectly before you perform this operation. The Compare and Merge with Actual Network Config-
uration Dialog Box is not displayed if the connections are not correct.
• The Compare and Merge with Actual Network Configuration Dialog Box is not displayed if
there is a slave in the actual network configuration for which the node address is not set or if
the same address is set for more than one slave in the actual network configuration. Make
sure that node addresses are set correctly for the slaves in the actual network configuration
before you perform this operation.
• The Compare and Merge with Actual Network Configuration Dialog Box is not displayed if an
EtherCAT Frame Not Received error occurs. Remove the cause of the error and perform the
compare and merge operation. Refer to 9-2-1 Error Table for the cause of the error.
• Even if you have previously set them on the Sysmac Studio, the following configuration and
settings are discarded when you automatically create the network configuration on the Sys-
mac Studio based on the actual network configuration: network configuration, master settings,
and any slave settings (including enable settings, PDO map settings, setting parameter set-
tings, backup parameter settings, device variable assignments in the I/O map, slave assign-
ments to Axes Variables registered in the axis settings, and master settings to control slaves
that are registered in the task setup). To merge the actual network configuration information
without losing the current settings in the Sysmac Studio, use the compare and merge opera-
tion to create the network configuration. Refer to 5-5-1 Comparing and Merging with the Actual
Network Configuration from the Sysmac Studio for information on the operation to compare
and merge with the actual network configuration on the Sysmac Studio.
• When the compare and merge operation is performed, the synchronization between the Sys-
mac Studio and the Controller is lost. Synchronize the Sysmac Studio and Controller before
you perform any online operations for the slaves. Refer to the Sysmac Studio Version 1 Oper-
ation Manual (Cat. No. W504) for information on synchronization.
5-30 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-5-3 Using the Sysmac Studio to Obtain Serial Numbers from the
Actual Network Configuration
2 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
3 Right-click the EtherCAT master that is displayed in the Edit Pane and select Get Slave Serial
5-5-3 Using the Sysmac Studio to Obtain Serial Numbers from the Actual Network Configuration
Numbers.
The serial numbers of the physical slaves are saved as the serial numbers in the slave settings
on the Sysmac Studio.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-31
5 Setting Up EtherCAT Communications with the Sysmac Studio
Additional Information
• Make sure that the communications cables between the master and slaves are connected cor-
rectly before you perform this operation. You cannot get the serial numbers of the slaves
unless the connections are correct.
• You cannot get the serial numbers of the slaves if there is a slave in the actual network config-
uration for which the node address is not set or if the same address is set for more than one
slave in the actual network configuration. Make sure that node addresses are set correctly for
the slaves in the actual network configuration before you perform this operation.
• You cannot get the serial numbers of the slaves unless the Compare and Merge with Actual
Network Configuration Dialog Box shows that the entire slave configurations agree. Make sure
that the Compare and Merge with Actual Network Configuration Dialog Box shows that the
entire slave configurations agree before you perform this operation. However, you can get the
serial numbers of the slaves even if the entire slave configurations do not agree if there are
slaves in the Sysmac Studio settings that are disabled.
• If you get the serial numbers of the slaves when there are disabled slaves that do not exist in
the actual network configuration, the serial numbers of the disabled slaves will be cleared to
0x00000000 in the settings on the Sysmac Studio. If the disabled slaves exist in the actual net-
work configuration, the serial numbers of the slaves in the actual network configuration are
saved in the settings on the Sysmac Studio.
• Any serial numbers that are set for slaves in the settings on the Sysmac Studio are overwritten
when the serial numbers are obtained from the actual network configuration. Make sure that it
is OK to overwrite the serial numbers on the Sysmac Studio before you perform this operation.
• When you get the serial numbers from the slaves on the actual network configuration, the syn-
chronization between the Sysmac Studio and the Controller is lost. Synchronize the Sysmac
Studio and Controller before you perform any online operations for the slaves. Refer to the
Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for information on synchroniza-
tion.
5-32 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
5
Precautions for Correct Use
• If a Link OFF Error occurs, remove the cause of the error and retry downloading the network
5-6-1 Downloading the Network Configuration Information from the Sysmac Studio
configuration information after the error is reset.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-33
5 Setting Up EtherCAT Communications with the Sysmac Studio
The network configuration information is downloaded from the Sysmac Studio to the Controller.
Additional Information
The backup parameters of EtherCAT slaves are out of the scope of synchronization and are not
downloaded to the slaves for the default settings. To transfer the backup parameters, clear the
selection of the Do not transfer Special Unit parameters and backup parameters of EtherCAT
slaves (out of synchronization scope). Check Box in the Synchronization Pane.
5-34 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
5 Setting Up EtherCAT Communications with the Sysmac Studio
Settings
• System-defined variable
• LED
The content of checking the process data communications status using these methods is given below. 5
System-defined Variable
Check the _EC_PDActive (Process Data Communications Status) system-defined variable in the
user program. If _EC_PDActive is TRUE, process data communications are performed normally.
Indicator
EtherCAT communications are in operational state (process data communications are performed
normally) if the EtherCAT NET RUN indicator on the front of the NJ/NX-series CPU Unit is lit green.
If process data communications are not performed normally, check the event log in the Sysmac Studio
and take suitable measures. Refer to 9-2-1 Error Table for event logs.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 5-35
5 Setting Up EtherCAT Communications with the Sysmac Studio
5-36 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Process Data Communications
and SDO Communications
This section describes the timing of communications, response times, and special
instructions for process data communications and SDO communications. It also pro-
vides sample programming.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-1
6 Process Data Communications and SDO Communications
Additional Information
You can use the priority-5 periodic task only with the NX701 CPU Units.
Operation screen in
Slave type Allocated variables
Sysmac Studio
EtherCAT slaves which are not Device Variables I/O Map
assigned to axes
EtherCAT slaves which are Axis Variables Axis Settings
assigned to axes
Allocated variables are specified for parameters of instructions in the user program.
Device Variables
The user program in an NJ/NX-series CPU Unit can read and write EtherCAT slave process data that is
not assigned to axes through device variables. (The slave process data is I/O data that is exchanged
between the master and slaves in each period.)
User program
Reading and writing
Device variables
EtherCAT
Slave Slave
6-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
Axis Variables
Servo Drives and encoder input slaves that are assigned to axes on EtherCAT can be controlled by
specifying Axis Variables (structures) as parameters for motion control instruction in-out variables.
User program
Reading, writing, and commands
EtherCAT
Servo Drive/encoder input Servo Drive/encoder input
slave slave
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-3
6 Process Data Communications and SDO Communications
Motion
Control
Motion Function
control Axes Module
instruction variables Axes Data refresh cycle in slave
variables (depends on the slave)
Sequence control period Motion control period Process data communications cycle
(Task period of primary periodic (Task period of primary periodic (EtherCAT data transmission cycle)
task or priority-5 or priority-16 task or priority-5 periodic task) This is the same as the task period of
periodic task) primary periodic task or priority-5
periodic task.
Task period of primary periodic task or priority-5 periodic task = Motion control period = Process data
communications cycle
6-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
* You can use the priority-5 periodic task only with the NX701 CPU Units.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-5
6 Process Data Communications and SDO Communications
*1 Refer to the manual for the specific slave to check if the I/O refreshing period agrees with the communica-
tions cycle supported with the slave. An error occurs if you use the Sysmac Studio to set the I/O refreshing
timing to a communications cycle that is not supported with the slave. The error occurs only with the
OMRON slaves that is set for synchronization.
*2 You can use the priority-5 periodic task only with the NX701 CPU Units.
*3 EtherCAT communications take place in the I/O refreshing timing for the primary periodic task. If the
priority-16 periodic task is used to control EtherCAT slaves, data will be refreshed by I/O refreshing in the
task period of the priority-16 periodic task.
Relationship between tasks to execute I/O refreshing, process data communications cycle, and
motion control is shown as follows.
• NX701 CPU Units
6-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
When EtherCAT communications are not established, such as immediately after the power supply to
Once the EtherCAT communications are established, the process data becomes valid, therefore values
of the device variables and axes variables which input and output the process data become also valid.
Be sure to read and write the device variables and axes variables that input and output the process
data, after confirming that the process data is valid.
Use the following system-defined variables to check the validity of the process data.
• Checking the validity of the process data for each slave.
_EC_PDSlavTbl (Process Data Communicating Slave Table)
• Checking the validity of the process data for the entire slaves.
_EC_PDActive (Process Data Communications Status)
A sample programming to check the validity of the process data is shown in the next section.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-7
6 Process Data Communications and SDO Communications
LD
EN
_EC_SlavErrTbl[1] In1
WORD#16#0000 In2
_EC_InDataInvalid Slave_1_inputs_valid
Slave 1 inputs
Slave 1 outputs
Slave_1_outputs_valid E001_Out_Bit00
ST
IF _EC_PDSlavTbl[1]=TRUE AND _EC_CommErrTbl[1]=FALSE AND
_EC_SlavErrTbl[1]=WORD#16#0 THEN
A:=TRUE;
ELSE
A:=FALSE;
END_IF;
6-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
You can read the status of the _EC_PDSlavTbl (Process Data Communicating Slave Table) sys-
tem-defined variables from the user program to see if I/O refreshing is normal.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-9
6 Process Data Communications and SDO Communications
LD
_EC_PDActive EQ All_slave_outputs_valid
EN
_EC_SlavErr In1
WORD#16#0000 In2
_EC_InDataInvalid All_slave_inputs_valid
All_slave_outputs_valid E001_Out_Bit00
ST
IF _EC_PDActive=TRUE AND _EC_SlavErr=WORD#16#0 THEN
A:=TRUE;
ELSE
A:=FALSE;
END_IF;
6-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-11
6 Process Data Communications and SDO Communications
This section defines the maximum I/O response time of process data communications in the system.
{
OI UP MC OI UP MC OI UP MC OI UP MC OI UP MC OI UP MC
RG RG RG RG RG RG
Transmission cycle = Task period (2) (3) (4)
CPU Unit
Process data communications cycle = Task period
Task period + Transmission delay + Transmission jitter
Scheduled trigger = task period
{
Network
(1) The slave generates process data send frames with I/O information from sensors and other
devices.
(2) The EtherCAT receives the process data frames that was sent from the slave through I/O
refreshing for the CPU Unit, and reads it as input data in the CPU Unit.
(3) Based on the input data, the CPU Unit processes user program execution and motion control to
determine the output data.
(4) The EtherCAT master generates a send frame of the process data with the output data pro-
duced in (3), and sends the frame to the slave before the slave performs reception processing.
(5) The slave receives the send frame of the process data from the EtherCAT master in the periodic
trigger timing, and outputs data to relays and other output devices.
Maximum I/O response Task period of periodic task (= process data communications cycle) × 2
time = + Slave input response time + Slave output response time
+ Transmission delay + Transmission jitter
6-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
The following describes how to find each element value in the formula.
Transmission Delay
The following methods are provided to calculate the transmission delay times for the CPU Unit and
the periodic tasks in which I/O is refreshed.
Transmission delay (μs) = 1.24 (μs) × Number of EtherCAT slaves + 0.082 (μs) × EtherCAT frame
length (bytes)
Parameter Description
Number of EtherCAT This is the number of all of the EtherCAT slaves in the same EtherCAT net-
Slaves work. An EtherCAT Slave Terminal is counted as one EtherCAT slave.
EtherCAT Frame The EtherCAT frame length is the data byte size that is calculated under the
Length in Bytes following conditions for the EtherCAT slaves in the same EtherCAT network
and for which I/O is refreshed in the primary periodic task.
• If the total data size is less than 64 bytes, use 64 bytes in the calculation.
• For EtherCAT slaves that have both input and output data, use the larger
of the input data size and output data size.
For example, the EtherCAT frame length in bytes for the following configu-
ration is as given below.
Configuration Example
• Two OMRON GX-series EtherCAT slaves: Data size of 20 bytes/slave
• One EtherCAT Slave Terminal: Input data size of 50 bytes and output
data size of 30 bytes
EtherCAT frame length = 20 bytes + 20 bytes + 50 bytes = 90 bytes
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-13
6 Process Data Communications and SDO Communications
Transmission Jitter
The value of transmission jitter depends on the CPU Unit.
1 Right-click the EtherCAT master or EtherCAT slave in the EtherCAT Tab Page and select
Calculate Transmission Delay Time of the Master.
6-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
2 The transmission delay times for PDO communications cycle 1 and PDO communications cycle
2 are displayed in the Output Tab Page.
Version Information
Sysmac Studio version 1.13 or higher is required to use the transmission delay time display func-
tion for the EtherCAT master.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-15
6 Process Data Communications and SDO Communications
6-1-5 I/O Operations for Major Fault Level Controller Errors and I/O
Refreshing with Specified Values
Output data:
Values before Slave Slave
operation stopped.
Values before
Inputs from slaves operation stopped →→→→→→→→→→→→→→→→→→→→→→→→→→→→
* The following errors may occur when the slave enters to the Safe-Operational state.
• Slave Application Error
• Slave Initialization Error
The formula and the maximum time required for all the slaves to enter Safe-Operational state and for
the output to reach to the value set from the slave settings are shown below. This formula applies to
only OMRON slaves.
6-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
*1 If multiple tasks are assigned, the longest task period is used for calculation.
*2 The Slave Sync Manager WDT error detection time is the time from when the last process data is received
until a reception error is detected.
Additional Information
When a major fault level Controller error occurs, the related system-defined variables have the
following values.
For NX701 CPU Units
_EC_InData1Invalid = TRUE
_EC_InData2Invalid = TRUE
6
_EC_PDSlavTbl[] = FALSE
_EC_MBXSlavTbl[] = Values before operation stopped
Values
6-1-5 I/O Operations for Major Fault Level Controller Errors and I/O Refreshing with Specified
For NJ-series CPU Units and NX1P2 CPU Units
_EC_InDataInvalid = TRUE
_EC_PDSlavTbl[] = FALSE
_EC_MBXSlavTbl[] = Values before operation stopped
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-17
6 Process Data Communications and SDO Communications
Forced Refreshing
You can specify forced refreshing from the Sysmac Studio for debugging. This allows you to change
process data output values to the slaves and input values from the slaves to the values that you specify
in advance.
Sysmac Studio
Forced refreshing specified.
NJ/NX-series
CPU Unit
Debugging
Input data is changed to values
specified with forced refreshing.
Output data is
changed to values Slave Slave
specified with forced
refreshing.
* If a major fault level Controller error occurs, the output values from before operation stopped are retained while
the slaves are in Operational state and the slave settings control the outputs after the slaves enter Safe-opera-
tional state.
6-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
Values
6-1-5 I/O Operations for Major Fault Level Controller Errors and I/O Refreshing with Specified
For details, refer to relevant manuals for each slave.
Additional Information
You can check from the user program to see if I/O refreshing is normal by checking one of the
system-defined variables _EC_PDSlavTbl (Process Data Communicating Slave Table).
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-19
6 Process Data Communications and SDO Communications
6-20 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
The object index for the software version is 16#100A. The subindex is 0. The read value is stored in
STRING variable VersionInfo.
Remote slave node address 1
External
Variables Variable Data type Constant Comment
_EC_MBXSlavTbl ARRAY[1..192] OF BOOL Message Communications Enabled Slave Table
Accept trigger.
Trigger _EC_MBXSlavTbl[1]
(@)MOVE 6
EN ENO
UINT#16#100A In Out SdoObject.Index
(@)MOVE
EN ENO
FALSE In Out SdoObject.IsComleteAccess
EC_CoESDORead_instance
EC_CoESDORead
Execute Done
UINT#1 NodeAdr Busy
SdoObject SdoObj Error
UINT#20 TimeOut ErrorID
ReadDat
VersionInfo
AbortCode
ReadSize
Processing after normal end
Trigger EC_CoESDORead_instance.Done Inline ST
1 // Processing after normal end
2 ;
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-21
6 Process Data Communications and SDO Communications
ST
Internal
Variables Variable Data type Initial value Comment
Trigger BOOL False Execution condition
SdoObject _sSDO_ACCESS (Index:=0, Subindex:=0, SDO parameter
IsCompleteAccess:=False)
DoSdoRead BOOL False Processing
VersionInfo STRING[256] ‘’ Read data
NormalEnd UINT 0 Normal end
ErrorEnd UINT 0 Error end
EC_CoESDORead_instance EC_CoESDORead
External
Variables Variable Data type Constant Comment
_EC_MBXSlavTbl ARRAY[1..192] OF BOOL Message Communications Enabled Slave Table
IF (EC_CoESDORead_instance.Done=TRUE) THEN
// Processing after normal end
NormalEnd:=NormalEnd+UINT#1;
ELSIF (EC_CoESDORead_instance.Error=TRUE) THEN
// Processing after error end
ErrorEnd :=ErrorEnd+UINT#1;
END_IF;
END_IF;
6-22 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
Additional Information
The minimum message response time depends on the unused time in task execution, slave
SDO size, and slave SDO processing time. In the timing chart below, the time from when the
SDO communications instruction is executed until execution of the instruction is completed
should be used for reference only.
When the Task Period of the Primary Periodic Task Is Smaller than 4 ms
Minimum message response time (ms) = Task period of the task that executes the SDO communications
instruction
+ (Slave SDO processing time*1/Task period of primary periodic 6
task)*2 × Task period of primary periodic task
+ (SDO response data size/Transmission size)*2 × Task period of
primary periodic task
The transmission size is determined by the task period of primary periodic task as shown below.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-23
6 Process Data Communications and SDO Communications
The following timing chart shows an example of the timing from an execution of the SDO communi-
cations instruction to the completion of the instruction execution, based on the performance model
below.
Here, it is assumed that the program that executes the SDO communications instructions is
assigned to the primary periodic task.
Task period Task period Task period Task period Task period Task period
IO: I/O refreshing (1 ms) (1 ms) (1 ms) (1 ms) (1 ms) (1 ms)
UPG: User program execution
MC: Motion control IO UPG MC IO UPG MC IO UPG MC IO UPG MC IO UPG MC IO UPG MC
Minimum message response time (ms) = Task period of the task that executes SDO communications
instruction
+ (Slave SDO processing time*1/Divided period*2)*3 × Divided
period
+ (SDO response data size/256 bytes)*3 × Divided period
*1 The slave SDO processing time depends on the slaves. Refer to the manual for the slave.
*2 The divided period is obtained by dividing the task period of primary periodic task. If the task period of pri-
mary periodic task is equal to or more than 4 ms, the EtherCAT master sends a message communications
frame to a slave and receives a message response data from the slave, according to the divided period.
Assign 1 ms to the divided period for this calculation.
*3 Round up the calculation result in parentheses to make an integer.
6-24 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
The following timing chart shows an example of the timing from an execution of the SDO communi-
cations instruction to the completion of the instruction execution, based on the performance model
below.
Here, it is assumed that the program that executes the SDO communications instructions is
assigned to the primary periodic task.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-25
6 Process Data Communications and SDO Communications
The calculation formula for the minimum message response time is given below.
Minimum message response time (ms) = Task period of the task that executes SDO communications
instruction
+ (Slave SDO processing time*1/Task period of primary periodic
task)*2 × Task period of primary periodic task
+ (SDO response data size/256 bytes)*2 × Task period of primary
periodic task
*1 The slave SDO processing time depends on the slaves. Refer to the manual for the slave.
*2 Round up the calculation result in parentheses to make an integer.
The following timing chart shows an example of the timing from an execution of the SDO communica-
tions instruction to the completion of the instruction execution, based on the performance model below.
Here, it is assumed that the program that executes the SDO communications instructions is assigned to
the primary periodic task.
IO: I/O refreshing Task period Task period Task period Task period Task period Task period
UPG: User program execution (1 ms) (1 ms) (1 ms) (1 ms) (1 ms) (1 ms)
MC: Motion control IO UPG MC IO UPG MC IO UPG MC IO UPG MC IO UPG MC IO UPG MC
6-26 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
6 Process Data Communications and SDO Communications
Note Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for details on the instructions that
are used with EtherCAT communications.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 6-27
6 Process Data Communications and SDO Communications
Additional Information
6-28 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
System-defined Variables That
Are Related to the Built-in
EtherCAT Port
This section describes the system-defined variables that are related to the built-in
EtherCAT port.
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port . . . .7-2
7-1-1 What Are System-defined Variables? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7-1-2 System-defined Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
7-1-3 EtherCAT Master Function Module, Category Name: _EC . . . . . . . . . . . . . . . 7-9
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-1
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
User programming
Reading
System-defined variables
Writing
EtherCAT master
EtherCAT
Slave Slave
7-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
values
_EC_ErrSta Built-in This system-defined variable provides the col- WORD 16#0000 to page 7-9
EtherCAT Error lective status of errors in the EtherCAT Master 16#00F0
Function Module.
Refer to Meanings of Error Status Bits given
later for the meaning of individual bits.
_EC_PortErr Communications This system-defined variable provides the col- WORD 16#0000 to page 7-9
Port Error lective status of errors in the communications 16#00F0
ports for the EtherCAT master.
Refer to Meanings of Error Status Bits given
later for the meaning of individual bits.
_EC_MstrErr Master Error This system-defined variable provides the col- WORD 16#0000 to page 7-9
lective status of EtherCAT master errors and 16#00F0
slave errors detected by the EtherCAT mas-
ter.
Refer to Meanings of Error Status Bits given
later for the meaning of individual bits.
_EC_SlavErr Slave Error This system-defined variable provides the col- WORD 16#0000 to page 7-9
lective status of all the error status for Ether- 16#00F0
CAT slaves.
Refer to Meanings of Error Status Bits given
later for the meaning of individual bits.
_EC_SlavErrTbl Slave Error Table This system-defined variable gives the error ARRAY 16#0000 to page 7-10
status for each EtherCAT slave. The error sta- [1..512] 16#00F0
tus is given for each slave in the actual sys- OF
tem configuration. This variable array WORD*1
indicates slaves in which there are errors. Sta-
tus is provided for each EtherCAT slave node
address (1 to 512).*1 Refer to Meanings of
7
Error Status Bits given later for the meaning of
individual bits.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-3
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
Range of
Variable name Meaning Function Data type Reference
values
_EC_SlavAdrDupErr Slave Node TRUE if the same node address is set for BOOL TRUE or page 7-11
Address more than one slave. FALSE
Duplicated Error
_EC_SlavInitErr Slave TRUE if there is an error in an initialization BOOL TRUE or page 7-12
Initialization Error command addressed to a slave. FALSE
_EC_SlavAppErr Slave TRUE if there is an error in the slave’s appli- BOOL TRUE or page 7-12
Application Error cation status register. FALSE
_EC_MsgErr EtherCAT TRUE when a message is sent to a slave that BOOL TRUE or page 7-12
Message Error does not support messages or when there is FALSE
an error in the format of the response to a
message that was sent to a slave.
_EC_SlavEmergErr Emergency Mes- TRUE if the master detects an emergency BOOL TRUE or page 7-12
sage Detected message that was sent by a slave. FALSE
_EC_IndataInvalidErr Input Process TRUE if the Input Data Invalid state continued BOOL TRUE or page 7-12
Data Invalid Error for the following period because the EtherCAT FALSE
master could not perform process data com-
munications normally when it was in the Oper-
ational state.
• When the task period is 10 ms or shorter:
100 ms
• When the task period is longer than 10 ms:
10 periods o the task
_EC_CommErrTbl Communications Slaves are given in the table in the order of ARRAY TRUE or page 7-13
Error Slave Table slave node addresses. The corresponding [1..512] FALSE
slave element is TRUE if the master detected OF BOOL*2
an error for the slave.
_EC_CycleExceeded EtherCAT Com- TRUE if the CPU unit cannot establish com- BOOL TRUE or page 7-13
munications munications within the set communications FALSE
Cycle Exceeded period at startup.
*1 For the NX1P2 CPU Units and NJ-series CPU Units, the node address is 1 to 192 and the data type is Array [1..192] OF
WORD.
*2 For NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
7-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
Additional Information
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
_EC_ErrSta Built-in _EC_PortErr Communi- _EC_MacAdrErr MAC Address Error Partial fault
EtherCAT cations level
_EC_LanHwErr Communications
Error Port Error Controller Error
_EC_LinkOffErr Link OFF Error Minor fault
level
_EC_MstrErr Master _EC_NetCfgErr Network Configura-
Error tion Information Error
_EC_NetCfgCmpErr Network Configura-
tion Verification Error
_EC_NetTopologyErr Network Configura-
tion Error
_EC_PDCommErr Process Data Com-
munications Error
_EC_PDTimeoutErr Process Data Recep-
tion Timeout Error
_EC_PDSendErr Process Data Trans-
mission Error
_EC_SlavAdrDupErr Slave Node Address
Duplicated Error
_EC_SlavInitErr Slave Initialization
Error
_EC_SlavAppErr Slave Application
Error
_EC_CommErrTbl Communications
Error Slave Table
_EC_CycleExceeded EtherCAT Communi-
cations Cycle 7
Exceeded
_EC_MsgErr EtherCAT Message Observation
Note The values of all system-defined variables that are related to errors in EtherCAT communications do not
change until the cause of the error is removed and then the error in the Controller is reset with the trouble-
shooting functions of the Sysmac Studio or the ResetECError instruction.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-5
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
Range of
Variable name Meaning Function Data type Reference
values
_EC_InDataInvalid Input Data TRUE when process data communications in BOOL TRUE or page 7-16
Invalid the primary periodic task are not normal and FALSE
the input data is not valid.
_EC_InData1Invalid Input Data1 TRUE when process data communications BOOL TRUE or page 7-16
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
Invalid established in the primary periodic task are FALSE
not normal and the input data is not valid.
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
Note All system-defined variables that are related to the status of EtherCAT communications give the current status.
Range of
Variable name Meaning Function Data type Reference
values
_EC_StatisticsLogEn- Diagnosis/Statis- Changes to TRUE when the diagnosis/statis- BOOL TRUE or page 7-16
able tics Log Enable tics log is started. FALSE
(Ver.1.11) Changes to FALSE when the diagnosis/statis-
tics log is ended.
_EC_StatisticsLogCy- Diagnosis/Statis- Specifies the interval to write the diagnostic UINT 0, or 30 to 1800 page 7-17
cleSec tics Log Cycle and statistical information of the diagnosis/sta- 7
(Ver.1.11) tistics log in units of seconds.
When 0 is specified, the diagnostic and statis-
tical information is written only once when the
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-7
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
*1 For the EtherCAT Master Function Module, only _EC_ErrSta (Built-in EtherCAT Error) is used.
7-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
Variable name _EC_ErrSta
Meaning Built-in EtherCAT Error Global/local Global
Function This system-defined variable provides the collective status of errors in the EtherCAT Master Function Module.
Refer to Meanings of Error Status Bits provided above for the meanings of the error status 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- Get EtherCAT Error Status
tions • GetECError
Reset EtherCAT Error
• ResetECError
7
Variable name _EC_MstrErr
Meaning Master Error Global/local Global
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-9
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
* For the NX1P2 CPU Units and NJ-series CPU Units, the node address is 1 to 192 and the data type is Array [1..192] OF
WORD.
7-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc- Reset EtherCAT Error
tions • ResetECError
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-11
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
* This system-defined variable was added for unit version 1.13 of the CPU Unit.
7-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc- Reset EtherCAT Error
tions • ResetECError
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
Note The values of all system-defined variables that are related to errors in EtherCAT communications do not change until the
cause of the error is removed and then the error in the Controller is reset with the troubleshooting functions of the Sys-
mac Studio or the ResetECError instruction.
Note You can use this system-defined variable only for NX-series CPU Units.
Data types 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
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-13
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
Note Use this variable to confirm that message communications are possible for the relevant slave before you
execute message communications with an EtherCAT slave.
Data type Array [1..512] 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- Disconnect EtherCAT Slave
tions • EC_DisconnectSlave
Connect EtherCAT Slave
• EC_ConnectSlave
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
7-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc- ---
tions
* For the NX1P2 CPU Units and NJ-series CPU Units, the data type is Array [1..192] OF BOOL.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-15
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
Note All system-defined variables that are related to the status of EtherCAT communications give the current status.
Note All system-defined variables that are related to the status of EtherCAT communications give the current status.
Note You can use this system-defined variable only for NX-series CPU Units.
Note This variable is always TRUE for the NX1P2 CPU Units.
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
Note All system-defined variables that are related to the status of EtherCAT communications give the current status.
* This system-defined variable was added for unit version 1.11 of the CPU Unit.
7-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-1 System-defined Variables That Are Related to the Built-in EtherCAT Port
log is ended.
Note The write interval does not change even if you change the value of this system-defined variable while the
diagnosis/statistics log operation is in progress.
Data type UINT Range of values 0, or 30 to 1800
R/W access R/W Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc- ---
tions
* This system-defined variable was added for unit version 1.11 of the CPU Unit.
* This system-defined variable was added for unit version 1.11 of the CPU Unit.
* This system-defined variable was added for unit version 1.11 of the CPU Unit.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 7-17
7 System-defined Variables That Are Related to the Built-in EtherCAT Port
7-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Example of Operations for
EtherCAT Communications
This section provides a series of example operations for when an NJ/NX-series CPU
Unit is connected to slaves.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 8-1
8 Example of Operations for EtherCAT Communications
Button 1
Wiring
• Install the Controller and slaves.
• Connect communications cables to the EtherCAT master and slaves.
• Connect the power supply.
Settings
• Set the node address for each slave.
8-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
8 Example of Operations for EtherCAT Communications
In this example, Pwr_On is assigned to bit 0 of slave 1 and Hm1_On is assigned to bit 1 of slave 1.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 8-3
8 Example of Operations for EtherCAT Communications
In the same way, add an axis and assign the Servo Drive with node address 4 to it.
8-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
8 Example of Operations for EtherCAT Communications
8-1-4 Programming
Programming
When the operation start button is pressed, the Pwr_On variable changes to TRUE and axis control
is enabled. (See rung 0.)
When the homing button is pressed, the Hm1_On variable changes to TRUE and homing is per-
formed. (See rung 1.)
8-1-4 Programming
• Controller power supply
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 8-5
8 Example of Operations for EtherCAT Communications
Make sure that the status indicators on all slaves are in the following status.
PWR indicator Lit
RUN indicator Lit
ERR indicator Not lit
L/A IN (physical layer LINK inputs) Flashing
L/A OUT (physical layer LINK outputs) Flashing (Not lit on the last slave.)
8-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Troubleshooting
This section describes the event codes, error confirmation methods, and corrections for
errors that can occur for EtherCAT communications. It also describes how to replace
slaves.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-1
9 Troubleshooting
EtherNet/IP
Troubleshooter
Built-in
EtherCAT
NJ/NX-series port
Troubleshooting functions CPU Unit CJ-series Units/NX Units
Sysmac Studio
EtherCAT
EtherCAT
slaves
You can use the troubleshooting functions of the Sysmac Studio or the Troubleshooter on an HMI to
quickly check for errors that have occurred and find corrections for them.
To perform troubleshooting from an HMI, connect the HMI to the built-in EtherNet/IP port on the CPU
Unit.
This manual describes the errors that originate in the EtherCAT Master Function Module. Refer to the
NJ/NX-series Troubleshooting Manual (Cat. No. W503) for specific corrections when errors occur and
for troubleshooting information on the entire NJ/NX-series Controller.
9-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
* To perform troubleshooting from an HMI, connect the HMI to the built-in EtherNet/IP port on the CPU Unit. Refer
to the appendices of the NJ/NX-series Troubleshooting Manual (Cat. No. W503) for the applicable range of the
HMI Troubleshooter.
This section describes the above checking methods.
longer
Lit Not lit Lit Major fault level*4 Possible: Connect the Sysmac Stu-
dio or an HMI and check the cause
Lit Lit Flashing Partial fault level
of and correction for the error in the
Lit Lit Flashing Minor fault level troubleshooting functions of the
Lit Lit Not lit Observation Sysmac Studio or the Trouble-
shooter of the HMI.
Lit Lit Not lit Normal operation in RUN mode ---
Lit Not lit Not lit Normal operation in PROGRAM ---
mode*2
Lit Flashing Not lit Normal operation in startup state ---
*1 This error can occur for NX701 CPU Units. If the status of indicators shown above continues 30 seconds or
longer, this error exists.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-3
9 Troubleshooting
*2 If you can connect communications to the CPU Unit from the Sysmac Studio with a direct connection via USB,
the CPU Unit is in PROGRAM mode. If you cannot connect communications, a CPU Unit Reset or Hardware
Initialization Error has occurred.*5
*3 This error can occur for NX1P2 CPU Units. If the status of indicators shown above continues 30 seconds or
longer, this error exists.
*4 If you can connect communications to the CPU Unit from the Sysmac Studio with a direct connection via USB,
a major fault level error has occurred. If you cannot connect communications, a CPU Unit Error has
occurred.*5
*5 If you cannot connect communications to the CPU Unit from the Sysmac Studio, it is also possible that the
USB cable is faulty or that the connection type on the Sysmac Studio is not set for a direct connection via USB.
Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503) if you cannot connect communications to
the CPU Unit.
The following table shows the relationship between the CPU Unit indicators and the event level for
an NJ-series CPU Unit.
*1 If you can connect communications to the CPU Unit from the Sysmac Studio with a direct connection via USB,
the CPU Unit is in PROGRAM mode. If you cannot connect communications, the CPU Unit is being reset.*3
*2 If you can connect communications to the CPU Unit from the Sysmac Studio with a direct connection via USB,
a major fault level error has occurred. If you cannot connect communications, a watchdog timer error has
occurred in the CPU Unit.*3
*3 If you cannot connect communications to the CPU Unit from the Sysmac Studio, it is also possible that the
USB cable is faulty or that the connection type on the Sysmac Studio is not set for a direct connection via USB.
Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503) if you cannot connect communications to
the CPU Unit.
9-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
For details on the instructions that get error status, refer to the NJ/NX-series Instructions Reference
Manual (Cat. No. W502).
9
9-1-1 How to Check for Errors
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-5
9 Troubleshooting
*1 “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
The meanings of the individual bits in the above error status variables are given below.
*1 For the EtherCAT Master Function Module, only _EC_SlavErrTbl (Slave Error Table) is used.
*2 For the EtherCAT Master Function Module, only _EC_ErrSta (Built-in EtherCAT Error) is used.
9-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Or
EtherCAT Master
Function Module
EtherCAT
EtherCAT
slaves
Additional Information
If any one of the following errors occurs at the same time for more than one slave, only the error
9
Classifications
Module
9-1-2 Errors Related to the EtherCAT Master Function
There are the following sources of errors in the EtherCAT Master Function Module.
Classification Description
Communications port errors If an error is detected in overall EtherCAT communications, the correspond-
ing bit in the Communications Port Error status variable shows the error.
EtherCAT master errors If the EtherCAT master detects an error in its own settings or processing, the
corresponding bit in the Master Error status variable shows the error. If the
EtherCAT master detects an error in a slave, the corresponding bit in the
Master Error status variable shows the error.
EtherCAT slave errors If the EtherCAT master detects an error in a slave, the error status for the
slave will show that the master detected an error.*1*2*3
*1 The EtherCAT master periodically reads error status information from the slaves. It updates the system-
defined variables at the same time as the I/O data.
*2 The EtherCAT master will set the bits for EtherCAT slaves that do not report error status to FALSE in the Slave
Error Table.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-7
9 Troubleshooting
*3 If the error in the slave is corrected after it occurs, you do not need to reset it. It is reset automatically. (This
applies to CPU Unit with unit version 1.05 or later.)
Additional Information
Refer to the NX-series EtherCAT Coupler Unit User’s Manual (Cat. No. W519) for the events that
can occur for an EtherCAT Slave Terminal.
Event Levels
This section describes the operation of the EtherCAT Master Function Module for each event level.
9-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Source
Level Communications port EtherCAT master EtherCAT slaves
Major fault • None • None • None
• Communications Con- • EtherCAT Processing Error • None
troller Failure
Partial fault
• MAC Address Error
• Link OFF Error
• None • Slave Node Address Dupli- • Network Configuration Veri-
cated fication Error
• Network Configuration Infor- • Slave Application Error
mation Error • Process Data Communica-
• EtherCAT Communications tions Error
Cycle Exceeded • Slave Node Address Dupli-
• Controller Insufficient Mem- cated
ory Warning • Slave Initialization Error
• Network Configuration Error
Minor fault
• Network Configuration Veri-
fication Error
• Slave Initialization Error
• Process Data Transmission
Error
• Process Data Reception
Timeout Error
• Input Process Data Invalid
* Slave errors that are detected by the master are listed. There will also be a master error if any of these errors
Module
9-1-2 Errors Related to the EtherCAT Master Function
occurs. For slave errors that are not detected by the master, the errors and levels are defined by the individual
slaves. Refer to the manual for the slave.
Refer to the NX-series EtherCAT Coupler Unit User’s Manual (Cat. No. W519) for the events that can occur for
an EtherCAT Slave Terminal.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-9
9 Troubleshooting
9-2 Troubleshooting
This section describes the errors that can occur and the corrections for them.
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
04400000 hex Communica- An error was • The CPU Unit has failed. √ page 9-17
tions Control- detected in the
ler Failure hardware test at
startup.
14400000 hex MAC The MAC address • The CPU Unit has failed. √ page 9-17
Address is incorrect.
Error
44010000 hex EtherCAT A fatal error was • Software is corrupted. √ page 9-18
Fault detected in the Eth-
erCAT Master
Function Module.
84200000 hex Link OFF A Link OFF state • The Ethernet cable is broken √ page 9-19
Error occurred. between the master and slaves.
• The Ethernet cable connector is
disconnected.
• The Ethernet cable is not con-
nected.
842E0000 hex EtherCAT The sent EtherCAT • A Unit other than an EtherCAT √ page 9-20
(Ver. 1.11 or Frame Not frame was not slave is connected.
later) Received received. • A connector on the Ethernet
cable is disconnected, the con-
tact is faulty, or parts are faulty.
• Slave output ports are con-
nected to each other.
• The master and slave are con-
nected with the slave output
port.
• Hardware failure of EtherCAT
slave
• Hardware failure of EtherCAT
master
24200000 hex Slave Node The same slave • The same node address is set √ page 9-22
Address address is used for for more than one slave.
Duplicated two nodes.
9-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
34400000 hex Network There is an error in • The power supply to the Con- √ page 9-23
Configura- the network config- troller was interrupted or com-
tion Informa- uration information. munications with the Sysmac
tion Error Studio were disconnected while
downloading the network con-
figuration information.
34410000 hex EtherCAT Process data com- • The transmission delay time in √ page 9-24
(Ver. 1.10 or Communica- munications could the actually connected configu-
later) tions Cycle not be performed ration is longer than the trans-
Exceeded with the specified mission delay time calculated
communications for the user-set cable length.
cycle. • The set task period or commu-
nications cycle is too short.
50010000 hex Controller The amount of data • The amount of data for the Eth- √ page 9-24
(Ver. 1.02 or Insufficient for the EtherCAT erCAT slave configuration, net-
later) Memory slave configura- work-published information, or
Warning tion, network-pub- other data exceeds the value
lished information, that is specified for the CPU
or other data Unit.
exceeds the value
that is specified for
the CPU Unit. You
may not be able to
perform online edit-
ing or other opera-
tions.
84210000 hex Network The EtherCAT net- • Slave output ports are con- √ page 9-25
Configura- work configuration nected to each other.
tion Error is incorrect. • The master and slave are con-
nected with the slave output
port.
• The number of connected
9-2 Troubleshooting
slaves exceeded the maximum
number of slaves for the Ether-
CAT master.
84220000 hex Network A slave that is in the • A slave that is in the network √ page 9-27
Configura- network configura- configuration information is not
tion Verifica- tion information is connected.
tion Error not connected. Or, • There is a node address mis-
a slave that is not in match.
the network config-
• A different slave from the one
uration information
is connected.
that is specified in the network 9
configuration information is
connected.
• A slave that is not in the net-
9-2-1 Error Table
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-11
9 Troubleshooting
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
84230000 hex Slave Initial- Slave initialization • An error occurred in EtherCAT √ page 9-29
ization Error failed. master processing.
• An initialization error occurred
in the EtherCAT slave.
• An initialization error occurred
in the EtherCAT Coupler Unit.
• A major fault level Controller
error occurred.
• The Ethernet cable is broken or
the specified cable is not being
used.
• A connector on the Ethernet
cable is disconnected, the con-
tact is faulty, or parts are faulty.
• A general-purpose Ethernet
hub is connected.
• The master failed.
• The slave failed.
• Noise.
84280000 hex Slave Appli- An error occurred in • An error was detected in the √ page 9-31
cation Error the slave applica- slave’s application layer status
tion. register.
84290000 hex Process Data Sending process • It was not possible to send the √ page 9-32
Transmis- data failed. EtherCAT frame during the Eth-
sion Error erCAT communications period.
• The frame transmission jitter
exceeded the limit.
842B0000 hex Process Data Process data • The Ethernet cable is broken or √ page 9-33
Reception reception timed out. the specified cable is not being
Timeout used.
• A connector on the Ethernet
cable is disconnected, the con-
tact is faulty, or parts are faulty.
• A general-purpose Ethernet
hub is connected.
• The master failed.
• The slave failed.
• The Ethernet cable is too long.
• The CPU Unit task period is too
short.
• Noise
842C 0000 hex Process Data An error occurred in • A slave left the network even √ page 9-34
Communica- process data com- though the disconnection oper-
tions Error munications. ation or disable operation was
not performed.
• Slave failure
9-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
842F0000 hex Input Pro- Because the Ether- • Hardware failure of EtherCAT √ page 9-35
(Ver. 1.13 or cess Data CAT master could slave
later) Invalid Error not perform pro- • Noise
cess data commu-
nications normally
when it was in the
Operational state,
the Input Data
Invalid state contin-
ued for the follow-
ing period.
• When the task
period is 10 ms or
shorter: 100 ms
• When the task
period is longer
than 10 ms: 10
periods of the
task
102F 0000 hex EtherCAT The backup opera- • There is no connection √ page 9-36
(Ver. 1.03 or Slave tion for an Ether- between the EtherCAT master
later) Backup CAT slave ended in and the slave (Link OFF).
Failed an error. • An error caused an incorrect
EtherCAT master status.
• The EtherCAT network configu-
ration information does not
agree with the physical network
configuration.
• The request to the EtherCAT
slave failed.
• The EtherCAT master was tem-
porarily unable to perform the
9-2 Troubleshooting
processing because it was exe-
cuting other processing.
• Initialization of the EtherCAT
slave failed.
• It was not possible to read the
backup parameters from the
EtherCAT slave.
• Communications with an
OMRON Communications Cou-
pler Unit or NX Unit failed.
9
9-2-1 Error Table
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-13
9 Troubleshooting
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
10300000 hex EtherCAT The restore opera- • There is no connection √ page 9-38
(Ver. 1.03 or Slave tion for an Ether- between the EtherCAT master
later) Restore CAT slave ended in and the slave (Link OFF).
Operation an error. • An error caused an incorrect
Failed EtherCAT master status.
• The EtherCAT network configu-
ration information does not
agree with the physical network
configuration.
• The request to the EtherCAT
slave failed.
• The EtherCAT master was tem-
porarily unable to perform the
processing because it was exe-
cuting other processing.
• Initialization of the EtherCAT
slave failed.
• It was not possible to write the
backup parameters to the
MX2/RX Series Inverter. (This
applies only for unit version
1.10 or earlier of the CPU Unit.)
• It was not possible to write the
backup parameters to the Eth-
erCAT slave.
• Incorrect backup data was
detected.
• The EtherCAT network configu-
ration in the backup data does
not agree with the physical net-
work configuration.
• An error occurred at an
OMRON Communications Cou-
pler Unit. The following causes
are possible.
• Reading a backup file failed
at the Communications Cou-
pler Unit (when attached
information 4 is 1).
• Communications with the
Communications Coupler
Unit or NX Unit failed (when
attached information 4 is 2).
• The Unit Configuration of the
NX Units in the Communica-
tions Coupler Unit when data
was backed up did not agree
with the actual configuration
of NX Units (when attached
information 4 is 3).
64200000 hex Emergency An emergency • An emergency message was √ page 9-40
Message message was received from a slave.
Detected detected.
842D 0000 hex EtherCAT An error occurred in • Refer to the attached informa- √ page 9-41
Message a message commu- tion to check the error.
Error nications with the
slave.
94400000 hex Slave Dis- A slave was discon- • An operation to disconnect the √ page 9-42
connected nected for a discon- slave was executed from the
nection command. Sysmac Studio.
• The EC_DisconnectSlave
instruction was executed.
9-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Level
Event code Event name Meaning Assumed cause Reference
Maj Prt Min Obs Info
94410000 hex Slave Con- A slave was recon- • An operation to reconnect the √ page 9-43
nected nected for a recon- slave was executed from the
nection command. Sysmac Studio.
• The EC_ConnectSlave instruc-
tion was executed.
94430000 hex Errors Reset A command was • An error reset operation was √ page 9-44
received to reset performed from the Sysmac
errors. Studio.
• The ResetECError instruction
was executed.
94440000 hex Slave Dis- The EtherCAT • The EC_ChangeEnableSetting √ page 9-45
(Ver. 1.04 or abled Slave was disabled. instruction was executed.
later)
94450000 hex Slave The EtherCAT • The EC_ChangeEnableSetting √ page 9-45
(Ver. 1.04 or Enabled Slave was enabled. instruction was executed.
later)
94500000 hex EtherCAT EtherCAT diagno- • The value of the _EC_Statis- √ page 9-46
(Ver. 1.11 or Diagno- sis/statistics log is ticsLogEnable system-defined
later) sis/Statistics started. variable changed from FALSE
Log Started to TRUE.
94510000 hex EtherCAT EtherCAT diagno- • An error that causes EtherCAT √ page 9-47
(Ver. 1.11 or Diagno- sis/statistics log is diagnosis/statistics log to end
later) sis/Statistics ended. occurred.
Log Ended
9-2 Troubleshooting
9
9-2-1 Error Table
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-15
9 Troubleshooting
Event name Gives the name of the error. Event code Gives the code of the error.
Meaning Gives a short description of the error.
Source Gives the source of the error. Source details Gives details on Detection Tells when the
the source of the timing error is detected.
error.
Error attributes Level Tells the level of Recovery Gives the recov- Log category Tells which log
influence on con- ery method.*2 the error is saved
trol.*1 in.*3
Effects User program Tells what will hap- Operation Provides special information on the operation that results
pen to execution of from the error.
the user pro-
gram.*4
Indicators Gives the status of the built-in EtherNet/IP port and built-in EtherCAT port indicators. Indicator status is given only for
errors in the EtherCAT Master Function Module and the EtherNet/IP Function Module.
System-defined Variable Data type Name
variables Lists the variable names, data types, and meanings for system-defined variables that provide direct error notification,
that are directly affected by the error, or that contain settings that cause the error.
Cause and cor- Assumed cause Correction Prevention
rection
Lists the possible causes, corrections, and preventive measures for the error.
Attached This is the attached information that is displayed by the Sysmac Studio or an HMI.*5
information
Precautions/ Provides precautions, restrictions, and supplemental information.
Remarks
9-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Error Descriptions
9-2 Troubleshooting
port timing Controller reset
Error attributes Level Partial fault Recovery Cycle the power Log category System
supply or reset
the Controller.
Effects User program Continues. Operation Master:
The master waits in the Init state.
Slave:
Parameter setting is not possible. Process data communi-
cations are not possible.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
9
--- Lights. --- 9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-17
9 Troubleshooting
9-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
that are not connected.
Attached None
information
Precautions/ None
Remarks
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-19
9 Troubleshooting
Event name EtherCAT Frame Not Received Event code 842E0000 hex *1
Meaning The sent EtherCAT frame was not received.
Source EtherCAT Master Function Module Source details Master/Slave Detection At power ON, at
timing Controller reset,
or when a cable
is connected to
EtherCAT master
Error attributes Level Partial fault Recovery Error reset Log category System
Effects User program Continues. Operation Master:
The master waits in the Init state.
Slave:
Parameter setting is not possible. Process data communi-
cations are not possible.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
Not lit. Flashes at 1-s intervals. Flashing
System-defined Variable Data type Name
variables
_EC_LinkOffErr BOOL Link OFF Error
_EC_LinkStatus BOOL Link Status
Cause and Assumed cause Correction Prevention
correction A Unit other than an EtherCAT slave Confirm that the Unit connected to the None
is connected. relevant port of the slave or master
which is shown in the attached infor-
mation is an EtherCAT slave.
A connector on the Ethernet cable is Confirm the connection of the cable Make sure that the Ethernet cable is
disconnected, the contact is faulty, or or slave that is connected to the rele- not broken and the specified cable is
parts are faulty. vant port of the slave or master which used.
is shown in the attached information. Confirm that the Ethernet cable con-
If the cable used is the one not speci- nector is mated securely.
fied, replace it.
Or, reconnect the connector and
make sure it is mated correctly.
Slave output ports are connected to Correct the connection of the Ether- Confirm that there is no incorrect
each other. net cable that is connected to the rel- Ethernet cable connection.
The master and slave are connected evant port of the slave or master
which is shown in the attached infor-
with the slave output port.
mation.
Hardware failure of EtherCAT slave Replace the slave that is connected None
to the output port of the slave or mas-
ter which is shown in the attached
information. Or, replace the slave
itself which is shown in the attached
information.
Hardware failure of EtherCAT master If the attached information indicates None
the master and operation is not recov-
ered by the above, replace the CPU
Unit.
9-20 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
*1 This event code occurs for unit version 1.11 or later of the CPU Unit.
9-2 Troubleshooting
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-21
9 Troubleshooting
Event name Slave Node Address Duplicated Event code 24200000 hex
Meaning The same slave address is used for two nodes.
Source EtherCAT Master Function Module Source details Slave Detection At power ON, at
timing Controller reset,
or during commu-
nications
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation Master:
• If error is detection when the master is started:
Communications stop. The master waits in the Init state.
• When the Fail-soft operation is set to Fail-soft and the
error is detected during operation:
Slaves that were normal continue to operate. Slaves
after the new slave that caused the duplicated address
error remain in the Init state.
• When the Fail-soft operation is set to Stop and the error
is detected during operation:
The slaves that were normal enter the Pre-operational
state. Slaves after the new slave that caused the dupli-
cated address error remain in the Init state.
Slave:
• No error occurred.
Parameters other than the node address cannot be set
and process data communications cannot be performed
for the new slave that caused the duplicated address error
and all slaves after it.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- Flashes at 1-s intervals. ---
System-defined Variable Data type Name
variables
_EC_SlavAdrDupErr BOOL Slave Node Address Duplicated Error
Cause and Assumed cause Correction Prevention
correction The same node address is set for Check the node address switch or Set the node address of the slave to
more than one slave. node address set value of the slave, prevent duplication.
and change it to prevent address
duplication.
Attached None
information
Precautions/ The slave cannot be used unless the slave node address is set.
Remarks
9-22 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Event name Network Configuration Information Error Event code 34400000 hex
Meaning There is an error in the network configuration information.
Source EtherCAT Master Function Module Source details Master Detection At power ON or
timing Controller reset
Error attributes Level Minor fault Recovery Automatic Log category System
recovery
Effects User program Continues. Operation Master:
The master waits in the Init state.
Slave:
Parameter setting is not possible. Process data communi-
cations are not possible.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- Flashes at 1-s intervals. ---
System-defined Variable Data type Name
variables _EC_NetCfgErr BOOL Network Configuration Information
Error
Cause and Assumed cause Correction Prevention
correction
The power supply to the Controller Perform the Clear All Memory opera- Do not turn OFF the power supply to
was interrupted or communications tion, set the network configuration the Controller or disconnect commu-
with the Sysmac Studio were discon- information, and then save it in the nications with the Sysmac Studio
nected while downloading the net- master again. while downloading the network con-
work configuration information. figuration information.
Attached Attached Information 1: Error Details (0001 hex: Illegal parameter, 0014 hex: Error opening file)
information
Precautions/ None
Remarks
9-2 Troubleshooting
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-23
9 Troubleshooting
Event name EtherCAT Communications Cycle Exceeded Event code 34410000 hex*
Meaning Process data communications could not be performed with the specified communications cycle.
Source EtherCAT Master Function Module Source details Master Detection At start of com-
timing munications
Error attributes Level Minor fault Recovery Automatic Log category System
recovery
Effects User program Continues. Operation Master:
The master waits in the Init state.
Slave:
Parameter setting is not possible. Process data communi-
cations are not possible.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- Flashes at 1-s intervals. ---
System-defined Variable Data type Name
variables _EC_CycleExceeded BOOL EtherCAT Communications Cycle
Exceeded
Cause and Assumed cause Correction Prevention
correction
The transmission delay time in the Set the cable length so that it agrees Set the cable length so that it agrees
actually connected configuration is with the actual configuration. with the actual configuration.
longer than the transmission delay
time calculated for the user-set cable
length.
The set task period or communica- Use the Simulator and set a task Use the Simulator and set a task
tions cycle is too short. period (communications cycle) that period (communications cycle) that
enables communications. enables communications.
Attached None
information
Precautions/ None
Remarks
* This event code occurs for unit version 1.10 or later of the CPU Unit.
Event name Controller Insufficient Memory Warning Event code 50010000 hex*
Meaning The amount of data for the EtherCAT slave configuration, network-published information, or other data exceeds the
value that is specified for the CPU Unit. You may not be able to perform online editing or other operations.
Source EtherCAT Master Function Module or Source details Master or CIP Detection At power ON,
EtherNet/IP Function Module timing download, or
online editing
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation Not affected.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- --- ---
System-defined Variable Data type Name
variables None --- ---
Cause and Assumed cause Correction Prevention
correction
The amount of data for the EtherCAT Reduce the number of PDOs that are None
slave configuration, network-pub- used by the EtherCAT slaves.
lished information, or other data Reduce the number of data types that
exceeds the value that is specified for are used for network variables or
the CPU Unit. reduce the length of the text strings
that are used for names.
Attached None
information
Precautions/ You may not be able to perform online editing or other operations.
Remarks
* This event code occurs for unit version 1.02 or later of the CPU Unit.
9-24 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-25
9 Troubleshooting
Attached Error Details: 0000 hex: Too many slaves, 0001 hex: Incorrect connections, such as a ring connection
information
Precautions/ Operation
Remarks Master:
• The following applies if fail-soft operation is set to Fail-soft, the event was detected when the power supply was
turned ON or the Controller was reset, and the error details in the attached information is 0000 hex: The maximum
number of slaves from the beginning will enter the Operational state and continue to operate. The slaves past the
maximum number of slaves will remain in Init state and communications will stop.
• The following applies if fail-soft operation is set to Stop, the event was detected when the power supply was turned
ON or the Controller was reset, and the error details in the attached information is 0000 hex: The maximum number
of slaves from the beginning will enter the Pre-operational state and only message communications will continue.
The slaves past the maximum number of slaves will remain in Init state and communications will stop.
• The following applies if the event was detected when the power supply was turned ON or the Controller was reset,
and the error details in the attached information is 0001 hex: All slaves will remain in the Init state and communica-
tions will stop.
• The following applies if fail-soft operation is set to Fail-soft, the event was detected during communications, and the
error details in the attached information is 0000 hex: The maximum number of slaves from the beginning will enter
the Operational state and continue to operate. The slaves past the maximum number of slaves will remain in Init
state and communications will stop.
• The following applies if fail-soft operation is set to Stop, the event was detected during communications, and the error
details in the attached information is 0000 hex: The maximum number of slaves from the beginning will enter the Pre-
operational state and communications will stop. The slaves past the maximum number of slaves will remain in Init
state and communications will stop.
• The following applies if fail-soft operation is set to Fail-soft, the event was detected during communications, and the
error details in the attached information is 0001 hex: The slaves that are normal continue to operate. If you are using
distributed clocks to synchronize the slaves, a Synchronization Error may occur between the slaves.
Slave:
• No error occurred.
• The following applies if fail-soft operation is set to Fail-soft, the event was detected when the power supply was
turned ON or the Controller was reset, and the error details in the attached information is 0000 hex: The maximum
number of slaves from the beginning will enter the Operational state, it will be possible to set parameters, and pro-
cess data communications will continue. The slaves past the maximum number of slaves will remain in the Init state
and it will not be possible to set parameters or perform process data communications for them.
• The following applies if fail-soft operation is set to Stop, the event was detected when the power supply was turned
ON or the Controller was reset, and the error details in the attached information is 0000 hex: The maximum number
of slaves from the beginning will enter the Pre-operational state, it will be possible to set parameters, but process
data communications will not be possible. The slaves past the maximum number of slaves will remain in the Init state
and it will not be possible to set parameters or perform process data communications for them.
• The following applies if the event was detected when the power supply was turned ON or the Controller was reset,
and the error details in the attached information is 0001 hex: All slaves will remain in the Init state and it will not be
possible to set parameters or perform process data communications.
• The following applies if fail-soft operation is set to Fail-soft, the event was detected during communications, and the
error details in the attached information is 0000 hex: The slaves before the node where the error occurred will enter
the Operational state, it will be possible to set parameters, and process data communications will continue. For the
slave where the error occurred and all slaves after it, it will not be possible to set parameters or perform process data
communications.
• The following applies if fail-soft operation is set to Stop, the event was detected during communications, and the error
details in the attached information is 0000 hex: It will be possible to set parameters but it will not be possible to per-
form process data communications for all slaves in the Pre-operational state. It will not be possible to set parameters
or perform process data communications for all slaves in the Init state.
• The following applies if fail-soft operation is set to Fail-soft, the event was detected during communications, and the
error details in the attached information is 0001 hex: Process data communications will be possible for all slaves that
are operating normally. If you are using distributed clocks to synchronize the slaves and a Synchronization Error is
detected, only input refreshing is enabled. It will be possible to set parameters.
There are restrictions on the number of slave node addresses, and not on the number of slaves per se. This is because
there are slaves, such as Junction Slaves, that use more than one node. Also, if the maximum number of slaves are
connected and an attempt is made to make a ring connection, a Too Many Slaves error (0000 hex) occurs.
9-26 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Event name Network Configuration Verification Error Event code 84220000 hex
Meaning A slave that is in the network configuration information is not connected. Or, a slave that is not in the network configu-
ration information is connected.
Source EtherCAT Master Function Module Source details Master/Slave Detection At power ON, at
timing Controller reset,
or during commu-
nications
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation When Fail-soft Operation Is Set to Fail-soft
Master:
Slaves that are consistent with the network configuration
information enter the Operational state. Slaves that are
not consistent with the network configuration information
and all subsequent slaves remain in Init state.
Slave:
Depends on the slave communications status.
9-2 Troubleshooting
When Inconsistencies Are Found in Array[1..n] of BOOL* Communications Error Slave Table
Verification
_EC_CommErrTbl
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-27
9 Troubleshooting
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-28 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
cations stop.
Slave:
This depends on the slave communications status.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- Flashes at 1-s intervals. ---
System-defined Variable Data type Name
variables _EC_SlavInitErr BOOL Slave Initialization Error
_EC_CommErrTbl Array[1..n] of BOOL* Communications Error Slave Table 9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-29
9 Troubleshooting
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-30 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
occurred. Use the procedure given in
the slave documentation.
Attached Attached Information 1: AL status code for the slave where the error was detected.
information
Precautions/ None
Remarks
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-31
9 Troubleshooting
Event name Process Data Transmission Error Event code 84290000 hex
Meaning Sending process data failed.
Source EtherCAT Master Function Module Source details Master Detection During communi-
timing cations
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation When Fail-soft Operation Is Set to Fail-soft
Master:
Operation continues.
Slave:
The error occurs only with synced slaves.
9-32 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Event name Process Data Reception Timeout Event code 842B0000 hex
Meaning Process data reception timed out.
Source EtherCAT Master Function Module Source details Master Detection During communi-
timing cations
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation When Fail-soft Operation Is Set to Fail-soft
Master:
Operation continues.
Slave:
Errors only occur in synced slaves. Operational state con-
tinues. Safe-operational state is entered if the state transi-
tion is made at the slave.
9-2 Troubleshooting
A general-purpose Ethernet hub is the Sysmac Studio and check the When branching an EtherCAT net-
connected. EtherCAT communications status. If work, use an EtherCAT Junction
the Ethernet cable between the mas- Slave.
The master failed. ter and slave is broken or if the speci- None
fied cable was not used, replace the
The slave failed. cable. Or, reconnect the connector None
and make sure it is mated correctly. If
a general-purpose Ethernet hub is
connected, replace it with an Ether-
CAT Junction Slave. If the CPU Unit
or an EtherCAT slave fails, replace it. 9
The Ethernet cable is too long. The causes given on the left are pos- Make the Ethernet cable as short as
sible if the error occurs from when the possible.
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-33
9 Troubleshooting
Event name Process Data Communications Error Event code 842C0000 hex
Meaning An error occurred in process data communications.
Source EtherCAT Master Function Module Source details Slave Detection During communi-
timing cations
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation When Fail-soft Operation Is Set to Fail-soft
Master:
Operation continues.
Slave:
An error occurred. Operational state continues. If a PDI
watchdog error occurs in a slave, the slave enters the Init
state. Check for communications errors for each slave in
system-defined variables _EC_CommErrTbl [].
* n is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-34 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Event name Input Process Data Invalid Error Event code 842F0000 hex *1
Meaning Because the EtherCAT master could not perform process data communications normally when it was in the Opera-
tional state, the Input Data Invalid state continued for the following period.
• When the task period is 10 ms or shorter: 100 ms
• When the task period is longer than 10 ms: 10 periods of the task
Source EtherCAT Master Function Module Source details Master Detection During communi-
timing cations
Error attributes Level Minor fault Recovery Error reset Log category System
Effects User program Continues. Operation Not affected.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- Flashes at 1-s intervals. ---
System- Variable Data type Name
defined variables _EC_IndataInvalidErr BOOL Input Process Data Invalid Error
_EC_InDataInvalid BOOL Input Data Invalid
_EC_InData1Invalid BOOL Input Data1 Invalid
_EC_InData2Invalid BOOL Input Data2 Invalid
Cause and Assumed cause Correction Prevention
correction Hardware failure of EtherCAT slave While disconnecting the slaves from None
the network one by one, correct the
error until the _EC_InDataInvalid
(Input Data Invalid), _EC_InData1In-
valid (Input Data1 Invalid), and
_EC_InData2Invalid (Input Data2
Invalid) system-defined variables
change to FALSE. When any of these
variables changes from TRUE to
FALSE, the slave disconnected at
that time is considered as failed.
Replace the slave.
In addition, program the _EC_InData-
Invalid (Input Data Invalid), _EC_In-
Data1Invalid (Input Data1 Invalid),
and _EC_InData2Invalid (Input Data2
9-2 Troubleshooting
Invalid) system-defined variables as
an interlock condition in the user pro-
gram to ensure that invalid input data
does not cause unexpected opera-
tion.
Noise Check the number of error frames in If error frames are still counted in the
the slave diagnostic and statistical master diagnostic and statistical infor-
information. It is considered that the mation, before you start operation,
slave was affected by noise in each remove the noise source or imple-
location where an error frame was ment noise countermeasures while
counted. Implement appropriate noise checking the slave diagnostic and
9
countermeasures for all locations statistical information.
considered to be affected by noise.
9-2-2 Error Descriptions
*1 This event code occurs for unit version 1.13 or later of the CPU Unit.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-35
9 Troubleshooting
Event name EtherCAT Slave Backup Failed Event code 102F 0000 hex*1
Meaning The backup operation for an EtherCAT slave ended in an error.
Source EtherCAT Master Function Module Source details Master Detection During backup
timing operation
Error attributes Level Observation Recovery --- Log category System
Effects User program Continues. Operation Not affected.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- --- ---
System-defined Variable Data type Name
variables _EC_DisconnSlavTbl Disconnected Slave Table
Array[1..n] of BOOL*2
Cause and Assumed cause Correction Prevention
correction
There is no connection between the Wire the EtherCAT master and slave Wire the EtherCAT master and slave
EtherCAT master and the slave (Link securely. securely and make sure that a con-
OFF). nection is established before you
attempt to back up the data.
An error caused an incorrect Ether- Use the Sysmac Studio or the Trou- Back up the data when there are no
CAT master status. bleshooter of an HMI to check for EtherCAT errors.
errors and eliminate any EtherCAT
errors.
The EtherCAT network configuration Make sure that network configuration Back up the data only when the net-
information does not agree with the information agrees with the physical work configuration information agrees
physical network configuration. network configuration. with the physical network configura-
tion.
The request to the EtherCAT slave Connect the cable securely. Imple- Connect the cable securely. Imple-
failed. ment noise countermeasures if there ment noise countermeasures if there
is excessive ambient noise. If the situ- is excessive ambient noise.
ation does not improve, replace the
EtherCAT slave.
The EtherCAT master was temporar- Try backing up the data again. None
ily unable to perform the processing
because it was executing other pro-
cessing.
Initialization of the EtherCAT slave Connect any slaves that are discon- Back up the data when the EtherCAT
failed. nected. Use the Sysmac Studio or the slave is participating in the network
Troubleshooter of an HMI to check for and there are no slaves that are dis-
the following errors: Slave Initializa- connected from the network. Also,
tion Error, Slave Application Error, back up the data when there is no
and Process Data Communications Process Data Communications Error.
Error. Eliminate any errors that you
find.
It was not possible to read the backup The ESI file may be incorrect. Ask the None
parameters from the EtherCAT slave. manufacturer of the slave if you can
read all of the parameters that are set
as backup parameters. If all of the
backup parameters can be read, the
EtherCAT slave is faulty. Replace the
EtherCAT slave.
9-36 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Cause and Communications with an OMRON Connect the cable securely. Connect the cable securely.
correction Communications Coupler Unit or NX Mount the NX Unit securely. Mount the NX Unit securely.
Unit failed.
Implement noise countermeasures if Implement noise countermeasures if
there is excessive ambient noise. there is excessive ambient noise.
If the problem still exists, replace the
Communications Coupler Unit or the
NX Unit.
Attached Attached Information 1: Error Details (The following values are in the order of the causes of the error.)
information 0001 hex: Link OFF
0002 hex: Incorrect master status
0003 hex: Configuration information does not agree with network configuration.
0004 hex: The request to the EtherCAT slave failed.
0005 hex: Master status temporarily prevented processing.
0006 hex: An error occurred in slave initialization or a slave is disconnected from the network.
0007 hex: Reading the backup data failed.
000B hex: Error at OMRON Communications Coupler Unit
Attached Information 2: Error Location
0: Master
1 or higher: Slave node address
Attached Information 3: Error Location Details (only when attached information 1 is 000B hex).
0: Communications Coupler Unit
1 to 63: Unit number of NX Unit
Attached Information 4: Cause of Error at OMRON Communications Coupler Unit (only when attached information 1 is
000B hex).
2: Communications with the Communications Coupler Unit or NX Unit failed.
Precautions/ None
Remarks
*1 This event code occurs for unit version 1.03 or later of the CPU Unit.
*2 “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-2 Troubleshooting
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-37
9 Troubleshooting
Event name EtherCAT Slave Restore Operation Failed Event code 10300000 hex*
Meaning The restore operation for an EtherCAT slave ended in an error.
Source EtherCAT Master Function Module Source details Master Detection During restore
timing operation
Error attributes Level Observation Recovery --- Log category System
Effects User program Continues. Operation Not affected.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- --- ---
System-defined Variable Data type Name
variables
None --- ---
Cause and Assumed cause Correction Prevention
correction
There is no connection between the Wire the EtherCAT master and slave Wire the EtherCAT master and slave
EtherCAT master and the slave (Link securely. securely, and make sure that a con-
OFF). nection is established before you
attempt to restore the data.
An error caused an incorrect Ether- Use the Sysmac Studio or the Trou- Restore the data when there are no
CAT master status. bleshooter of an HMI to check for EtherCAT errors.
errors and eliminate any EtherCAT
errors.
The EtherCAT network configuration Make sure that network configuration Restore the data only when the net-
information does not agree with the information agrees with the physical work configuration information agrees
physical network configuration. network configuration. with the physical network configura-
Always use a slave revision that is the tion.
same or higher than the slave revi-
sion that was used when the data was
backed up even if you set No check
for the Revision Check Method for
backup. Set No check for the Serial
Number Check Method and then back
up the data. If you replace a slave
with the Serial Number Check Method
set to Setting = Actual device, do not
use the restore function. Instead,
change the network configuration
from the Sysmac Studio, download
the network configuration, and then
transfer the slave parameters. If the
node address is set on the hardware
switches, use the same setting as
when the data was backed up.
The request to the EtherCAT slave Connect the cable securely. Imple- Connect the cable securely. Imple-
failed. ment noise countermeasures if there ment noise countermeasures if there
is excessive ambient noise. If the situ- is excessive ambient noise.
ation does not improve, replace the
EtherCAT slave.
The EtherCAT master was temporar- Try restoring the data again. None
ily unable to perform the processing
because it was executing other pro-
cessing.
Initialization of the EtherCAT slave Use the Sysmac Studio or the Trou- Restore the data when there is no
failed. bleshooter of an HMI to check for the Process Data Communications Error.
following errors: Slave Initialization
Error, Slave Application Error, and
Process Data Communications Error.
Eliminate any errors that you find.
It was not possible to write the backup Download the parameters to the Data is sometimes not restored due to
parameters to the MX2/RX Series Inverter using the “To Drive” menu of Inverter restrictions. If that occurs,
Inverter. (This applies only for unit the Sysmac Studio. download the parameters to the
version 1.10 or earlier of the CPU Inverter using the “To Drive” menu of
Unit.) the Sysmac Studio.
9-38 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Cause and It was not possible to write the backup The ESI file may be incorrect. Ask the None
correction parameters to the EtherCAT slave. manufacturer of the slave if you can
write all of the parameters that are set
as backup parameters. If all of the
backup parameters can be written,
the slave is faulty. Replace the slave.
Incorrect backup data was detected. Format the SD Memory Card with the Do not remove the SD Memory Card
Sysmac Studio and then place the or turn OFF the power supply while
backup file on it. the SD BUSY indicator is lit. Or,
replace the SD Memory Card periodi-
cally according to the write life of the
SD Memory Card.
The EtherCAT network configuration Make sure that the EtherCAT network Make sure that the EtherCAT network
in the backup data does not agree configuration in the backup data configuration in the backup data
with the physical network configura- agrees with the physical network con- agrees with the physical network con-
tion. figuration. figuration before you try to restore the
data.
An error occurred at an OMRON • Try backing up the data again • Format an SD Memory Card with
Communications Coupler Unit. (when attached information 4 is 1). the Sysmac Studio and then place
The following causes are possible. • Connect the cable securely. the backup file on it.
• Reading a backup file failed at the • Mount the NX Unit securely. • Also, do not remove the SD Mem-
Communications Coupler Unit • Implement noise countermeasures ory Card or turn OFF the power
(when attached information 4 is 1). if there is excessive ambient noise. supply while the SD BUSY indicator
is lit (when attached information 4 is
• Communications with the Commu- • If the problem still exists, replace
1).
nications Coupler Unit or NX Unit the Communications Coupler Unit
failed (when attached information 4 or the NX Unit (when attached infor- • Connect the cable securely.
is 2). mation 4 is 2). • Mount the NX Unit securely.
• The Unit Configuration of the NX • Make the Unit Configuration of the • Implement noise countermeasures
Units in the Communications Cou- NX Units in the Communications if there is excessive ambient noise
pler Unit when data was backed up Coupler Unit when data was (when attached information 4 is 2).
did not agree with the actual config- backed up agree with the actual • Restore the data while the Unit
uration of NX Units (when attached configuration of NX Units (when Configuration of the NX Units in the
information 4 is 3). attached information 4 is 2 or 3). Communications Coupler Unit
• Correct the hardware switches on agrees with the actual configuration
of NX Units (when attached infor-
9-2 Troubleshooting
the Communications Coupler Unit
so that they are the same as when mation 4 is 2 or 3).
the data was backed up (when • Restore the data while the hard-
attached information 4 is 3). ware switches on the Communica-
tions Coupler Unit are the same as
when the data was backed up
(when attached information 4 is 3).
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-39
9 Troubleshooting
Attached Attached Information 1: Error Details (The following values are in the order of the causes of the error.)
information 0001 hex: Link OFF
0002 hex: Incorrect master status
0003 hex: Configuration information does not agree with network configuration.
0004 hex: The request to the EtherCAT slave failed.
0005 hex: Master status temporarily prevented processing.
0006 hex: An error occurred in slave initialization.
0007 hex: Writing the backup data failed.
0008 hex: The backup data is not correct.
0009 hex: The network configuration does not agree with the network configuration in the backup data.
000A hex: The service is not supported
000B hex: Error at OMRON Communications Coupler Unit
Attached Information 2: Error Location
0: Master
1 or higher: Slave node address
Attached Information 3: Error Location Details (only when attached information 1 is 000B hex).
0: Communications Coupler Unit
1 to 63: Unit number of NX Unit
Attached Information 4: Cause of Error at OMRON Communications Coupler Unit (only when attached information 1 is
000B hex).
1: Reading the backup file failed.
2: Communications with the Communications Coupler Unit or NX Unit failed.
3: The Unit Configuration does not agree with the Unit Configuration in the backup data.
Precautions/ None
Remarks
* This event code occurs for unit version 1.03 or later of the CPU Unit.
9-40 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
Remarks
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-41
9 Troubleshooting
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-42 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
Remarks
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-43
9 Troubleshooting
* “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-44 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
*1 This event code occurs for unit version 1.04 or later of the CPU Unit.
*2 “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
9-2 Troubleshooting
Event name Slave Enabled Event code 94450000 hex*1
Meaning The EtherCAT Slave was enabled.
Source EtherCAT Master Function Module Source details Slave Detection At execution of
timing setting instruction
Error attributes Level Information Recovery --- Log category System
Effects User program Continues. Operation Master:
The slave enters the Operational state again, and process
data communications restart.
Slave: 9
Enters the Operational state.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
9-2-2 Error Descriptions
*1 This event code occurs for unit version 1.04 or later of the CPU Unit.
*2 “n” is 512 for an NX-series CPU Unit and 192 for an NJ-series CPU Unit.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-45
9 Troubleshooting
Event name EtherCAT Diagnosis/Statistics Log Started Event code 94500000 hex *1
Meaning EtherCAT diagnosis/statistics log is started.
Source EtherCAT Master Function Module Source details Master Detection When EtherCAT
timing diagnosis/statis-
tics log is started
Error attributes Level Information Recovery --- Log category Access
Effects User program Continues. Operation The response time to non-synchronous EtherCAT slaves
will be extended.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- --- ---
System-defined Variable Data type Name
variables
_EC_StatisticsLogEnable BOOL Diagnosis/Statistics Log Enable
_EC_StatisticsLogBusy BOOL Diagnosis/Statistics Log Busy
Cause and Assumed cause Correction Prevention
correction The value of the --- ---
_EC_StatisticsLogEnable system-
defined variable changed from
FALSE to TRUE.
Attached Attached information 1: Automatic saving interval to the SD Memory Card for the diagnosis/statistics log
information 0: One-shot Mode
Not 0: Interval (sec)
Precautions/ None
Remarks
*1 This event code occurs for unit version 1.11 or later of the CPU Unit.
9-46 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Event name EtherCAT Diagnosis/Statistics Log Ended Event code 94510000 hex *1
Meaning EtherCAT diagnosis/statistics log is ended.
Source EtherCAT Master Function Module Source details Master Detection When EtherCAT
timing diagnosis/statis-
tics log is ended
Error attributes Level Information Recovery --- Log category Access
Effects User program Continues. Operation Not affected.
Indicators EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT
--- --- ---
System-defined Variable Data type Name
variables
_EC_StatisticsLogEnable BOOL Diagnosis/Statistics Log Enable
_EC_StatisticsLogBusy BOOL Diagnosis/Statistics Log Busy
_EC_StatisticsLogErr BOOL Diagnosis/Statistics Log Error
Cause and Assumed cause Correction Prevention
correction An error that causes EtherCAT diag- --- ---
nosis/statistics log to end occurred.
Attached Attached information 1: Automatic saving interval to the SD Memory Card for the diagnosis/statistics log
information 0: One-shot Mode
Not 0: Interval (sec)
Attached information 2: Causes to end EtherCAT diagnosis/statistics log
1: The value of the _EC_StatisticsLogEnable changed from TRUE to FALSE.
2: The 1000th record was saved in the log file.
3: The SD Memory Card does not have sufficient available space to save another records in the log file.
4: The SD Memory Card is write protected.
5: The SD Memory Card cannot be recognized.
6: Synchronizing (or downloading)
7: An invalid value was specified to the automatic saving interval to the SD Memory Card for the diagnosis/statis-
tics log.
9-2 Troubleshooting
Precautions/ None
Remarks
*1 This event code occurs for unit version 1.11 or later of the CPU Unit.
9
9-2-2 Error Descriptions
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-47
9 Troubleshooting
START
Yes
END
* Check the _EC_EntrySlavTbl[] (Network Connected Slave Table) system-defined variable to see if a slave is par-
ticipating.
Also, set the wait time in the EtherCAT master settings (EtherCAT master parameter settings) long
enough to allow for the power supply startup time of all of the slaves. If you reset the error in the Ether-
CAT Master Function Module without using the above procedure, the EtherCAT master may access a
slave with a different node address than the specified node address, or other unexpected operations
may occur. Also, the error may not be reset correctly.
9-48 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
9-2 Troubleshooting
9
9-2-3 Resetting Errors
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-49
9 Troubleshooting
An outline procedure from EtherCAT network diagnosis through correction is given below.
1 Acquire the diagnostic and statistical information for the master and slaves.
2 Check for errors in the trends shown in the master diagnostic and statistical information.
3 Find the locations of the errors with trends in the slave diagnostic and statistical information.
Refer-
Acquisition method Description
ence
Using the diagnostic and sta- Use the Sysmac Studio to acquire the diagnostic and statistical page 9-
tistical information display of information. You can save the acquired diagnostic and statistical 57
Sysmac Studio information as a CSV file on the computer.
Using the diagnosis/statistics The CPU Unit acquires the diagnostic and statistical information page 9-
log of CPU Unit periodically. The acquired diagnostic and statistical information is 62
saved in an SD Memory Card that is mounted on the CPU Unit.
9-50 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Increased.
Increased.
9-2 Troubleshooting
If the value of the frame reception timeout count or number of CRC error frames received increases,
then the EtherCAT network is not operating normally.
If a certain number of the frame reception timeout count or a certain number of CRC error frames
received is detected, the EtherCAT network may not be operating normally.
If there is an error or possibility of an error in the EtherCAT network, find the error location by per-
forming Step 3: Finding Locations of Errors with Trends in Slave Diagnostic and Statistical Informa-
tion on page 9-52.
9
9-2-4 Diagnostic and Statistical Information
Additional Information
A certain number of the frame reception timeout count or a certain number of CRC error frames
received is also detected if a power OFF or disconnection occurs in an EtherCAT slave.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-51
9 Troubleshooting
The following are the points to check to find error locations based on the number of error frames.
• A certain number of error frames is detected.
• The number of error frames is increased compared to the value acquired last time.
• Failed is displayed for the number of error frames.
If a certain number of error frames is detected for more than one port, start finding error locations
from the port with the highest number of error frames.
The error locations that you find will change depending on the configuration of EtherCAT slave con-
nection. Refer to the network configuration diagram to find error locations.
This section explains how to find error locations with two examples of EtherCAT network configura-
tions in which the EtherCAT slave connection configurations are different.
9-52 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Network configuration
NJ/NX-series CPU Unit
9-2 Troubleshooting
The number of error frames for the input port (PortA) for node address 4 is 31, so you can see
that error frames were received on the input port for node address 4.
9
Therefore, you can assume that there is a problem between the output port (PortB) for node
address 3 and the input port for node address 4.
9-2-4 Diagnostic and Statistical Information
This corresponds to location (A), (B) or (C) in the network configuration diagram.
Concretely, you can assume the following possible error locations.
• The device at node address 3
• The cable between the output port at node address 3 and the input port at node address 4 or
the connectors at those ports
• The device at node address 4
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-53
9 Troubleshooting
Network configuration
NJ/NX-series CPU Unit
EtherCAT master
IN OUT
Junction slave
IN OUT
node address 64
Slave
node address 3
(A)
IN OUT IN OUT
Slave Slave
node address 4 node address 5
(B)
(C)
The number of error frames for the input port (PortA) for node address 4 is 123, so you can see
that error frames were received on the input port for node address 4.
Therefore, you can assume that there is a problem between the output port (X3) for node
address 64 and the input port for node address 4.
This corresponds to location (A), (B) or (C) in the network configuration diagram.
Concretely, you can assume the following possible error locations.
• The device at node address 64
• The cable between the output port at node address 64 and the input port at node address 4 or
the connectors at those ports
• The device at node address 4
9-54 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
This is the procedure to find error locations when Failed is displayed for the number of error
frames.
In the EtherCAT network configuration, Failed is sometimes displayed for more than one Ether-
CAT slave.
In the network configuration for example 2, assume that Failed is displayed for the number of
error frames for node addresses 4 and 5.
If Failed is displayed for the number of error frames, the EtherCAT slave currently cannot com-
municate. If an EtherCAT slave cannot communicate, all of the EtherCAT slaves connected after
it may not be able to communicate. In the network configuration diagram of example 2, node
address 5 is connected after node address 4.
Therefore, you can assume that there is an error in node address 4 that prevents communica-
tions.
Concretely, you can assume the following possible error locations.
9-2 Troubleshooting
• The device at node address 64
• The cable between the output port at node address 64 and the input port at node address 4 or
the connectors at those ports
• The device at node address 4
9
9-2-4 Diagnostic and Statistical Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-55
9 Troubleshooting
The following is a description of the case which does not correspond to any of above conditions.
If a certain number of the frame reception timeout count and CRC error frames received for the mas-
ter diagnostic and statistical information, as well as a certain number of error frames for the slave
diagnostic and statistical information are detected but are not increasing, these numbers were
detected temporarily due to any of the following error causes.
• A connector on the Ethernet cable is disconnected, the contact is faulty, or parts are faulty.
• There is noise.
• The Ethernet cable is broken or the specified cable was not used.
Implement corrections for the error locations that you found. Refer to the table above for what to do
for corrections.
9-56 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Activation
Activate the diagnostic and statistical information display of Sysmac Studio as follows.
2 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
9-2 Troubleshooting
9
3 Right-click the EtherCAT master on the EtherCAT Tab Page and select Display
Diagnosis/Statistics Information from the menu.
9-2-4 Diagnostic and Statistical Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-57
9 Troubleshooting
The diagnostic and statistical information for the master and slaves are displayed.
Button Function
Get Acquires the diagnostic and statistical information from the EtherCAT master
and EtherCAT slaves*1 and updates the display.
You can retain a maximum of 100 diagnostic and statistical data that you
acquired.
When the Display Diagnosis/Statistics Information Tab Page is closed, the
diagnostic and statistical information that you acquired are discarded.
Clear Master Diagnosis/Sta- Clears all values of the master diagnostic and statistical information to zeros.
tistics Information
Clear Slave Diagnosis/Statis- Clears all values of the slave diagnostic and statistical information to zeros.
tics Information
Output File Outputs the diagnostic and statistical information to a CSV file in a specified
folder. The following data are output.
• Master diagnostic and statistical information
• Slave diagnostic and statistical information *2
*1 Only for the EtherCAT slaves that are registered in the network configuration information of the project.
*2 If the number of error frames exceeds 255, 255 is output.
Version Information
A CPU Unit with unit version 1.11 or later and Sysmac Studio version 1.15 or higher are required
to use the Clear Slave Diagnosis/Statistics Information Button.
9-58 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
The last two master diagnostic and statistical data acquired from the EtherCAT master are dis-
played. If the master diagnostic and statistical data is not acquired, “---” is displayed.
9-2 Troubleshooting
• The network propagation delay time is not cleared to zero when the master diagnostic and sta-
tistical information is cleared.
• Values of the network propagation delay time and transmission cycle are valid only if an Ether-
CAT slave that supports a distributed clock is assigned to the primary periodic task. If an Eth-
erCAT slave that supports a distributed clock is not assigned to the primary periodic task,
“---” is displayed.
• The items for PDO communications cycle 2 are valid only if an EtherCAT slave that supports a
distributed clock is assigned to the priority-5 periodic task. If the CPU Unit does not have a pri-
ority-5 periodic task or if an EtherCAT slave that supports a distributed clock is not assigned to
the priority-5 periodic task, “---” is displayed. 9
9-2-4 Diagnostic and Statistical Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-59
9 Troubleshooting
The values of the following items may increase if there is an EtherCAT network error.
The following table gives the description of each item, assumed cause of increase, and correction.
Assumed cause of
Item Displayed information Possible correction
increase
Frame reception time- The number of frame A cause to a Process Data Refer to EtherCAT Net-
out count reception timeouts that reception Timeout work Diagnostic Proce-
occurred. occurred, which increases dure on page 9-50.
the Frame reception time-
out count.
The Frame reception time-
out count will increase
also when the count in the
CRC Error Frames
Received, Short frames
received, or Overlength
frames received
increases.
Reception buffer over- The number of frames dis- There are too many See if there are computers
flow count carded due to buffer over- frames on the EtherCAT or other non-EtherCAT
flows when receiving data. network that are not Eth- devices connected to the
erCAT frames. EtherCAT network and
remove them if there are
any.
Non-EtherCAT frames The number of frames There are frames on the See if there are computers
received received other than Ether- EtherCAT network that are or other non-EtherCAT
CAT frames. not EtherCAT frames. devices connected to the
EtherCAT network and
remove them if there are
any.
Link OFF count The number of times link A cause to a Link OFF Refer to 9-2 Troubleshoot-
OFF was detected. Error occurred. ing and remove the cause
of the error.
Discarded process The number of process Operations for which Refer to Prohibition to
data receptions data packets discarded multi-execution is prohib- Physically Disconnecting
when receiving process ited in Prohibition to Phys- a Slave and Resetting an
data. ically Disconnecting a Error or Connecting a
Slave and Resetting an Slave at the Same Time
Error or Connecting a on page 9-67.
Slave at the Same Time
on page 9-67 were exe-
cuted.
The value sometimes
increases when the net-
work is started or commu-
nicating EtherCAT slaves
are replaced.
Discarded message The number of messages A cause to an EtherCAT Refer to 9-2 Troubleshoot-
receptions discarded in mailbox Message Error occurred. ing and remove the cause
reception. of the error.
CRC Error Frames The number of frames The frames on the Ether- Refer to EtherCAT Net-
Received received that resulted in CAT network are cor- work Diagnostic Proce-
CRC errors. rupted. dure on page 9-50.
Frame reception errors The number of frames The frames on the Ether- Implement noise counter-
resulting in reception CAT network are cor- measures.
errors from the Ethernet rupted due to noise.
controller (EtherMAC).
9-60 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Assumed cause of
Item Displayed information Possible correction
increase
Collision count The total number of delay A repeater hub is con- You cannot use repeater
collisions on the line after nected. hubs with EtherCAT com-
start of transmissions. munications. See if there
are repeater hubs con-
nected to the EtherCAT
network and remove them
if there are any.
Short frames received The number of frames The frames on the Ether- Refer to EtherCAT Net-
received with less than 64 CAT network are cor- work Diagnostic Proce-
bytes. rupted due to noise. dure on page 9-50.
Computers or other non-
EtherCAT devices are
connected.
Overlength frames The number of frames The frames on the Ether- Refer to EtherCAT Net-
received received with more than CAT network are cor- work Diagnostic Proce-
1,522 bytes. rupted due to noise. dure on page 9-50.
Computers or other non-
EtherCAT devices are
connected.
9-2 Troubleshooting
Slave Diagnostic and Statistical Information
The following are the items displayed for the slave diagnostic and statistical information.
9
9-2-4 Diagnostic and Statistical Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-61
9 Troubleshooting
Version Information
• A CPU Unit with unit version 1.11 or later is required to use this function.
9-62 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Overview
This function acquires the diagnostic and statistical information that the EtherCAT master and slaves
have. The information is acquired at the specified cycle and saved as a log file in an SD Memory
Card that is mounted on the CPU Unit.
Use system-defined variables to set the execution command for this function and the cycle at which
the diagnostic and statistical information is saved.
9-2 Troubleshooting
Statistical Information on page 9-61 for details.
*1 Only for the EtherCAT slaves that are registered in the EtherCAT master network configuration information of
the project.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-63
9 Troubleshooting
The file name, file type and save location of the log file saved in the SD Memory Card are given
below.
Item Specifications
File name ECAT_STATISTICS.csv
File format CSV
Save location Root folder
Additional Information
The following available space is required in an SD Memory Card to save the diagnostic and sta-
tistical information.
Size of a data = 273 bytes + 51 bytes × Number of EtherCAT slaves
If the number of EtherCAT slaves is 512 and you want to save 1,000 diagnostic and statistical
data, an available space of approximately 26 MB is required.
Additional Information
The items of information such as the master diagnostic and statistical information output to a
CSV file by this function are arranged in the same order as the diagnostic and statistical informa-
tion display of Sysmac Studio. You can make the same file format by exchanging the places of
the row and column of each item.
Procedures
The procedure to use the diagnosis/statistics log is as follows.
9-64 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
During execution of the diagnosis/statistics log, the diagnostic and statistical information is
acquired and saved in a log file at the cycle specified in step 1.
If one of the following (a) to (f) is detected during the diagnosis/statistics log, the diagnosis/sta-
tistics log is automatically terminated.
(a) The maximum number of diagnostic and statistical data are saved in a log file.
(b) The SD Memory Card does not have sufficient available space.
(c) The SD Memory Card is write protected.
(d) There is no SD Memory Card.
(e) A synchronization (or downloading) is executed on the Sysmac Studio.
(f) The value set for _EC_StatisticsLogCycleSec is out of range.
• An EtherCAT Diagnosis/Statistics Log Started error is recorded in the event log.
• _EC_StatisticsLogBusy changes to FALSE.
• If (b), (c), (d) or (f) occurs, _EC_StatisticsLogErr changes to TRUE.
• An EtherCAT Diagnosis/Statistics Log Ended error is recorded in the event log.
9-2 Troubleshooting
• An EtherCAT Diagnosis/Statistics Log Ended error is recorded in the event log.
Write Cycle = 30
_EC_StatisticsLogCycle 9
TRUE
_EC_StatisticsLogBusy FALSE
9-2-4 Diagnostic and Statistical Information
TRUE
_EC_StatisticsLogErr
FALSE
Log file
Write Cycle Write Cycle Write Cycle
= 30 = 30 = 30
Event logs
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-65
9 Troubleshooting
Additional Information
The following are the examples of methods to retain the log file saved in the SD Memory Card.
• Use the SD Memory Card instruction such as FileRename or FileCopy to change the file
name.
• Use the FTP server function for the built-in EtherNet/IP to take the log file out.
• Eject the SD Memory Card and save the file in another medium.
9-66 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-67
9 Troubleshooting
9-4-1 Introduction
You can temporarily stop and start communications with a specified slave and all subsequent slaves
without stopping the entire communications system. This makes it possible to replace slaves during
communications for maintenance, or for replacement when a slave malfunctions.
EC_Disconnect
Slave
Slave you
Slave Slave need to replace Slave
New slave
9-68 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
If the EtherCAT slave to replace has backup parameters, we recommend that you use the Sysmac Stu-
dio to replace the slave. (You can specify backing up the parameters in the EtherCAT slave from the
Sysmac Studio.)
The disconnection and reconnection operations are not required for slaves that are disabled with
the EtherCAT Slave Enable/Disable Settings. You therefore cannot disconnect and reconnect
them from the Sysmac Studio. If you execute the disconnection and connection instructions, they
will result in errors. 9
9-4-2 Slave Replacement Methods
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-69
9 Troubleshooting
To replace an EtherCAT slave, you first back up the backup parameters that are stored in the EtherCAT
slave.
1 Click the Edit Backup Parameter Settings Button in the EtherCAT Slave Setting Tab Page.
The Backup Parameter Settings Tab Page is displayed.
9-70 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Additional Information
• You can back up the EtherCAT slave settings for any EtherCAT slave that is connected to the
network (i.e., whenever the _EC_EntrySlavTbl[] (Network Connected Slave Table) system-
defined variable is TRUE) either before of after the disconnection command is sent to the Eth-
erCAT slave.
• You can also set the EtherCAT drive slaves from the EtherCAT Drive Tab Page. Back up the
settings information from the EtherCAT Drive Tab Page. Refer to the Sysmac Studio Version 1
Operation Manual (Cat. No. W504) for the applicable EtherCAT drive slaves.
• You do not need to back up the settings to replace an EtherCAT slave that does not have
backup parameters.
1 Click the Edit Backup Parameter Settings Button in the EtherCAT Slave Setting Tab Page.
The Backup Parameter Settings Tab Page is displayed.
9
9-4-4 Restoring Settings
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-71
9 Troubleshooting
Additional Information
• You can set the EtherCAT drive slaves from the EtherCAT Drive Tab Page. Restore the set-
tings information from the EtherCAT Drive Tab Page. Refer to the Sysmac Studio Version 1
Operation Manual (Cat. No. W504) for the applicable EtherCAT drive slaves.
• You do not need to restore the settings to replace an EtherCAT slave that does not have
backup parameters.
9-72 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
START
Process data communications
Back up the backup parameters. are performed with the slave
before it is disconnected.
YES
END
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-73
9 Troubleshooting
9-74 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Disconnecting Slaves
If a slave is disconnected, slaves connected after the designated slave (on the output side) in a daisy
chain are disconnected at the same time. Slaves connected before the disconnected slave (on the
input side) and slaves connected beyond Junction Slaves continue to operate. (If (1) is disconnected in
the following figure, (2) and (3) are also disconnected.)
Junction Slave
Disconnected
slaves
(1)
(3)
The status of the system-defined variables for disconnected slaves are listed in the following table. The
status in the following table are reached immediately after disconnection. This status does not change
even if a slave is physically removed from the actual network configuration or physically connected to
the actual network configuration again. The corresponding element in the Network Connected Slave
Table changes to FALSE when the slave is physically removed from the actual network configuration.
nications Enabled Slave Table) istered in the network configuration informa- changes to FALSE after the Ether-
tion and able to perform message CAT slave is disconnected from
communications. the Sysmac Studio or with an
instruction.
_EC_PDSlavTbl[] (Process Data Com- This variable shows the slaves that are reg- The corresponding element
municating Slave Table) istered in the network configuration informa- changes to FALSE after the Ether-
tion and performing process data CAT slave is disconnected from
communications. the Sysmac Studio or with an
instruction.
_EC_DisconnSlavTbl[] (Disconnected This variable shows the slaves that are reg- The corresponding element
Slave Table) istered in the network configuration informa- changes to TRUE after the Ether-
tion and disconnected from the network. CAT Slave is disconnected from
the Sysmac Studio or with an
instruction.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-75
9 Troubleshooting
Reconnecting Slaves
When reconnecting disconnected slaves after replacement or inspection, make sure that the following
conditions are met and then reconnect them. If they are reconnected without meeting following condi-
tions, process data communications with the slaves will not start again, and a network configuration
verification error will occur. If the conditions are met, _EC_EntrySlavTbl will be TRUE.
• Make sure that the slave’s node address is set correctly.
• Make sure that there are no errors in the order that the slaves are connected.
There are no restrictions on the order when reconnecting slaves that are in a daisy chain. For example,
even if slaves (1) to (3) in a configuration such as the one shown in the following figure are discon-
nected, there are no restriction on the reconnection order of slaves (1) to (3). (For example, the slaves
can be reconnected in the order (3), (2), (1) or (1), (3), (2).)
Junction Slave
(1)
Disconnected (2)
slaves
(3)
The status of the system-defined variables for disconnected slaves that have been successfully recon-
nected are listed in the following table.
9-76 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
9 Troubleshooting
Additional Information
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) 9-77
9 Troubleshooting
9-78 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
A
Appendices
The appendices describe the relation of EtherCAT communications to overall CPU Unit
status, packet monitoring functions, and multi-vendor application.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-1
Appendices
A-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-3
Appendices
A-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
A-1-3 Controller Errors Other Than Errors in the Built-in EtherCAT Master
monitor
Device Continu- Does not Continu- Retained --- In Opera- EtherCAT
variables ally shows change. ally shows (Do not tional state, communi-
that are not EtherCAT (Does not EtherCAT depend on the values cations
retained: communi- depend on communi- the operat- from before stop.
Initial val- cations sta- the operat- cations sta- ing mode operation Enters the
ues tus. (Does ing mode tus. (Does of the CPU stopped Safe-Oper-
not depend of the CPU not depend Unit.) are output. ational
on the Unit.) on the When the state.
Axis vari-
A major fault operating operating slaves
ables:
level Control- mode of mode of have
Retained
ler error the CPU the CPU entered
occurs. Unit.) Unit.) Safe-oper-
ational
state, the
outputs
depend on
the slave
settings.
Inputs are
enabled.
A partial fault Shows the Continu- Does not
level Control- I/O data ally shows change.
ler error exchanged the output (Does not
occurs. on the Eth- data sent depend on
erCAT from the the operat-
communi- EtherCAT ing mode
cations. master. of the CPU
A minor fault (Does not Unit.)
level Control- depend on
ler error the operat-
occurs. ing mode
of the CPU
Unit.)
Refer to 9-1 Overview of Errors if a Controller error occurs in the built-in EtherCAT master.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-5
Appendices
A-1-4 Others
A-6 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-7
Appendices
You can use any of the following methods to obtain the packet data saved in the system memory in the
CPU Unit.
• Reading directly from the Sysmac Studio
• Saving to an SD Memory Card inserted in the CPU Unit
You can view the captured packet data with packet analyzer software, such as WireShark. You can also
use the data for analysis applications, such as error analysis and data mining.
Sysmac Studio
Packets
Slave Slave
Additional Information
For the NJ301- and NJ101- CPU Units, unit version 1.10 or later and Sysmac
Studio version 1.12 or higher are required to use the packet monitoring function.
The _EC_PktMonStop system-defined variable, which shows the operating status of packet
monitoring, will always be TRUE in an NJ301- CPU Unit with unit version 1.09 or earlier.
If you execute any EtherCAT instructions for packet monitoring (EC_StartMon, EC_StopMon,
EC_SaveMon, or EC_CopyMon) in the user program, an error is returned that says packet mon-
itoring cannot be used.
A-8 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
2 Double-click EtherCAT under Configurations and Setups in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setups and select Edit.
3 Right-click in the EtherCAT Network Configuration Tab Page and select Display Packet Moni-
tor from the menu.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-9
Appendices
2 Click the Save Packet Data Button to save the packet data.
Additional Information
• Packet data in the CPU Unit’s memory is not retained when the power is interrupted.
• Packet data cannot be saved while packets are being monitored.
• Packet monitoring cannot be started while saving packet data.
• If an SD Memory Card is not inserted and you execute the instruction to copy the data to the
SD Memory Card, then an error is returned. If there is no SD Memory Card, only the one file in
the CPU Unit’s memory can be read to the Sysmac Studio.
• Packet monitoring starts when the power is turned ON.
A-10 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
Item Specification
Maximum data size of one packet data file 12 MB
Maximum number of packets that can be obtained 3,904 packets
Format of packet data file TCPDump format (cap)
Time information Recorded (unit: μs) The elapsed time starting when A
packet monitoring begins is recorded. (Packet moni-
toring can be started when power turns ON, for an
EtherCAT instruction, or for a Sysmac Studio opera-
tion.)
Save location for packet data file CPU Unit’s system: 1 file
SD Memory Card inserted in CPU Unit: Multiple files
(up to capacity of SD Memory Card)
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-11
Appendices
Sample Programming
This sample transfers EtherCAT communications packets to an SD Memory Card when an EtherCAT
slave error occurs. The file name is ‘PacketFile.’ The processing procedure is as follows:
2 The EC_StopMon instruction is used to stop execution of packet monitoring for EtherCAT com-
munications.
3 The EC_SaveMon instruction is used to save EtherCAT communications packet data to a file in
the system of the CPU Unit.
4 The EC_CopyMon instruction is used to copy that file to the SD Memory Card.
5 The EC_StartMon instruction is used to restart execution of packet monitoring for EtherCAT
communications.
A-12 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
EC_StopMon_instance.Error
EC_SaveMon_instance.Error
EC_CopyMon_instance.Error
EC_StartMon_instance.Error
_EC_PktMonStop EC_StopMon_instance.Busy A
<> Up
EN In
_EC_ErrSta In1
WORD#16#00 In2
RS_instance
B _EC_PktSaving Operating
RS
Set Q1
OperatingEnd Reset1
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-13
Appendices
Instruction execution
EC_StopMon_instance EC_SaveMon_instance
Operating _Card1Ready EC_StopMon EC_SaveMon C
Execute Done Execute Done
Busy Busy
Error Error
ErrorID ErrorID
EC_CopyMon_instance EC_StartMon_instance
C EC_CopyMon EC_StartMon
Execute Done Execute Done
‘PacketFile’ FileName Busy Busy
Error Error
ErrorID ErrorID
A-14 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
// Instruction execution
IF (DoEC_PktSave=TRUE) THEN
CASE Stage OF
1: // Stop EtherCAT packet monitor.
EC_StopMon_instance(
Execute :=TRUE);
IF (EC_StopMon_instance.Done=TRUE) THEN
Stage:=INT#2; // Normal end
ELSIF (EC_StopMon_instance.Error=TRUE) THEN
Stage:=INT#10; // Error end
END_IF;
IF (EC_SaveMon_instance.Done=TRUE) THEN
Stage:=INT#3; // Normal end
ELSIF (EC_SaveMon_instance.Error=TRUE) THEN
Stage:=INT#20; // Error end
END_IF;
IF (EC_CopyMon_instance.Done=TRUE) THEN
Stage:=INT#4; // Normal end
ELSIF (EC_CopyMon_instance.Error=TRUE) THEN
Stage:=INT#30; // Error end
END_IF;
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-15
Appendices
IF (EC_StartMon_instance.Done=TRUE) THEN
Stage:=INT#0; // Normal end
ELSIF (EC_StartMon_instance.Error=TRUE) THEN
Stage:=INT#40; // Error end
END_IF;
A-16 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
ESI files
EtherCAT slaves
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-17
Appendices
Additional Information
ESI file versions that are lower than ESI version-1.0.1 specifications are not supported. If you
install an ESI file version that is not supported, a message saying that you cannot use the slave
is displayed by the Sysmac Studio.
The NJ/NX-series CPU Units do not support variables with some of the data types that are
defined in ETG.1020. If variables with any unsupported data types are included in the slave infor-
mation (ESI), you cannot use the slave.
The following tables gives the data types that are supported by different Sysmac Studio versions.
Sysmac Studio Ver.
Data Type
1.09 or higher 1.08 1.07 or lower
BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7, Supported. Supported. Not supported.
and BIT8
BITARR8, BITARR16, and BITARR32 Supported. Supported. Not supported.
ARRAY[0..n] OF BYTE Supported. Not supported.* Not supported.*
ARRAY[0..n] OF UINT Supported. Not supported.* Not supported.*
INT24, INT40, INT48, and INT56 Not supported. Not supported. Not supported.
UINT24, UINT40, UINT48, and UINT56 Not supported. Not supported. Not supported.
STRING(n) Not supported. Not supported. Not supported.
* With Sysmac Studio version 1.06, 1.07, or 1.08, you can read ESI files and assign device variables. How-
ever, you cannot monitor them in the I/O Map.
If variables with any of these data types are included in the slave information (ESI), a message
saying that you cannot use the slave is displayed in the ESI Library Dialog Box of the Sysmac
Studio.
A-18 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
When connecting a slave from another manufacturer to an OMRON master, refer to the manuals for the A
other manufacturer’s slaves, and then ask your OMRON representative if you have any questions.
1 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-19
Appendices
2 Right-click the EtherCAT master that is displayed in the edit pane and select Display ESI
Library.
3 Click the this folder link in the ESI Library Dialog Box.
A-20 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-21
Appendices
1 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or, right-
click EtherCAT under Configurations and Setup and select Edit.
2 Right-click the EtherCAT master that is displayed in the edit pane and select Display ESI
Library.
A-22 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
Model
Revision
Product name
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-23
Appendices
Additional Information
If an ESI file for a slave cannot be used in the Sysmac Studio, an exclamation mark is displayed
to the left of the file name. If an exclamation mark is displayed, obtain an ESI file with the cause
corrected from the slave manufacturer, and then install the ESI file again.
A-24 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
Byte Boundaries
An OMRON master must arrange entry objects by byte boundaries. (This applies only to objects that
are one byte or larger in size.)
If an entry object is bit data, padding must be entered to adjust the boundaries. Padding is meaning-
less data that is added to the end of an entry so that an object ends at a boundary of the specified
size. You can use the following methods to arrange objects within byte boundaries.
• Click the Align Button.
Padding is automatically entered. Refer to the descriptions of the buttons below for details.
• Add padding to the PDO entries manually.
In the following example, 2 bits of padding are entered to adjust the byte boundary when entering
objects with BIT2 and BIT4 data types for PDO entries.
Index Size Data type PDO entry name Comment
0x6000:00 16[bit] UINT uiAAA
0x6001:00 2[bit] BIT2 b2BBB
0x6002:00 4[bit] BIT4 b4CCC
0x0000:00 2[bit] --- ---
0x6010:00 32[bit] UDINT udEEE
Because an object with 2 bits and an object with 4 bits are entered,
2 bits of padding must be added to adjust the byte boundary (8 bits).
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-25
Appendices
The following buttons are used to edit a PDO entry table. The meanings of the buttons are given below.
Align Button
Use this button to automatically order the PDO entries and adjust byte boundaries.
The PDO entries are ordered according to the type, descending PDO entry size, ascending indices,
and then ascending subindices.
For the type, data arranged by byte boundaries (INT, BYTE, STRING, etc.) comes first, followed by
data arranged by bit boundaries (BIT, BIT8, etc.).
Version Information
• Sysmac Studio version 1.08 or higher is required to use the following buttons to edit PDO
entry tables: Edit PDO Entry, Move Up, Move Down, and Align.
• Sysmac Studio version 1.08 or higher is required to add “0x0000:00” to a PDO entry table.
A-26 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-27
Appendices
There are two sets of settings, slave and module, for MDP-compatible slaves.
1 Right-click the slave in the EtherCAT Tab Page and select Edit Module Configuration.
An Edit Pane for the module configuration is displayed.
Because an object with 2 bits and an object with 4 bits are entered,
2 bits of padding must be added to adjust the byte boundary (8 bits).
A-28 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
You can edit the PDO Map Settings and Module config send method. The meanings of these
settings are given below.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-29
Appendices
3 Select the location at which to register a module and double-click the module to register in the
Toolbox. Or, drag the module from the Toolbox to the location to register it on the Edit Pane for
the module configuration.
The module is registered and a list of module settings is displayed.
Some items in the module settings only display the current setting. The other items in the mod-
ule settings are changeable. The set values and their meanings are given below for the settings
that are only displayed.
You can edit the Device name and the PDO Map Settings. The meanings of these settings are
given below.
Device Name
• The name of the module is displayed.
• The default is M#. “#” is a serial number that starts from 1.
A-30 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
A-4 Glossary
A-4 Glossary
Use the following list of EtherCAT terms for reference.
Abbrevia-
Term Description
tion
A
AL status (application layer status) − Status for indicating information on errors that occur in an application
on a slave.
CAN application protocol over Ether- CoE A CAN application protocol service implemented on EtherCAT.
CAT
CAN in Automation CiA CiA is the international users' and manufacturers' group that devel-
ops and supports higher-layer protocols.
device profile − Collection of device dependent information and functionality provid-
ing consistency between similar devices of the same device type.
device variables − Variables in the NJ/NX-series CPU Unit to which process data on
EtherCAT slaves are allocated. Slave process data is accessed by
directly reading and writing these device variables from user applica-
tions on the NJ/NX-series CPU Unit.
distributed clocks DC Clock distribution mechanism used to synchronize EtherCAT Slave
Units and the EtherCAT Master Units.
EtherCAT Master Function Module − One of the function modules. This module controls the EtherCAT
slaves as the EtherCAT master.
EtherCAT slave controller ESC A controller for EtherCAT slave communication.
EtherCAT slave information ESI An XML file that contains setting information for an EtherCAT Slave
Unit.
EtherCAT state machine ESM An EtherCAT communication state machine.
EtherCAT Technology Group ETG The ETG is a global organization in which OEM, End Users and
Technology Providers join forces to support and promote the further
technology development.
index − Address of an object within an application process.
network configuration information − The EtherCAT network configuration information held by the Ether-
CAT master.
object − Abstract representation of a particular component within a device,
which consists of data, parameters, and methods.
object dictionary OD Data structure addressed by Index and Sub-index that contains
description of data type objects, communication objects and applica-
tion objects.
Operational − A state in EtherCAT communications where SDO communications
and I/O are possible.
packet monitoring − A function that enables the EtherCAT master to capture packets flow-
ing over an EtherCAT line and store them in the master. You can start
and stop capturing packets from the Sysmac Studio or with EtherCAT
communications instructions.
PDO communications − An acronym for process data communications.
Pre-operational − A state in EtherCAT communications where only SDO communica-
tions are possible without being able to perform I/O.
process data − Collection of application objects designated to be downloaded cycli-
cally or acyclically for the purpose of measurement and control.
process data communications − One type of EtherCAT communications that uses process data
objects (PDOs) to exchange information in realtime with a fixed
cycle. This is also called PDO communications.
process data object PDO Structure described by mapping parameters containing one or sev-
eral process data entities.
receive PDO RxPDO A process data object received by an EtherCAT Slave Unit.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-31
Appendices
Abbrevia-
Term Description
tion
Safe operational − A state in EtherCAT communications where only SDO communica-
tions and reading input data from slaves are possible. Outputs from
slaves are not performed.
SDO communications − One type of EtherCAT communications that uses service data
objects (SDOs) for communicating information when required.
service data object SDO CoE asynchronous mailbox communications where all objects in the
object dictionary can be read and written.
Slave Information Interface SII Slave information that is stored in non-volatile memory in the slave.
subindex − Sub-address of an object within the object dictionary.
sync jitter − The offset in the operation timing between slaves.
sync manager SM Collection of control elements to coordinate access to concurrently
used objects.
system-defined variable − A variable in the NJ/NX-series CPU Unit for providing information
such as the EtherCAT communications status and error status. Sta-
tus information about EtherCAT communications is obtained by read-
ing system-defined variables from user applications in the NJ/NX-
series CPU Unit.
transmission jitter − The jitter in the process data transmission period (ns).
transmit PDO TxPDO A process data object sent from an EtherCAT Slave Unit.
WireShark − Freeware for monitoring and capturing packets.
A-32 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Appendices
This appendix describes the changes in and additions to functional specifications that were made for
changes in the unit version of the CPU Units.
Sysmac Studio
Function Addition/change Reference Unit version
version
Backup and restore Addition page 9-70 and 9-71 1.03 1.04
operations
Enabling/disabling Addition page 5-18 and 5-21 1.04 1.05
Packet monitoring*1 Addition page 6-28 and A-8 1.10 1.12
Diagnosis/statistics Addition page 9-62 1.11 −
log
*1 This function was added to the NJ301- and NJ101- CPU Units. The function is supported with
all other CPU Unit models regardless of their versions.
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) A-33
Appendices
A-34 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
I
Index
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) Index-1
Index
Index
A _EC_LinkStatus ....................................................7-6, 7-15
_EC_MacAdrErr ...................................................7-3, 7-10
AL status .....................................................................A-31 _EC_MBXSlavTbl .................................................7-6, 7-14
assumed causes ......................................................... 9-10 _EC_MsgErr .........................................................7-4, 7-12
Axis Variables ................................................................ 3-7 _EC_MstrErr ....................................................7-3, 7-9, 9-6
_EC_NetCfgCmpErr .............................................7-3, 7-11
B _EC_NetCfgErr ....................................................7-3, 7-10
_EC_NetTopologyErr ............................................7-3, 7-11
_EC_PDActive ......................................................7-6, 7-15
Back up function .......................................................... 5-23
_EC_PDCommErr ................................................7-3, 7-11
backing up ........... 2-12, 2-14, 2-16, 5-30, 5-34, 9-13, 9-36,
_EC_PDSendErr ..................................................7-3, 7-11
9-69, 9-70, 9-71, 9-73
_EC_PDSlavTbl ...................................................7-6, 7-14
Backup Parameter Settings ......................................... 5-19
_EC_PDTimeoutErr ..............................................7-3, 7-11
Built-in EtherCAT Error ....................................7-3, 7-9, 9-6
_EC_PktMonStop .................................................7-6, 7-15
_EC_PktSaving ....................................................7-6, 7-15
C
_EC_PortErr ....................................................7-3, 7-9, 9-6
_EC_RegSlavTbl ..................................................7-6, 7-13
CAN application protocol over EtherCAT ............ 3-2, A-31
_EC_SlavAdrDupErr ............................................7-4, 7-11
CAN in Automation ......................................................A-31
_EC_SlavAppErr ..................................................7-4, 7-12
CiA ...............................................................................A-31
_EC_SlavEmergErr ..............................................7-4, 7-12
CoE ..................................................................... 3-2, A-31
_EC_SlavErr ....................................................7-3, 7-9, 9-6
communications cables ..........................................1-7, 4-4
_EC_SlavErrTbl .............................................7-3, 7-10, 9-6
Communications Controller Error .........................7-3, 7-10
_EC_SlavInitErr ....................................................7-4, 7-12
Communications Error Slave Table ......................7-4, 7-13
_EC_StatisticsLogBusy
Communications Port Error .............................7-3, 7-9, 9-6
(Diagnosis/Statistics Log Busy) .........................7-7, 7-17
communications port errors ........................................... 9-7
_EC_StatisticsLogCycleSec
comparing and merging ............................................... 5-24
(Diagnosis/Statistics Log Cycle) ........................7-7, 7-17
connected/disconnected setting .................................. 6-29
_EC_StatisticsLogEnable
control states ................................................................. 3-9
(Diagnosis/Statistics Log Enable) ......................7-7, 7-16
_EC_StatisticsLogErr
D (Diagnosis/Statistics Log Error) .........................7-7, 7-17
Emergency Message Detected ............................7-4, 7-12
DC ....................................................................... 3-4, A-31 Enable Distributed Clock ............................................. 5-18
device profile ...............................................................A-31 Enable/Disable EtherCAT Slave .................................. 6-28
device variables ............................................ 3-6, 5-6, A-31 enable/disable setting .................................................. 6-29
Diagnosis/Statistics Log Busy ..............................7-7, 7-17 Enable/Disable Settings .............................................. 5-18
Diagnosis/Statistics Log Cycle .............................7-7, 7-17 errors
Diagnosis/Statistics Log Enable ...........................7-7, 7-16 checking for errors ................................................... 9-3
Diagnosis/Statistics Log Error ..............................7-7, 7-17 sources .................................................................... 9-7
Disabled Slave Table ............................................7-6, 7-15 status variables ........................................................ 9-6
Disconnected Slave Table ....................................7-6, 7-14 ESC .............................................................................A-31
distributed clocks ................................................. 3-4, A-31 ESI ...............................................................................A-31
ESI files ......................................................1-7, A-17, A-19
E ESM .............................................................................A-31
ETG .............................................................................A-31
EC_ChangeEnableSetting ................................. 6-28, 6-29 EtherCAT communications ............................................ 3-1
_EC_CommErrTbl ................................................7-4, 7-13 EtherCAT features ......................................................... 1-2
_EC_DisableSlavTbl ............................................7-6, 7-15 EtherCAT instructions .........................................6-21, 6-28
_EC_DisconnSlavTbl ...........................................7-6, 7-14 EtherCAT Junction Slave .............................................. 1-6
_EC_EntrySlavTbl ................................................7-6, 7-13 EtherCAT master ........................................................... 1-4
_EC_ErrSta .....................................................7-3, 7-9, 9-6 EtherCAT master errors ................................................ 9-7
_EC_InDataInvalid ...............................................7-7, 7-16 EtherCAT Master Function Module .............................A-31
_EC_IndataInvalidErr .................................................... 7-4 EtherCAT master setting ............................................. 5-11
_EC_LanHwErr ....................................................7-3, 7-10 EtherCAT Message Error .....................................7-4, 7-12
_EC_LinkOffErr ....................................................7-3, 7-10 EtherCAT slave controller ............................................A-31
Index-2 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Index
EtherCAT Slave Enable/Disable Settings ................... 9-69 node addresses ................................................... 2-9, 5-17
EtherCAT slave errors ................................................... 9-7 Number of Slaves ....................................................... 5-12
EtherCAT slave information .............................. A-17, A-31
EtherCAT slave information file ................................... A-19 O
EtherCAT slave setting ............................................... 5-16
EtherCAT state machine ............................................. A-31 object dictionary ...................................................3-3, A-31
EtherCAT Technology Group ...................................... A-31 objects ......................................................................... A-31
event codes ................................................................. 9-10 observation event level ................................................. 9-8
event names ............................................................... 9-10 OD ............................................................................... A-31
events ........................................................................... 9-2 Operational ........................................................3-10, A-31
output ports ................................................................... 1-4
F
P
Fail-soft Operation Setting .......................................... 5-13
I
forced refreshing ......................................................... 6-19 packet monitoring ................................................ A-8, A-31
Packet Monitoring Stopped .................................. 7-6, 7-15
G partial fault event level .................................................. 9-8
PDO ............................................................................ A-31
Get EtherCAT Error Status instruction .......................... 9-5 PDO communications ...................................3-5, 6-2, A-31
PDO Communications Cycle Time .............................. 5-12
I PDO communications timeout detection count ........... 5-13
PDO Map Settings ...................................................... 5-18
I/O power supply ........................................................... 1-7 PDOs ............................................................................ 3-2
I/O refreshing .............................................................. 3-11 performance specifications ........................................... 1-9
index ........................................................................... A-31 Pre-operational ..................................................3-10, A-31
information event level .................................................. 9-8 procedures
Init ............................................................................... 3-10 overall procedure ................................................... 1-13
Input Data Invalid ................................................. 7-7, 7-16 process data ............................................................... A-31
Input Process Data Invalid Error .......................... 7-4, 7-12 Process Data Communicating Slave Table .......... 7-6, 7-14
installation ..................................................................... 4-4 process data communications .............. 3-2, 3-5, 6-2, A-31
communication cables ............................................. 4-4 Process Data Communications Error ................... 7-3, 7-11
instructions Process Data Communications Status ................. 7-6, 7-15
GetECError ............................................................. 9-5 process data objects ................................................... A-31
Process Data Reception Timeout Error ........ 7-3, 7-5, 7-11
L Process Data Transmission Error ........................ 7-3, 7-11
levels R
events ...................................................................... 9-8
Link OFF Error ..................................................... 7-3, 7-10 receive PDO ................................................................ A-31
Link Status ........................................................... 7-6, 7-15 Reference Clock ......................................................... 5-19
Registered Slave Table ........................................ 7-6, 7-13
M Relation between changes
in the enable/disable setting and I/O operations ...... 5-22
MAC Address Error .............................................. 7-3, 7-10 Restore function .......................................................... 5-23
major fault event level ................................................... 9-8 restoring ............... 2-12, 2-14, 2-16, 9-14, 9-38, 9-71, 9-72
major fault level Controller errors ................................ 6-17 Revision ...................................................................... 5-17
Master Error .................................................... 7-3, 7-9, 9-6 Revision Check Method .............................................. 5-13
Message Communications Enabled Slave Table ........ 7-14 RxPDO ........................................................................ A-31
minor fault event level ................................................... 9-8
S
N
Safe operational .................................................3-10, A-32
Network Configuration Error ................................ 7-3, 7-11 Saving Packet Data File ....................................... 7-6, 7-15
network configuration information ........................ 5-2, A-31 SDO ............................................................................ A-32
downloading .......................................................... 5-33 SDO communications ......................... 3-2, 3-6, 6-21, A-32
Network Configuration Information Error ............. 7-3, 7-10 SDOs ............................................................................ 3-2
network configuration verification ................................ 5-14 self diagnosis ................................................................ 3-9
Network Configuration Verification Error .............. 7-3, 7-11 Serial Number ............................................................. 5-18
Network Connected Slave Table .......................... 7-6, 7-13 Serial Number Check Method ..................................... 5-13
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505) Index-3
Index
Index-4 NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
OMRON Corporation Industrial Automation Company Authorized Distributor:
Kyoto, JAPAN
Contact: www.ia.omron.com
Regional Headquarters
OMRON EUROPE B.V. OMRON ELECTRONICS LLC
Wegalaan 67-69, 2132 JD Hoofddorp 2895 Greenspoint Parkway, Suite 200
The Netherlands Hoffman Estates, IL 60169 U.S.A.
Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787
OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. © OMRON Corporation 2011-2017 All Rights Reserved.
No. 438A Alexandra Road # 05-05/08 (Lobby 2), Room 2211, Bank of China Tower, In the interest of product improvement,
Alexandra Technopark, 200 Yin Cheng Zhong Road, specifications are subject to change without notice.
Singapore 119967 PuDong New Area, Shanghai, 200120, China
Tel: (65) 6835-3011/Fax: (65) 6835-2711 Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200 Cat. No. W505-E1-15 0417