Anybus® X-gateway CANopen EtherNet/IP

Anybus® X-gateway CANopen EtherNet/IP
User Manual
Anybus X-gateway CANopen
EtherNet/IP
®
Doc.Id. SCM-1200-083
Rev. 1.00
HMS Industrial Networks AB

Germany + 49 - 721 - 96472 - 0
Japan
+ 81 - 45 - 478 -5340
Sweden
+ 46 - 35 - 17 29 20
U.S.A.
+ 1 - 312 - 829 - 0601
France
+ 33 - 3 89 32 76 76
Italy
+ 39 - 347 - 00894 - 70
China
+ 86 - 10 - 8532 - 3183

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Important User Information
This document is intended to provide a good understanding of the functionality offered by the Anybus X-gateway
CANopen - EtherNet/IP.
The reader of this document is expected to be familiar with high level software design, and communication
systems in general. The use of advanced CANopen specific functionality may require in-depth knowledge in
CANopen networking internals and/or information from the official CANopen specifications. In such cases, the
people responsible for the implementation of this product should either obtain the CANopen specification to gain
sufficient knowledge or limit their implementation in such a way that this is not necessary. Also knowledge of
EtherNet/IP is expected.
Liability
Every care has been taken in the preparation of this manual. Please inform HMS Industrial Networks AB of any
inaccuracies or omissions. The data and illustrations found in this document are not binding. We, HMS Industrial
Networks AB, reserve the right to modify our products in line with our policy of continuous product development.
The information in this document is subject to change without notice and should not be considered as a commitment by HMS Industrial Networks AB. HMS Industrial Networks AB assumes no responsibility for any errors that
may appear in this document.
There are many applications of this product. Those responsible for the use of this device must ensure that all the
necessary steps have been taken to verify that the applications meet all performance and safety requirements including any applicable laws, regulations, codes, and standards.
HMS Industrial Networks AB will under no circumstances assume liability or responsibility for any problems that
may arise as a result from the use of undocumented features, timing, or functional side effects found outside the
documented scope of this product. The effects caused by any direct or indirect use of such aspects of the product
are undefined, and may include e.g. compatibility issues and stability issues.
The examples and illustrations in this document are included solely for illustrative purposes. Because of the many
variables and requirements associated with any particular implementation, HMS Industrial Networks AB cannot
assume responsibility for actual use based on these examples and illustrations.
Intellectual Property Rights
HMS Industrial Networks AB has intellectual property rights relating to technology embodied in the product described in this document. These intellectual property rights may include patents and pending patent applications
in the US and other countries.
Trademark Acknowledgements
Anybus ® is a registered trademark of HMS Industrial Networks AB. All other trademarks are the property of their
respective holders.
Warning:
This is a class A product. in a domestic environment this product may cause radio interference in
which case the user may be required to take adequate measures.
ESD Note: This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if ESD
control procedures are not followed. Static control precautions are required when handling the product. Failure to observe this may cause damage to the product.
Anybus X-gateway CANopen - EtherNet/IP User Manual
Rev 1.00
Copyright© HMS Industrial Networks AB
Jan 2011 Doc Id SCM-1200-083
Table of Contents
Table of Contents
Preface
About This Document
Related Documents.................................................................................................................................. 1
Document History ................................................................................................................................... 1
Conventions & Terminology .................................................................................................................. 2
Support....................................................................................................................................................... 3
Chapter 1
Getting Started
Chapter 2
Anybus X-gateway CANopen - EtherNet/IP
Introduction .............................................................................................................................................. 5
Features ...................................................................................................................................................... 6
Functional Overview................................................................................................................................ 7
Data Exchange.......................................................................................................................................... 7
Chapter 3
About the Anybus X-gateway CANopen
External View............................................................................................................................................ 9
Status LEDs ............................................................................................................................................ 10
Fieldbus Specific ..................................................................................................................................... 11
Ethernet Port Connectors ............................................................................................................... 11
USB Connector....................................................................................................................................... 12
CANopen Connector............................................................................................................................. 12
Power Connector.................................................................................................................................... 12
Configuration Switches.......................................................................................................................... 13
Baud Rate ..................................................................................................................................... 13
Node Address ................................................................................................................................ 13
Hardware Installation............................................................................................................................. 14
CANopen Electronic Data Sheet (EDS) ............................................................................................ 15
EtherNet/IP Electronic Datasheet (EDS-file) .................................................................................. 15
Chapter 4
CANopen Fieldbus Functionality
Supported Fieldbus Services................................................................................................................. 16
Chapter 5
Configuration
Module Identification ............................................................................................................................ 17
CANopen Master/Slave Configuration .............................................................................................. 17
CANopen Network Configuration...................................................................................................... 19
LSS Routine.................................................................................................................................. 19
Configuration of the EtherNet/IP interface...................................................................................... 20
Connection parameters.................................................................................................................... 20
IP Settings ..................................................................................................................................... 20
II
Chapter 6
CANopen Module Specification
NMT State Machine............................................................................................................................... 22
Data Exchange........................................................................................................................................ 23
Control Word ................................................................................................................................ 24
Status Word .................................................................................................................................. 25
Example........................................................................................................................................ 26
PDO Functionality ........................................................................................................................ 27
LSS Services............................................................................................................................................. 28
Error Control .......................................................................................................................................... 29
Heartbeat Mechanism .................................................................................................................... 29
Node Guarding1............................................................................................................................ 29
Emergency Object (EMCY)........................................................................................................... 29
Chapter 7
CANopen Supported Objects
Static Data Types.................................................................................................................................... 30
Communication Profile Area................................................................................................................ 30
DS301 Communication Profile Objects.......................................................................................... 30
Configuration Manager .................................................................................................................. 32
Network Management Objects ....................................................................................................... 33
Vendor Specific Objects........................................................................................................................ 38
Transmit Buffer ............................................................................................................................. 39
Receive Buffer................................................................................................................................. 40
I/O Buffer Addresses and Object Dictionary Indices Relation ........................................................ 41
General Fieldbus Parameters.......................................................................................................... 42
EtherNet/IP Specific Parameters................................................................................................... 42
Appendix A Technical Specification
Protective Earth (PE) Requirements................................................................................................... 43
Power Supply .......................................................................................................................................... 43
Environmental Specification ................................................................................................................ 43
Temperature................................................................................................................................... 43
Relative Humidity.......................................................................................................................... 43
EMC (CE) Compliance ......................................................................................................................... 44
Appendix B Status LED Timing Diagrams
Appendix C CANopen Emergency Codes
Appendix D CANopen Configuration Example
Configuration Example ......................................................................................................................... 47
Anybus X-gateway CANopen
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Preface
P. About This Document
For more information, documentation etc., please visit the HMS website, ‘www.anybus.com’.
P.1 Related Documents
Document
CiA Draft Standard 301 v4.2
CiA Draft Standard Proposal 302 Part 1-5
EtherNet/IP Specifications Vol 1, 2
Author
CAN in Automation
CAN in Automation
ODVA
P.2 Document History
Summary of Recent Changes ( ... 1.00)
Change
-
Page(s)
-
Revision List
Revision
1.00
Date
Author(s)
2011-01-17 KeL
Anybus X-gateway CANopen to EtherNet/IP
Doc.Rev. 1.00
Chapter(s) Description
First official release
Doc.Id. SCM-1200-083
About This Document 2
P.3 Conventions & Terminology
The following conventions are used throughout this manual:
•
Numbered lists provide sequential steps
•
Bulleted lists provide information, not procedural steps
•
The terms ‘Anybus’ or ‘module’ refers to the Anybus X-gateway module.
•
Hexadecimal values are written in the format NNNNh, where NNNN is the hexadecimal value.
•
A byte always consists of 8 bits
Anybus X-gateway CANopen to EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About This Document 3
P.4 Support
HMS Sweden (Head Office)
E-mail:[email protected]
Phone: +46 (0) 35 - 17 29 20
Fax: +46 (0) 35 - 17 29 09
Online:www.anybus.com
HMS North America
E-mail:[email protected]
Phone: +1-312-829-0601
Toll Free:+1-888-8-Anybus
Fax: +1-312-629-2869
Online:www.anybus.com
HMS Germany
E-mail:[email protected]
Phone: +49-721-96472-0
Fax: +49-721-964-7210
Online:www.anybus.com
HMS Japan
E-mail:[email protected]
Phone: +81-45-478-5340
Fax: +81-45-476-0315
Online:www.anybus.com
HMS China
E-mail:[email protected]
Phone: +86 10 8532 3023
Online:www.anybus.com
HMS Italy
E-mail:[email protected]
Phone: +39 039 59662 27
Fax: +39 039 59662 31
Online:www.anybus.com
HMS France
E-mail:[email protected]
Phone: +33 (0) 3 89 32 76 41
Fax: +33 (0) 3 89 32 76 31
Online:www.anybus.com
Anybus X-gateway CANopen to EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 1
1. Getting Started
The purpose of this chapter is to give a short description on how to install the module and get it up and
running, transferring I/O data between the CANopen network and the EtherNet/IP network.
Note: The CANopen network interface is configured prior to the EtherNet/IP network interface and
the Anybus X-gateway CANopen - EtherNet/IP module has to be restarted after the configuraton of
the CANopen network has been finished.
Perform the following steps when installing the gateway:
1. Snap the gateway on to the DIN-rail (See “External View” on page 9)
The DIN-rail mechanism works as follows:
1
To snap the gateway on, first press the it downwards (1) to compress the
spring in the DIN-rail mechanism, then push it against the DIN-rail as to
make it snap on (2)
2
1
To snap the gateway off, push the it downwards (1) and pull it out from
the DIN-rail (2), as to make it snap off from the DIN-rail.
2
2. Connect the gateway to the CANopen network
3. Set the CANopen node ID and operating baud rate (see “Configuration Switches” on page 13)
4. Connect the power cable and apply power.
5. Download the appropriate EDS file from HMS to the external CANopen configuration tool. See
“CANopen Electronic Data Sheet (EDS)” on page 15.
6. Decide how much data will be transferred. A description of how the data is mapped to the
Anybus X-gateway CANopen is found in “I/O Buffer Addresses and Object Dictionary Indices Relation” on page 43.
7. Consult the “CANopen Configuration Example” on page 49 to configure the module and the
CANopen network.
8. Connect the gateway to the EtherNet/IP network.
9. Restart the gateway.
10. Download the appropriate EDS file from HMS. See “EtherNet/IP Electronic Datasheet (EDSfile)” on page 15.
11. The actual configuration of the module is performed while configuring the EtherNet/IP master/
scanner and the EtherNet/IP network, see “Configuration of the EtherNet/IP interface” on page
20. The I/O buffers of the module contains 512 bytes, but the amount of I/O data is decided by the
CANopen configuration.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 2
2. Anybus X-gateway CANopen - EtherNet/IP
2.1 Introduction
The Anybus X-gateway CANopen is a series of network gateways, used to provide a seamless connection between a CANopen subnetwork and a controlling network , here EtherNet/IP. The gateway enables the master of the EtherNet/IP network to control the CANopen subnetwork, that the module’s
CANopen interface resides on. This makes it possible to integrate CANopen devices into almost any
other PLC system and their supported networks.
The gateway is based on patented Anybus
technology, a proven industrial communication solution used all over the world by leading manufacturers of industrial automation
products. Each module offers CANopen
master/slave connectivity to one of these industrial networks: EtherCAT, PROFIBUS
DPV1, DeviceNet, ControlNet, CANopen,
Modbus RTU, EtherNet/IP, PROFINET
IO (both RT and IRT) or Modbus TCP.
No proprietary configuration software is
needed, though dedicated configuration
tools are required when setting up the actual
industrial network communications. Any
standard CANopen configuration tool1 can
be used to configure the CANopen interface.
Control Network
Master
(e.g. PLC)
Slave
Anybus X-gateway
CANopen
Slave
Slave
Slave
Control
Network
Slave
CANopen
Master/Slave
Slave
Slave
Slave
Slave
Device Level with CANopen Slaves
The uplink fieldbus or Ethernet slave interface is configured with a standard device description file
(GSD/EDS) and the standard engineering tool of the PLC. No programming is required.
The gateways transmit I/O data transparently between the two networks. I/O data from the uplink
fieldbus/Ethernet network is mapped into CANopen PDOs and vice versa.
1.
CANopen Configuration Manager from PORT is available for download at www.anybus.com. This version of the tool from PORT
can only be used with products form HMS Industrial Networks. Please contact HMS support for further information, see “Support”
on page 3.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Anybus X-gateway CANopen - EtherNet/IP 6
2.2 Features
Anybus CANopen X-gateways act as intelligent links between two industrial networks. On the CANopen subnetwork side, they can function as both a master (manager) or slave (server), while they work
as slaves on the fieldbus/Ethernet side. The implementation is based on HMS NP30 network microprocessor and is certified by CAN in Automation (CIA) for full conformance to the CANopen DS 301
v4.0.2 standard.
CANopen
•
CANopen master (manager) and slave functionality
•
Connects up to 126 CANopen slave nodes
•
Complies to the CANopen communication profile DS301 4.2 and DSP302 (part 1-5)
•
Supports cyclic and acyclic synchronous as well as COS (change of state) PDO message types.
•
Auto baud rate on CANopen
•
Heartbeat mechanism and node guarding
•
Sync objects
•
128 receive and 128 transmit PDOs available
EtherNet/IP Features
•
10/100Mbit operation in full or half duplex
•
DHCP/Anybus IPconfig (HICP) support
•
EtherNet/IP Adapter
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Anybus X-gateway CANopen - EtherNet/IP 7
2.3 Functional Overview
Industrial network
Anybus network
slave interface
Anybus CANopen
master/slave Interface
CANopen network
Internally, the gateway consists of an intelligent gateway platform, an Anybus CANopen interface1 and
an Anybus EtherNet/IP interface. The CANopen interface and the Anybus EtherNet/IP interface are
interconnected through the intelligent gateway platform, which basically forwards data from one network to the other and vice versa as shown below. This design allows almost any other industrial network
to be connected to a CANopen master or a slave on a separate CANopen network.
2.4 Data Exchange
Control Word
Status Word
Data To
the CANopen
Network
Data From
the CANopen
Network
CANopen Network Interface
Industrial Network Interface
Status Word
Control Word
Data From
the CANopen
Network
Data to
the Canopen
Network
Industrial network
CANopen network
Each of the two network interfaces exchanges data on its network through two buffers. The gateway
forwards the data between these buffers as shown below. Note that this process is separated from the
network data exchange. While the gateway ensures data consistency (where applicable), it does not feature any built-in mechanisms for synchronisation between the CANopen network and the EtherNet/IP
network.
Each buffer holds up to 512 bytes of data, where the first two bytes always are used for control/status
information. The remainder 510 bytes gives the theoretical upper limit for the number of data bytes that
1.
When it is started the first time, the Anybus X-gateway is set as slave. This can be changed during configuration, see “CANopen Configuration Example” on page 49. The module will remember its setting when restarted.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Anybus X-gateway CANopen - EtherNet/IP 8
can be exchanged in each direction. Please note that the actual number of bytes that can be exchanged
is highly network dependent.
Through the dedicated control word, the master on the EtherNet/IP network starts/stops the exchange of data on the CANopen subnetwork, and also reset the gateway if needed. The master on the
EtherNet/IP network can see the status of the CANopen subnetwork in the corresponding status word.
The amount of data that shall be exchanged, and the use of the control- and status functionality, is specified separately for each application. This means that even though up to 510 bytes of data can be forwarded to an interface, the amount of data that will actually be exchanged on that network is determined
by the CANopen settings, with consideration taken to the limits of the interface.
The available control- and status functionality is described in “Data Exchange” on page 25. Also note
that the terminology and definitions used for different types of data vary greatly between different networking systems. All data transported through the Anybus X-gateway CANopen is fast, cyclic data and
is simply referred to as ‘I/O Data’ in this document.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 3
3. About the Anybus X-gateway CANopen
3.1 External View
A: Status LEDs
See also...
- “Status LEDs” on page 10
A
B
B: Fieldbus Specific Connectors and Switches
This connector (connectors) and, if available, these
switches are used to connect the Anybus X-gateway
CANopen module to the EtherNet/IP network and
to configure that interface. They are described in
“Fieldbus Specific” on page 11.
C: USB connector
This connector simulates a COM-port, used for software upgrade of the module.
See also...
C
D
- “USB Connector” on page 12
F
D: CANopen Connector
E
This connector is used to connect the gateway to the
CANopen network.
See also...
- “CANopen Connector” on page 12
E: Power Connector
This connector is used to apply power to the gateway.
See also...
- “Power Connector” on page 12
F: DIN-rail Connector
The DIN-rail mechanism connects the gateway to PE (Protective Earth).
See also...
- “Hardware Installation” on page 14
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 10
3.2 Status LEDs
The status LEDs on the front indicate the status of the module as shown in the table below. Their behavior is described in “Status LED Timing Diagrams” on page 47
Status LEDs 1 - 4 indicate the status of the EtherNet/IP network and status LEDs
5 - 6 indicate the status of the CANopen subnet and the device.
#
1 - Module status
2 - Network Status
State
Off
Green
Flashing green
Flashing red
Red
Flashing green/red
Off
Green
Flashing green
Flashing red
3 - Link/Activity 1
4 - Link/Activitiy 2
Red
Flashing green/red
Off
Flashing green
Flashing yellow
5 - CANopen subnet Off
Flickering green/red
statusa
Blinking green
Single flash, green
On, green
Blinking red
Single flash, red
6 - Device status
Double flash, red
Triple flash, red
Quadruple flash, red
Red
Off
Blinking green
On, green
Single flash, red
Double flash, red
Triple flash, red
Quadruple flash, red
On, red
Status
No power or initializing
Controlled by a scanner in Run state
Not configured or scanner in Idle state
Minor fault, recoverable
Major fault, unrecoverable
Self test in progress
No power or no IP address
On-line, one or more connections (CIP
class 1 or 3)
On-line, no connection established
One or more connections timed out (CIP
class 1)
Duplicate IP address, fatal error
Self test in progress
No link sensed on port 1/2
Activity, receiving/transmitting Ethernet
packets at 100 Mbit
Activity, receiving/transmitting Ethernet
packets at 10 Mbit
Power off
The LSS services are in progress
Pre-operational state
Stopped state
Operational state
Configuration error
Warning limit reached in CAN controller,
e.g. bad or no signal on CANopen network.
Error control event
Sync error
Data communication time-out
Bus off
Power off
Bootup
Running
Initialization error
Internal time-out
Hardware failure
Invalid switch settings
Fatal error
a. This LED shows the status of the CANopen network that is controlled by the CANopen master in the module or the status of the CANopen network where the module
is attached as a CANopen slave.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 11
3.3 Fieldbus Specific
3.3.1 Ethernet Port Connectors
Pin no
1
2
3
6
4, 5, 7, 8
Description
TD+
TDRD+
RD(reserved)
1
8
1
2
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 12
3.4 USB Connector
At the bottom of the the module you find a USB connector used for software upgrade
of the module.
Pin no.
1
2
3
4
Housing
Description
+5 V input
USBDM (USB communication signals)
USBDP (USB communication signals)
Signal GND
Cable Shield
2
1
3
4
3.5 CANopen Connector
Next to the USB connector the CANopen connector is found.
Pin no.
2
5
7
1, 4, 8, 9
3, 6
Description
CAN_L
Housing, CAN cable shield
CAN_H
(reserved)
CAN GND
1
6
5
(male)
9
This connector is also used to download the CANopen configuration to the module.
3.6 Power Connector
Pin no.
1
2
Description
+24V DC
GND
1
2
Notes:
•
•
Use 60/75 or 75×C copper (CU) wire only.
The terminal tightening torque must be between 5... 7 lbs-in (0.5... 0.8 Nm)
See also...
- “Power Supply” on page 45
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 13
3.7 Configuration Switches
78
78
456
456
78
9 01
23
456
Note: When these switches have been set, cover them with the
switch covers that accompany the module.
9 01
23
9 01
23
The on-board switches on the side of the module are used to set the
CANopen node address and operating baud rate. These settings
cannot be changed during runtime, i.e. the gateway must be restarted
in order for any changes to have effect.
A B C
3.7.1 Baud Rate
The baud rate is set via switch A:
Switch Setting
0
1
2
3
4
5
6
7
8, 9
Baud Rate(kbit/s)
20
50
125
250
500
800
1000
Auto
Not available
3.7.2 Node Address
The node address is configured using two rotary switches as follows:
Node Address = (Switch B x 10) + (Switch C x 1)
Example: To set node address 42, set switch B to ‘4’ and switch C to ‘2’.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 14
3.8 Hardware Installation
Perform the following steps when physically installing the gateway:
1. Snap the gateway on to the DIN-rail (See “External View” on page 9)
The DIN-rail mechanism works as follows:
1
To snap the gateway on, first press the it downwards (1) to compress the
spring in the DIN-rail mechanism, then push it against the DIN-rail as to
make it snap on (2)
2
1
To snap the gateway off, push the it downwards (1) and pull it out from
the DIN-rail (2), as to make it snap off from the DIN-rail.
2
2. Connect the gateway to the CANopen network
3. Set the CANopen node ID and operating baud rate (see “Configuration Switches” on page 13)
4. Connect the gateway to the EtherNet/IP network.
5. Connect the power cable and apply power
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
About the Anybus X-gateway CANopen 15
3.9 CANopen Electronic Data Sheet (EDS)
Each device on CANopen is associated with a CANopen Electronic Data Sheet (a.k.a EDS file), which
holds a description of the device and its functions. Most importantly, the file describes the object dictionary implementation in the device. This file should be uploaded to the CANopen configuration tool.
The latest version of the EDS file for the Anybus X-gateway CANopen can be downloaded from the
HMS website, ‘www.anybus.com’.
3.10 EtherNet/IP Electronic Datasheet (EDS-file)
Each device in a EtherNet/IP network is associated with an Electronic Data Sheet (an EDS file), which
describes the implementation of the product. This file is used by the network configuration tool during
network configuration.
The latest version of the EDS file for the Anybus X-gateway EtherNet/IP interface can be downloaded
from the HMS website, ‘www.anybus.com’.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 4
4. CANopen Fieldbus Functionality
The functionality of the Anybus X-gateway CANopen is defined by the CANopen DS301 Rev. 4.2 specification and DSP302 (part 1-5).
Note: The first time the module starts up, it starts as a slave on the CANopen network.It can be set as
master during configuration, see “CANopen Configuration Example” on page 49. This setting only
needs to be performed once. The module will save the setting and start as master the next time.
4.1 Supported Fieldbus Services
Communication and parameters in the CANopen protocol are built around objects. There are different
services available to communicate with the objects and to perform other CANopen tasks like supervising the network. The following message types and objects are implemented in the Anybus X-gateway
CANopen:
1.
2.
•
NMT (Network Management)1 messages configure and initialize the network, as well as monitor
the network and handle errors. If the module is configured as a slave, startup is performed by a
master on the network.
•
CMT (Configuration Manager)1 messages are used for configuration of CANopen devices. This
primarily involves PDO parameters and mapping of information. If the module is configured as
a slave, the configuration is performed by a master on the network.
•
PDOs (Process Data Objects) are used for I/O communication. There are 128 Receive PDOs
and 128 Transmit PDOs implemented in the Anybus X-gateway CANopen that each can transfer up to 8 bytes. Supported PDO message types are COS (Change of state), Cyclic Synchronous
and Acyclic Synchronous.2
•
SDOs (Service Data Objects) use asynchronous data transmission and are used to access objects
without mapping them to an I/O (PDO) connection. Access is provided to all CANopen objects
in the module and in the network nodes (master mode). The SDO messages are used to configure
the modules and they can transfer more than 8 bytes, which is the upper limit for a PDO. (Expedited Upload/Download Protocol and Segmented Upload/Download Protocol are supported)
•
A SYNC (Synchronization Object) is used for synchronizing PDO communication. A master
can be either a producer or a consumer of the synchronization. A slave can only be a consumer.
•
The Heartbeat Mechanism helps a device to monitor the status of another node. The module can
appear both as heartbeat producer and consumer
•
The Node Guarding Protocol provides active surveillance of a slave by the master. Slaves can be
configured to expect a node guarding request from the master.
•
An EMCY (Emergency Object) is used for error reporting when a fatal fault has occurred in the
module itself or in other monitored/supervised modules.
•
LSS (Layer Setting Services)1. An LSS master can configure baud rate and node ID of all slaves
that support LSS (i.e. the pre-configured baud rate and node ID of a slave can be changed by a
master).
Only available when the module is configured as master.
The data exchange with the EtherNet/IP network is limited to 512 byte, so not all PDOs can be used at a time.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 5
5. Configuration
This chapter describes the configuration of the CANopen subnet interface and the CANopen subnet as
well as the configuration of the EtherNet/IP interface of the module. The CANopen subnet interface
is configured prior to the EtherNet/IP interface. The I/O data sizes configured for CANopen decides
the data sizes on the EtherNet/IP interface.
5.1 Module Identification
The Anybus X-gateway CANopen to EtherNet/IP module identifies itself on the network as follows:
Description
Vendor Code
Vendor Name
Product Code
Product Type
Product Type String
Product Name
Catalog
Desc Text
Value
90
“HMS Networks”
50
12
“Communications Adapter”
“Anybus X-gateway CANopen”
“Anybus X-gateway CANopen”
“Anybus X-gateway CANopen”
5.2 CANopen Master/Slave Configuration
The CANopen network, and the behavior of the module on this network, have to be configured using
an external CANopen configuration tool1 running on a computer. The configuration is downloaded to
the CANopen network through a CANopen adapter.2
The module is by default configured as a slave at startup. To enable it to perform as a CANopen master,
please set this during configuration, see “CANopen Configuration Example” on page 49 and “NMT
Start-up, 1F80h” on page 36.
The following parameters have to be defined
1.
2.
Parameter
Node Number
Description
Node ID on the CANopen Network.
Allowed values are 1 - 127
Values
1-127
Baud rate
This parameter defines the baud rate on the 20 kbit/s
CANopen network. If “Auto” is selected the 50 kbit/s
baud rate will be automatically detected.
125 kbit/s
250 kbit/s
500 kbit/s
800 kbit/s
1000 kbit/s
Auto
Comment
Node ID (1-99) is set using rotary
switches, see “Configuration
Switches” on page 13. Node ID:s
above 99 can be set using the configuration tool or from the CANopen
network.
Set using rotary switches, see “Configuration Switches” on page 13
CANopen Configuration Manager from PORT is available for download at www.anybus.com. This version of the tool can only be
used for products from HMS Industrial Networks. Please contact HMS support for further information, see “Support” on page 3.
Please contact HMS support for further information, see “Support” on page 3
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Configuration 18
Parameter
Set master
CANopen input
data size
Description
Values
Set the module to be CANopen master. At
startup the module is a slave by default. This
can be changed during configuration.
This parameter defines the size of the reada- 2 - 512a
ble data array on the controlling network
interface. Data to the controlling network from
the CANopen network.
CANopen output This parameter defines the size of the writa- 2 - 512a
data size
ble data array on the controlling network
interface. Data from the controlling network
interface to the CANopen network.
Comment
See “NMT Start-up, 1F80h” on
page 36
The first 2 bytes in the array are
used for the status word, so the
maximum data size from the CANopen network is 2 bytes less than
the maximum value allowed for this
parameter, see also object 3000h on
page 44.
The first 2 bytes in the array are
used for the control word, so the
maximum data size from the CANopen network is 2 bytes less than
the maximum value allowed for this
parameter, see also object 3001h on
page 44.
a. The data buffers in the Anybus X-gateway CANopen module can hold 512 bytes of data, but the actual maximum
data size is highly dependent on network. Please consult the section on configuration of the controlling network
further on in this chapter.
Note: The input and output data sizes are configured for the CANopen interface. The master of the
controlling network, will have to take these values into consideration, as they will be used by the EtherNet/IP interface of the module.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Configuration 19
5.3 CANopen Network Configuration
An external CANopen configuration tool1 is used to configure the nodes on the CANopen network.
Each node can be configured locally or a Concise DCF file can be downloaded to the CANopen network master using a CANopen adapter2. At the next startup the CANopen master will configure the
network, if this function was set in the configuration tool during initial configuration.
The first time the Anybus X-gateway CANopen is started it starts up as a slave. It can be configured as
a master, and if it is, it will continue to start up as a master.
1. Download the EDS file3 from www.anybus.com to your PC.
2. Open the CANopen configuration tool.
3. Upload the EDS file to the configuration tool.
4. Add nodes to the CANopen network.
5. Configure each node with the necessary parameters.
6. Set the I/O data size between the CANopen subnetwork and the controlling EtherNet/IP network to the same parameter values as are set in objects 3000h and 3001h. Default values are 16 for
both. See “General Fieldbus Parameters” on page 44.
7. Download the configuration to the CANopen network as Concise DCF to the master or store
the configuration locally in each module’s non volatile memory.
Please consult the user manual for the configuration tool for details and/or contact HMS support, see
“Support” on page 3. For an example, see “CANopen Configuration Example” on page 49.
To configure the EtherNet/IP interface, restart the module, and then configure the EtherNet/IP network using appropriate configuration tools, see below. Please remember that the amount of data that
can be exchanged already is decided by the CANopen master configuration (CANopen objects 3000h
and 3001h). The first two bytes of the input data or the output data are always used for status and control
information.
5.3.1 LSS Routine
If there is a missing slave on the network after the boot timeout (defined in object 1F89h, page 40) the
master will initiate the LSS routine. It will send an identify slave request. If one (and only one) slave responds to that message, the master sets the NodeID of that node to the first available NodeID. The
master will then send a bootup request to the slave.
1.
2.
3.
CANopen Configuration Manager from PORT is available for download at www.anybus.com. This version of the tool can only be
used for products from HMS Industrial Networks. Please contact HMS support for further information, see “Support” on page 3.
Please visit www.anybus.com or contact HMS support for further information, see “Support” on page 3.
The EDS file for the Anybus X-gateway CANopen can be downloaded from www.anybus.com.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Configuration 20
5.4 Configuration of the EtherNet/IP interface
After the configuration of the CANopen master interface has been finalized, the module has to be restarted before the configuration of the EtherNet/IP adapter interface can be started.
The adapter interface is part of a EtherNet/IP network, and will have to be configured within this. This
means that the interface must be assigned an IP address, see “IP Settings” on page 20. The configuration
tool used when configuring the EtherNet/IP scanner and the EtherNet/IP network will have to be used
to configure the adapter interface as well. Please note that the size of the I/O data that can be read from
and written to the module is defined when configuring the CANopen subnetwork interface.
There are a number of different configuration tools for EtherNet/IP available on the market. The
choice of tool depends on the application and the EtherNet/IP scanner of the network. An .EDS file
for the adaper interface is available at ‘www.anybus.com’.
An application note, describing how to configure an Anybus EtherNet/IP slave interface with RS Logix
and RS Networx, is available on the support pages for the Anybus X-gateway CANopen to EtherNet/
IP module at ‘www.anybus.com’.
5.4.1 Connection parameters
I/O data is accessed in input and output assembly instances on the EtherNet/IP network as shown below. These values are set in the EDS file for the EtherNet/IP interface. Usually the configuration tool
reads and uses these values, but there are tools where you have to define them manually.
Input
Output
Assembly instance
100
150
5.4.2 IP Settings
Three different options for assigning an IP address to the EtherNet/IP slave interface of the module is
described below.
DHCP/BootP (Default)
The module retrieves the TCP/IP settings from a DHCP or BootP server.
If it fails and no current settings are available, the module will indicate an error on the on-board status
LEDs. The settings may however be configured using HICP, see “Anybus IPconfig (HICP)” on page
21.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Configuration 21
Anybus IPconfig (HICP)
The module supports the HICP protocol used by the Anybus IPconfig utility from HMS, which can be
downloaded free of charge from the HMS website. This utility may be used to configure the network
settings of any Anybus product connected to the network. Note that if successful, this will replace the
settings currently stored.
Upon starting the program, the network
is scanned for Anybus products. The network can be rescanned at any time by
clicking ‘Scan’. In the list of detected devices, the module will appear as ‘Anybus
X-gateway CANopen master’. To alter its
network settings, double-click on its entry in the list.
A window will appear, containing the IP
configuration and password settings.
Validate the new settings by clicking ‘Set’,
or click ‘Cancel’ to abort.
Optionally, the configuration may be protected from unauthorized access by a password. To enter a
password, click on the ‘Change password’ checkbox, and enter the password under ‘New password’.
When protected, any changes in the configuration requires that the user supplies a valid password.
When done, click ‘Set’. The adopted configuration will be stored in the ethernet configuration file.
Note: The HICP protocol communicates over UDP port 3250.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 6
6. CANopen Module Specification
6.1 NMT State Machine
The function of the Anybus X-gateway CANopen can be described as a state machine with four states.
Power on
Initialization
Pre-operational
Stopped
Operational
State
Initialization
Pre-operational
Operational
Stopped
Description
When the power is switched on, the module starts initializing.
The parameters are set to the so called power-on values, which are the default values or
the latest stored values. If parameter values are stored from a previous configuration, these
are used. If not, or if a restore_default command is issued, the parameters are reset to the
default values according to the communication and device profile specifications.
Once initialized, the module automatically enters the pre-operational state. The Anybus Xgateway CANopen can be configured, but no I/O data can be exchanged.
In the operational state all communication objects are active. I/O data is communicated
according to the configuration made.
All communication is stopped, except node guarding and heartbeat, if active. From this
state any transition to another state is possible, depending on if a restart, reconfiguration or
reset of the module is wanted.
The module changes states upon reception of a request from an NMT object, a hardware reset or Module Control Services locally initiated by application events.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 25
6.2 Data Exchange
The Anybus X-gateway CANopen allows for 512 bytes of data in each direction between the controlling
network and the gateway. The first two bytes (the first word) are allocated for a Control/Status word,
decreasing the size of I/O data for CANopen to 510 bytes. The actual amount of data that can be exchanged is highly network dependent, see the section on configuration of the EtherNet/IP network in
chapter 5.
The control and status words of the module are used by the master of the EtherNet/IP network to control the Anybus X-gateway CANopen and the CANopen network it administers, and to report the status back from this network. The rest of the I/O data area is available in the CANopen vendor specific
object area for real-time data transfer using PDOs (Process Data Objects).
Note: The functionality of the Control/Status word differs depending on if the Anybus X-gateway
CANopen interface is configured as a slave or as a master.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 26
6.2.1 Control Word
The control word is used to control the CANopen network of the Anybus X-gateway CANopen. It is
triggered on a CoS (Change of State) event.
Control Word
Byte 0
Toggle bita Cmd, 3 bits
Byte 1
CmdExt, 4 bits NodeIDb
Effective I/O Data
Byte 2 - 510
Data
a. The first bit is a toggle bit, that is toggled by the controlling network each time a new command is issued
b. If NodeID = 0, the command is valid only for the node that the module represents. If NodeID = 128, the command
is valid for for the complete CANopen network. Any other NodeID value will specify the single node that the command is valid for. If the Anybus X-gateway CANopen interface is configured as a slave the only allowed value of
NodeID is 0.
Supported commands
The table below shows available commands and their representation in byte 0 of the control word.
Toggle Cmd
(3 bits)
bita
0h
CmdExt
Name
(4 bits)
0h
1h
2h
3h
4h
5h - Fh
(Set NMT State)
PRE-OPERATIONAL
OPERATIONAL
RESET NODE
RESET COMMUNICATION
STOP
-
1h
Get Node state
2h
Get COPM general status
3h - 6h
7h
(reserved)
(No operation)
Master functionality
Slave functionality
The NMT state is set by the
controlling PLC. If the PLC is
running, the NMT state is set
to OPERATIONAL. If the
PLC is not running, the NMT
state is set to PRE-OPERATIONAL.
Default: PRE-OPERA(reserved)
TIONAL
This command requests the state set in object 1F82h, see
page 38, of the CANopen node or network (depending on
the value of NodeId).b
This command requests the general status of the CANopen module
This command sets the
NMT state of a CANopen
node or the CANopen network, according to the value
of NodeID.
No Operation
It is recommended to set Cmd to this value, when the module goes offline from the fieldbus. This prevents unwanted
behavior of the CANopen network, when the fieldbus
comes back online.
a. The first bit is a toggle bit, that is toggled by the controlling network each time a new command is issued.
b. If the module is configured as slave, only NodeId = 0 is allowed.
When started, the module will initialize, and then automatically continue to the state
PRE_OPERATIONAL.
I/O data will only be exchanged if the module is in the state OPERATIONAL.
The command RESET NODE will restore the module to a previous downloaded configuration. RESET COMMUNICATION will restore the communication settings of the module. In both cases the
module will return to the INITIALIZATION state.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 27
6.2.2 Status Word
Byte 0 in the status word shows the last valid command and command extension written to the control
word, to indicate that the command has been performed. It also gives the lowest NodeID with error. If
NodeID is 0, all nodes are fine. If NodeID is for example 5, it means that there is an error with node 5.
Only NodeIDs, with errors, from nodes monitored by the heartbeat mechanism or by node guarding
will be reported.
Status Word
Byte 0
Toggle bita Cmd Rsp, 3 bits
Effective I/O Data
Byte 1
Byte 2 - 510
CmdExt, 4 bits Error Node Data
a. The first bit is a toggle bit, that is toggled by the module to mirror the toggle bit of the control word.
Supported commands
The table below shows available command responses and their representation in byte 0 of the status
word.
Toggle CmdRsp CmdExtRsp
(3 bits) (4 bits)
bita
0h
0h
1h
2h
3h
4h
5h - Fh
1h
0h
1h
2h
3h
4h
5h
6h
7h - Eh
Fh
2h
Bit:
3h - 6h
7h
0
1
2
3
(reserved)
-
Name
Master
Slave
(Set NMT State)
PRE-OPERATIONAL
OPERATIONAL
RESET NODE
RESET COMMUNICATION
STOP
(Get Node state)
PRE-OPERATIONAL
OPERATIONAL
RESET NODE
RESET COMMUNICATION
STOP
UNKNOWN
MISSING
ERROR
(Get COPM general status)
Response to Set NMT
State command. Reflects
the command.
Response to Set NMT State
command. Reflects the
command.
(reserved)
This response reflects the
state. set in object 1F82h,
see page 38, of a CANopen node or network
(depending on the value of
NodeId).
This response reflects the
state. set in object 1F82h,
see page 38, of the modules CANopen interface.
CAN_BUS_OFF
CAN_ERR_PASV
ERR_NG_HB
ERR_SYNC
This response requests the CANopen status of the module
Bus off
Error passive
Node guarding or Heartbeat error
Sync error
(No operation)
Reflects the command
a. The first bit is a toggle bit, that is toggled by the module to mirror the toggle bit of the control word.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 28
6.2.3 Example
The example shows two control words from the controlling network master to the module. Each control word includes a command that affects the CANopen subnetwork. Each control word is acknowledged by a status word, that contains a response to the command. Note that the first bit in the control
word is toggled when a new command is sent, to make sure it is distinguished from the previous command.
Network master
Command
(Set node with
Node ID 2 to
OPERATIONAL)
Anybus X-gateway CANopen module
Control word [0x
01 0x02]
Command
01 0x00]
Status word [0x
Response
Response
Control word [0x
01 0x02]
(*)
New command
(Set node with
Node ID 3 to
OPERATIONAL)
01 0x00]
Status word [0x
Control word [0x
81 0x03]
Command
81 0x00]
Status word [0x
Response
Response
(*) The communication is performed in an ongoing ping-pong fashion. The same command is sent
repeatedly, but as long as the toggle bit is not changed, the module will ignore the message. A new
command is signalled by the toggle bit changing value.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 29
6.2.4 PDO Functionality
Real-time data transfer is performed by means of PDOs (Process Data Objects). The PDOs are linked
to entries in the Device Object Dictionary and provide the interface to the application objects. Number
and length of PDOs in a device are node specific and have to be configured by the CANopen configuration tool.
PDOs are used both for data transmission and reception, using so called Transmit-PDOs (TPDOs) and
Receive-PDOs (RPDOs). Each PDO corresponds to two entries in the Device Object Dictionary. The
PDO parameter object holds information on the COB-ID, the transmission type etc. On recognition of
the COB-ID the corresponding PDO mapping object can be identified, to make it possible to transmit/
receive data to/from the correct object in the device. The default settings for the mapping can be
changed during configuration.
Default PDO Mapping Scheme
The module features a simple default mapping scheme with 4 TPDO’s and 4 RPDO’s.
•
RPDO
RPDO no.
1
2
3
4
5
...
128
•
Default COB IDs
200h + Node ID
300h + Node ID
400h + Node ID
500h + Node ID
80000000h
Mapped to...
Object index 2100h, sub-index 1... 8
Object index 2100h, sub-index 9... 16
Object index 2100h, sub-index 17... 24
Object index 2100h, sub-index 25... 32
Object index 2100h, sub-index 33... 40
...
Object index 2103h, sub-index 121 ... 128
Relating to...
Receive bytes 0... 7
Receive bytes 8...15
Receive bytes 16... 23
Receive bytes 24... 31
Receive bytes 32... 39
...
Receive bytes 504... 511
Mapped to...
Object index 2000h, sub-index 1... 8
Object index 2000h, sub-index 9... 16
Object index 2000h, sub-index 17... 24
Object index 2000h, sub-index 25... 32
Object index 2000h, sub-index 1... 8
...
Object index 2003h, sub-index 121 ... 126
Relating to...
Transmit bytes 0... 7
Transmit bytes 8... 15
Transmit bytes 16... 23
Transmit bytes 24... 31
Transmit bytes 32... 39
...
Transmit bytes 504... 511
Default State
Enabled
Disabled
TPDO
TPDO no.
1
2
3
4
5
...
128
Default COB IDs
180h + Node ID
280h + Node ID
380h + Node ID
480h + Node ID
80000000h
Default State
Enabled
Disabled
For more information on the mapping see “Vendor Specific Objects” on page 40
RPDO Transmission Types
The RPDOs can be received either in synchronous or asynchronous mode. A synchronization (SYNC)
object is transmitted periodically by a synchronization master. The data in synchronous RPDOs are not
transferred to the application until after the next SYNC object is received. Asynchronous RPDOs will
be transferred upon reception.
The transmission type parameter of a RPDO specifies the triggering mode.
Transmission
Mode
type, RDPO
0 - 240
Synchronous
241 - 253
-
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
RPDO transmission description
A received RPDO is transferred to the application after a SYNC object is received.
Reserved
Doc.Id. SCM-1200-083
CANopen Module Specification 30
Transmission
Mode
type, RDPO
254 - 255
Event driven
(Default = 255)
RPDO transmission description
An RPDO is transmitted without out any relation to the SYNC object.
TPDO Transmission Types
The TPDOs can be transmitted either in synchronous or asynchronous mode. A synchronization
(SYNC) object is transmitted periodically by a synchronization master. Synchronous TPDOs are transmitted within a pre-defined time-window immediately after a configured number of SYNC objects, or
after the SYNC object that follows upon a CoS (Change of State event). Asynchronous TPDOs can be
transmitted at any time, triggered by a CoS or a cyclic period set in the Event Timer.
The transmission type parameter of a TPDO specifies the transmission mode as well as the triggering
mode.
Transmission
type, TDPO
0
1 - 240
241 - 253
254 - 255
(Default = 255)
Mode
TPDO transmission description
Synchronous,
acyclic
Synchronous,
cyclic
Event driven
A TPDO is triggered by an event, but not transmitted before the occurrence of a
SYNC object
A TPDO is transmitted with every n-th SYNC object, where n is the defined number
from 1 - 240.
Reserved
A TPDO is transmitted without any relation to the SYNC object. The transmission is
triggered by a CoS event or if a specified time has elapsed without an event.
6.3 LSS Services
LSS master functionality according to CANopen DS305 specification is supported by the module. The
module can configure baud rate and node ID of all slaves that support LSS (i.e. the pre-configured baud
rate and node ID of a slave can be changed by a master). The module can not act as an LSS slave.
An LSS Slave is identified upon its LSS address, that consists of Vendor ID, Product Code, Revision
Number and Serial Number of the LSS slave module. If there is a missing slave on the network after the
boot timeout, the master will initiate the LSS routine, see Network Management Object “Boot Time,
1F89h” on page 40. It will send an identify slave request, using the LSS address of the slave. If one (and
only one) slave responds to this request, the master will set the NodeID on that node to the first missing
NodeID. It will then send a bootup message to the node.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Module Specification 31
6.4 Error Control
Different mechanisms exist to monitor the network. At an error event from any of these, the active I/O
data is frozen, as no new data will be available.
6.4.1 Heartbeat Mechanism1
The Heartbeat Mechanism is used to monitor the nodes in the network and verify that the nodes are
available. A heartbeat producer periodically sends a message. The data part of the frame contains a byte
indicating the node status. The heartbeat consumer reads these messages. If a message fails to arrive
within a certain time limit (defined in the object directory of the devices, objects 1016h and 1017h,
page 33), a heartbeat event is registered by the consumer. The ERROR LED on the front of the Anybus
X-gateway CANopen and the status word will indicate the event. An EMCY object (8130h) is also transmitted on the CANopen fieldbus. If the module is configured as a slave and is in OPERATIONAL state,
it will go to PRE-OPERATIONAL state and wait for the user to take action. If it is in master mode, it
will take action according to the settings in the master objects.
The Anybus X-gateway CANopen can act both as heartbeat consumer and as heartbeat producer.
6.4.2 Node Guarding1
The NMT Master transmits guarding requests. If an NMT Slave has not responded within a defined time
span (node lifetime) or if the communication status of the slave has changed, the master takes appropriate action according to its configuration.
If Life guarding (the slave guards the master) is supported, the slave uses the guard time and lifetime
factor from its Object Dictionary to determine the node lifetime. If the slave does not receive a guarding
request within its lifetime, a node guard event is registered. The ERROR LED on the front of the
Anybus X-gateway CANopen will indicate the event. An EMCY object (8130h) is also transmitted on
the CANopen fieldbus.
If the guard time or the lifetime facter are 0 (default), the Slave does not guard the Master. The guarding
can be initiated at boot-up or later.
Note: If heartbeat is enabled, node guarding is disabled.
6.4.3 Emergency Object (EMCY)
The Emergency Object is used for error reporting on the CANopen network when a fatal fault has occurred. The error codes are saved in a list in the Communication Profile Object 1003h, see page 32 and
a message is produced on the CANopen network. A list of emergency error codes, that can be produced
by the module, is available in “CANopen Emergency Codes” on page 48
1.
The NMT master can only monitor a slave either by heartbeat or by node guarding. Preferrable only one of this mechanisms should
be enabled in the slave. Heartbeat is preferred and if heartbeat is enabled in a slave, any node guarding for that slave is disabled.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Chapter 7
7. CANopen Supported Objects
The following sections describe the CANopen objects, according to DS301 and DS302, implemented
within the module and described in the EDS file.
7.1 Static Data Types
According to DS302.
7.2 Communication Profile Area
7.2.1 DS301 Communication Profile Objects
The table below shows the objects according to CANopen specification DS301 rev. 4.2.
Index Object Name
1000h Device Type
1001h Error register
1003h Pre-defined
error field
1005h COB-ID Sync
1006h Communication Cycle
Period
1007h Synchronous
Window Length
1008h Manufacturer
device name
1009h Manufacturer
hardware version
100Ah Manufacturer
software version
100Ch Guard time
Sub-Index Description
00h
Type of device
00h
Error register, connected to
the EMCY object. Bit 0 indicates a generic error
00h
Number of errors. Writing a 0
to this sub-index clears the
error list.
01h...10h List of errors. Most recent
error at top of list.
00h
ID of the sync message
00h
Communication cycle period
Type
U32
U8
Access Notes
RO
0000 0000h (No profile)
RO
-
U8
RW
U32
RO
U32
U32
RW
RW
Only available if SYNC support
is enabled
00h
Synchronous Window Length U32
RW
00h
The name of the CANopen
module
Manufacturer hardware version
Visible RO
string
Visible RO
string
Only available if SYNC support
is enabled
“Anybus X-gateway CANopen”
00h
Manufacturer software version
Visible RO
string
00h
Used together with “Life time U16
factor” to decide the node lifetime in (ms)
If the node has not been
U8
guarded within its lifetime
(“Life time factor”*”Guard
time”), an error event is
logged and a remote node
error is indicated
00h
100Dh Life time factor 00h
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
See “CANopen Emergency
Codes” on page 48 for emergency error codes.
Current hardware revision
Set by HMS
RW
0000h (default)
RW
00h (default)
Doc.Id. SCM-1200-083
CANopen Supported Objects 33
Index Object Name Sub-Index Description
1010h Store Parame- 00h
Largest sub-index supported
ters
01h
Store all parameters
Type
U8
U32
1011h Restore Param- 00h
eters
01h
Largest sub index supported
Restore all parameters
U8
U32
1014h COB ID EMCY 00h
Defines the COB ID of the
U32
Emergency Object
Largest sub-index supported U8
The consumer heartbeat time U32
defines the expected heartbeat cycle time and has to be
higher than the corresponding producer heartbeat time.
Monitoring starts after the
reception of the first heartbeat. Not used if 0
1016h Consumer
00h
Heartbeat Time 01h - 80h
1017h Producer Heart- 00h
beat Time
1018h Identity object 00h
01h
02h
Access Notes
RO
01h
RW
To save a configuration, write
“save” = 72 61 76 65h to this
object.
See also “General Fieldbus
Parameters” on page 44.
RO
01h
RW
To restore the default values of
a configuration, write “load” =
6C 6F 61 64h to this object..
RO
RO
RW
7Fh
Node ID + Heartbeat Time.
Bits 31-24: reserved
Bits 23-16: Node ID
Bits 15-0: Heartbeat Time
Value must be a multiple of
1ms.
Up to 80 nodes can be monitored.
The time must be at least 10
ms and a multiple of 1 ms
04h
1Bh (HMS Industrial Networks)
18h (Anybus X-gateway CANopen)
Current software revision
HMS serial number
Defines the cycle time of the
heartbeat. Not used if 0
Number of entries
Vendor ID
Product Code
U16
RW
U8
U32
U32
RO
RO
RO
03h
04h
00h
01h
Revision Number
Serial Number
Number of entries
Communication error
U32
U32
U8
U8
RO
RO
RO
RO
02h
Profile or manufacturer specific error
U8
RO
1400h Receive PDO
...
parameter
147Fh
00h
01h
02h
Largest sub-index supported
COB ID used by PDO
Transmission type
U8
U32
U8
RO
RW
RW
1600h Receive PDO
...
mapping
167Fh
00h
No. of mapped application
objects in PDO
Mapped object #1
Mapped object #2
Mapped object #3
Mapped object #4
Mapped object #5
Mapped object #6
Mapped object #7
Mapped object #8
U8
RW
00h: Change to Preoperational
if currently in NMT state Operational
00h: Change to Preoperational
if currently in NMT state Operational
02h
See “RPDO Transmission
Types” on page 28
-
U32
U32
U32
U32
U32
U32
U32
U32
RW
RW
RW
RW
RW
RW
RW
RW
-
1029h Error behavior
object
01h
02h
03h
04h
05h
06h
07h
08h
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 34
Index Object Name
1800h Transmit PDO
...
parameter
187Fh
1A00h Transmit PDO
...
mapping
1A7Fh
Sub-Index
00h
01h
02h
Description
Largest sub-index supported
COB ID used by PDO
Transmission type
Type
U8
U32
U8
Access
RO
RW
RW
03h
05h
00h
Inhibit time
Event Timer (ms)
No. of mapped application
objects in PDO
Mapped object #1
Mapped object #2
Mapped object #3
Mapped object #4
Mapped object #5
Mapped object #6
Mapped object #7
Mapped object #8
U16
U16
U8
RW
RW
RW
Notes
05h
See “TPDO Transmission
Types” on page 30
In steps of 0.1 ms
-
U32
U32
U32
U32
U32
U32
U32
U32
RW
RW
RW
RW
RW
RW
RW
RW
-
01h
02h
03h
04h
05h
06h
07h
08h
7.2.2 Configuration Manager
DS302 part 3: Configuration and program download
Network Configuration Objects
Index Object Name
1F22h Concise DCF
1F25h Configure
Slave
Sub-Index Description
Type
The concise/compressed DCF files informa- Domain
tion is stored in this object.
0 - 128
Sub-index 0 is ignored.
U32a
Sub-index i (i = 1 - 127): Request reconfiguration of slave with Node ID equal to subindex i.
Sub-index 128: Request to reconfigure all
slaves.
Access
RW
Sub 0: RO
Sub 1 - 128: WO
a. To configure the slave with Node ID i, write “conf” = 63 6F 6E 66h to this object (1F25h, sub-index i). If this
fails, an emergency code is produced (6161h, see “CANopen Emergency Codes” on page 48).
Check Configuration
The Configuration Manager (CMT) compares signature and configuration with the value from the DCF
to decide if a reconfiguration is to be performed or not. The comparison values are stored by the Configuration Manager in these objects:
Index
1F26h
1F27h
Object Name Sub-Index Description
Type
Expected
0 - 127
The date that the Configuration Manager expects to find UNIT32
Configuration
when comparing signature and configuration.
Date
Expected
0 - 127
The time that the Configuration Manager expects to find UINT32
Configuration
when comparing signature and configuration.
Time
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Access
RW
RW
Doc.Id. SCM-1200-083
CANopen Supported Objects 35
7.2.3 Network Management Objects
The NMT master controls the states of the connected network participants, the NMT slaves. It monitors the devices and reports to the application, for example if an NMT slave fails. Please refer to the
CANopen specification, see “Related Documents” on page 1. In more complex systems several devices
are able to perform as master, which means that the configuration must have an entry defining which
device will act as master.
Once configured, the objects carry all information needed for the module to act on the network and the
application does not need to be accessed to obtain this information. This results in a substantial reduction of the overall implementation and maintenance effort when implementing multiple applications.
Index Object Name
1F80h NMT Start-up
Sub-Index Description
Defining whether the device is the
NMT Master
1F81h Slave Assign- ARRAY
Module list: Entry of all slaves to
ment
be managed, including guarding
values and the entry of actions to
be taken in event of guarding
errors.
1F82h Request NMT ARRAY
Remote control initiation of NMT
services. For example, tools can
use this to request intentional start/
stop of individual slaves. Remote
query of the current state.
1F83h Request
ARRAY
Remote control start/stop of guardGuarding
ing. Remote query of the current
state
1F84h Device Type
ARRAY
Expected device types for the
Identification
slaves
1F85h Vendor Identifi- ARRAY
Vendor identifications for the
cation
slaves
1F86h Product Code ARRAY
Product codes for the slaves
Type
U32
Access
RW
U32
Sub 0: RO
Sub 1 - 127: RW
U8
Sub 0: RO
Sub 1 - 127: RW
Sub 128: WO
U8
1F87h Revision
ARRAY
Number
1F88h Serial Number ARRAY
U32
Sub 0: RO
Sub 1 - 127: RW
Sub 128: WO
Sub 0: RO
Sub 1 - 127: RW
Sub 0: RO
Sub 1 - 127: RW
Sub 0: RO
Sub 1 - 127: RW
Sub 0: RO
Sub 1 - 127: RW
Sub 0: RO
Sub 1 - 127: RW
RW
1F89h Boot Time
VAR
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Revision numbers for the slaves
U32
U32
U32
Expected serial numbers for the
U32
slaves
The maximum time between the U32
start of the boot process and the
signaling of succesful boot of all
mandatory NMT slaves. After this
time LSS services are initiated.
Doc.Id. SCM-1200-083
CANopen Supported Objects 36
NMT Start-up, 1F80h
If a device is to be set up as NMT Master, the master functionality must be enabled in this object. It
configures the start-up behavior of the device, and how it will manage the slaves.
Note: The Anybus X-gateway CANopen starts up as a slave (bit 0 = 0). For the module to perform as
a master, change the value of this bit during configuration and save it to non-volatile flash memory by
issuing “save” command to sub-index 01h in object 1010 (Store Parameters). The setting will take immediate effect, but if not saved, it will be lost at reset or repower.
Bit No.
0
Value
0
1
1
0
1
2
0
1
3
0
1
4
0
1
5
6
0
1
7 - 31
-
Description
NMT Master functionality is disabled. Ignore the rest of the
object, except for bits 1 and 3. Ignore object 1F81h.
NMT Master functionality is enabled. The device is Master
Start only explicitly assigned slaves (if bit 3 = 0)
After boot-up, perform the service NMT Start Remote Node
All Nodes (if bit 3 = 0)
Automatically enter Operational state
Do not enter Operational state automatically. Application will
decide when to enter Operational state
Start-up of slaves allowed (i.e. allowed to send NMT Start
Remote Node command)
Not allowed to send NMT Start Remote Node command. The
application will start the slaves
If a mandatory slave generates an Error Control Event, treat
the slave individually
If a mandatory slave generates an Error Control Event, perform NMT Reset All Nodes (including self)
Notes
Default
Default
Default
Default
If bit 6 = 1, ignore bit 4
If object 1F81h, bit 3 = 1, the
network must not be restarted,
if a mandatory slave could not
be contacted.
Not implemented
If a mandatory slave generates an Error Control Event, treat
the slave according to bit 4
If a mandatory slave generates an Error Control Event, send
NMT Stop All Nodes (including self). Ignore bit 4
Reserved (0)
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 37
Slave Assignment, 1F81h
This object defines which slaves the Master should monitor, control and/or configure. One entry is
made for each assigned slave, with the sub-index corresponding to the slave’s Node ID.
Bit No
0
1
2
Value
0
1
0
1
3
0
1
4
5
6
7
0
1
-
8 - 15
16 - 31
Description
Node with this ID is not a slave
Node with this ID is a slave. After configuration the node will be set to Operational
Reserved
On an Error Control Event or on detection of a new slave, inform the application, but do NOT configure and start the slave
On an Error Control Event or on detection of a new slave, inform the application and start the
process “Start Boot Slave”
Optional slave. The network may be started even if this node could not be contacted.
Mandatory slave. The network must not be started if this node could not be contacted during the
boot slave process
Not implemented
Not implemented
Not implemented
CANopen device may be used without reset to default
CANopen device shall be reset to factory defaults by issuing a restore to defaults (object 1011h).
8 bit value for the RetryFactor
16 bit value for the GuardTime
If a slave does not answer, the master will retry the request RetryFactor-1 times with an interval of
GuardTime. Guarding will be performed only if non-zero values are entered for Retry Factor and
GuardTime.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 38
Request NMT, 1F82h
Each node on the CANopen network can be controlled individually from the fieldbus application by
sending this object. The sub-index indicates what nodes the request affects:
Sub-Index
0
i (with i = 1...127)
128
Description
Largest sub-index supported (128)
Request NMT Service for the slave with Node ID i.
Request NMT Service for all nodes
The desired state is given as a numeric value when writing to or reading from the local object dictionary:
Value
4
5
6
7
127
State
READY
OPERATIONAL
RESET NODE
RESET COMMUNICATION
PRE-OPERATIONAL
The entire network can be started with one command (sub-index 128)
Examples
•
Node 5 should be transferred to the OPERATIONAL state:
An SDO write access with the value 5 is executed to object 1F82h sub-index 5 in the local object
dictionary. When an NMT command is sent, data is cleared.
•
All the nodes in the network should be transferred to the PRE-OPERATIONAL state:
An SDO write access with the value 127 is executed to object 1F82h sub-index 128 in the local
object dictionary.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 39
Request Guarding, 1F83h
Guarding can be initiated from the object dictionary in a similar way. Guarding is initiated with the values
stored in “Slave Assignment, 1F81h” on page 37, provided that at the same time no parameters are entered for that node as a Heartbeat Consumer
Note: This functionality is only supported in master mode.
Sub-Index
0
i (with i = 1...127)
128
Value
1
0
Description
Largest sub-index supported (128)
Request Guarding for the slave with Node ID i
Request Start/Stop Guarding for all nodes.
Write access
Start guarding
Stop guarding
Access
RO
RW
WO
Read access
Slave is guarded
Slave is not guarded
Example:
•
Guarding should be started for node 5 (500 ms, Life Time Factor 3):
An SDO write access with the value 01F40301h is executed to object 1F81h sub-index 5 in the
local object dictionary. Guarding is activated by an SDO write access with the value 1 to object
1F83h sub-index 5 in the local object dictionary.
Bits
31 - 16
15 - 8
Value
01F4h (500)
03h
7-0
01h
Explanation
The interval with which node 5 will be guarded
If node 5 does not answer the guarding will be repeated another
RetryFactor -1 times (in this case twice)
This value indicates that node 5 is a slave
Device Type Identification, 1F84h
Each node on the CANopen network is checked against its expected device type. The sub-index indicates which node is checked:
Sub-Index
0
i (with i = 1...127)
Description
Largest sub-index supported (127)
If the expected device type is not 0 or if the slave is set as mandatory, the module compares
expected device type with actual device type (object 1000h, sub-index 0) for the slave with
Node ID i. If the expected device type is 0, this only gives information about the existence of a
node, not which device type it is. If the value is not 0, it is compared to the value read from the
node, and boot up of that slave is continued if they match. If they don’t match, the slave will
stay in state PRE-OPERATIONAL.
Vendor Identification, 1F85h
Each node on the CANopen network is checked against its expected vendor. The sub-index indicates
which node is checked:
Sub-Index
0
i (with i = 1...127)
Description
Largest sub-index supported (127)
Compares expected vendor with actual vendor (object 1018h, sub-index 1) for the slave with
Node ID i. Boot up of that slave is continued only if they match. If they don’t match, the slave
will stay in state PRE-OPERATIONAL.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 40
Product Code, 1F86h
Each node on the CANopen network is checked against its expected product code. The sub-index indicates which node is checked. The node in question is only checked if data is other than zero:
Sub-Index
0
i (with i = 1...127)
Description
Largest sub-index supported (127)
Compares expected product code with actual product code (object 1018h, sub-index 2) for the
slave with Node ID i. Boot up of that slave is continued only if they match. If they don’t match,
the slave will stay in state PRE-OPERATIONAL.
Revision Number, 1F87h
Each node on the CANopen network is checked against its expected revision number. The revision
number includes major and minor revision. For a match to occur the major revision has to be exactly
the same and the minor revision of the module has to be greater than or equal to the expected minor
revision number. The sub-index indicates which node is checked. The node in question is only checked
if data is other than zero:
Sub-Index
0
i (with i = 1...127)
Description
Largest sub index supported (127)
Compares expected revision number with actual revision number (object 1018h, sub-index 3)
for the slave with Node ID i. Boot up of that slave is continued only if they match according to
the description above.
Serial Number, 1F88h
Each node on the CANopen network is checked against its expected serial number. The sub-index indicates which node is checked. The node in question is only checked if data is other than zero:
Sub-Index
0
i (with i = 1...127)
Description
Largest sub-index supported (127)
Compares expected serial number with actual serial number (object 1018h, sub-index 4) for
the slave with Node ID i. Boot up of that slave is continued only if they match. If they don’t
match, the slave will stay in state PRE-OPERATIONAL.
Boot Time, 1F89h
The network master will wait the assigned time (in ms) for all mandatory slaves to boot. If not all mandatory slaves are ready after this time, the LSS routine will be started, see “LSS Services” on page 30. If
the assigned time is 0, the master will wait endlessly.
Value (ms)
0
>0
Description
Default. No time limit for mandatory slaves to boot
Time limit for mandatory slave to boot
7.3 Vendor Specific Objects
Vendor specific objects are used to configure the PDOs to the shared memory area. One or several generic data object are connected to each PDO. This is configured during the configuration phase.
Application data bytes 0 and 1 are used for control and status words.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 41
7.3.1 Transmit Buffer
Index
2000h
2001h
2002h
2003h
2010h
2011h
2020h
Sub-index
0
1
2
...
128
0
1
2
...
128
0
1
2
...
128
0
1
2
...
126
0
1
2
...
128
0
1
2
...
128
0
1
2
...
127
Type
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U16
U16
...
U16
STRUCT
U8
U16
U16
...
U16
STRUCT
U8
U32
U32
...
U32
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Access
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
Name and Description
Transmit Byte 2-129 area
128
Transmit Byte 2
Transmit Byte 3
...
Transmit Byte 129
Transmit Byte 130-257 area
128
Transmit Byte 130
Transmit Byte 131
...
Transmit Byte 257
Transmit Byte 258-385 area
128
Transmit Byte 258
Transmit Byte 259
...
Transmit Byte 385
Transmit Byte 386-511 area
126
Transmit Byte 386
Transmit Byte 387
...
Transmit Byte 511
Transmit Word 2-129 area
128
Transmit Word 2
Transmit Word 3
...
Transmit Word 129
Transmit Word 130-256 area
127
Transmit Word 130
Transmit Word 131
...
Transmit Word 256
Transmit Long 2-128 area
127
Transmit Long 2
Transmit Long 3
...
Transmit Long 128
Doc.Id. SCM-1200-083
CANopen Supported Objects 42
7.3.2 Receive Buffer
Index
2100h
2101h
2102h
2103h
2110h
2111h
2120h
Sub-index
0
1
2
...
128
0
1
2
...
128
0
1
2
...
128
0
1
2
...
126
0
1
2
...
128
0
1
2
...
127
0
1
2
...
127
Type
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U8
U8
...
U8
STRUCT
U8
U16
U16
...
U16
STRUCT
U8
U16
U16
...
U16
STRUCT
U8
U32
U32
...
U32
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Access
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
RO
RW
RW
...
RW
Name and Description
Receive Byte 2-129 area
128
Receive Byte 2
Receive Byte 3
...
Receive Byte 129
Receive Byte 130-257 area
128
Receive Byte 130
Receive Byte 131
...
Receive Byte 257
Receive Byte 258-385 area
128
Receive Byte 258
Receive Byte 259
...
Receive Byte 385
Receive Byte 386-511 area
126
Receive Byte 386
Receive Byte 387
...
Receive Byte 511
Receive Word 2-129 area
128
Receive Word 2
Receive Word 3
...
Receive Word 129
Receive Word 130-256 area
127
Receive Word 130
Receive Word 131
...
Receive Word 256
Receive Long 2-128 area
127
Receive Long 2
Receive Long 3
...
Receive Long 128
Doc.Id. SCM-1200-083
CANopen Supported Objects 43
7.3.3 I/O Buffer Addresses and Object Dictionary Indices Relation
The application data bytes 2 - 512 are mapped to three different areas in the Local Object Dictionary.
The same data is mapped to each area, but in different data types. For example: byte to index 2000h, to
2010h, sub-index 1 - 128 and double-word (long) to index 2020h, sub-index 1 - 128. Data from CANopen to the application are handled similarly, but with indices starting at 2100h.
Word object
Index, sub-index
Byte object
Index, sub-index
Transmit data area
Byte 0 - 1
Control
Byte 2 - 9
Byte 2
2000h, 1
Byte 10 - 17
Byte 3
2000h, 2
Byte 18 - 25
Byte 4
2000h, 3
Byte 26 - 33
Byte 5
2000h, 4
Byte 44 - 41
Byte 6
2000h, 5
Byte 7
2000h, 6
Byte 8
2000h, 7
Byte 9
2000h, 8
Byte 10
2000h, 9
Byte 11
2000h, 10
Byte 12
2000h, 11
Byte 13
2000h, 12
Byte 14
2000h, 13
Byte 15
2000h, 14
Byte 16
2000h, 15
Byte 17
2000h, 16
Byte 18
2000h, 17
Byte 19
2000h, 18
Byte 20
2000h, 19
Byte 21
2000h, 20
Byte 22
2000h, 21
Byte 23
2000h, 22
Byte 24
2000h, 23
Byte 25
2000h, 24
Byte 26
2000h, 25
Byte 27
2000h, 26
Byte 28
2000h, 27
Byte 29
2000h, 28
Byte 30
2000h, 29
Byte 31
2000h, 30
Byte 32
2000h, 31
Byte 33
2000h, 32
Byte 464 - 471
Byte 472
2003h, 83
Byte 472 - 479
Byte 473
2003h, 84
Byte 480 - 487
Byte 474
2003h, 85
Byte 488 - 495
Byte 475
2003h, 86
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Long object
Index, sub-index
2010h, 1
2010h, 2
}
2020h, 1
}
2020h, 2
}
2020h, 3
}
2020h, 4
}
2020h, 5
}
2020h, 6
}
2020h, 7
}
2020h, 8
}
2020h, 119
}
2020h, 126
}
2020h, 127*
2010h, 3
2010h, 4
2010h, 5
2010h, 6
2010h, 7
2010h, 8
2010h, 9
2010h, 10
2010h, 11
2010h, 12
2010h, 13
2010h, 14
2010h, 15
2010h, 16
2011h, 111
2011h, 112
Byte 496 - 503
Byte 504 - 511
Byte 506
2003h, 121
Byte 507
2003h, 122
Byte 508
2003h, 123
Byte 509
2003h, 124
Byte 510
2003h, 125
Byte 511
2003h, 126
}
}
}
2011h, 125
2011h, 126
2011h, 127
*The last two bytes are filled up with zeroes
Note: The picture shows the Transmit data area. The Receive data area has the same structure, but with
indices for byte objects starting at 2100h
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Supported Objects 44
7.3.4 General Fieldbus Parameters
Index range 3000h-300Fh is allocated for general fieldbus parameters
Index
3000h
Sub-Index
0
Type
U16
3001h
0
U16
Access Name and Description
Comment
RW
Input Data Size (size to EtherNet/IP) Valid values: 2-512a, default 16
RW
Output Data Size (size from Ether- Valid values: 2-512b, default 16
Net/IP)
a. The first two bytes of the I/O input area is occupied by the Control Word. The rest is object byte 1 to 510 on the
CANopen sub network side (see “I/O Buffer Addresses and Object Dictionary Indices Relation” on page 43 for
further information. Also note that the valid data range may differ depending on the slave interface.
b. The first two bytes of the I/O output area is occupied by the Status Word. The rest is object byte 1 to 510 on the
CANopen side (see “I/O Buffer Addresses and Object Dictionary Indices Relation” on page 43 for further information. Also note that the valid data range may differ depending on the slave interface.
Note: Writing to object 1010h (Store Parameters, see page 33), will verify the input/output data sizes,
stored in these objects, against the current fieldbus limitiations. If the data sizes do not comply, an error
will be generated (error code 6600h, see “CANopen Emergency Codes” on page 48).
7.3.5 EtherNet/IP Specific Parameters
Index range 3070h-307Fh is allocated for EtherNet/IP specific parameters. For this version of the module, they are not used and the index range is reserved for future use.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Appendix A
A. Technical Specification
A.1 Protective Earth (PE) Requirements
The product must be connected to protective earth (PE) via the DIN-rail connector in order to achieve
proper EMC behavior.
HMS Industrial Networks does not guarantee proper EMC behavior unless these PE requirements are
fulfilled.
A.2 Power Supply
Supply Voltage
The gateway requires a regulated 24 V±10% DC power source.
Power Consumption
The maximum power consumption is 150 mA at 24 V.
A.3 Environmental Specification
A.3.1 Temperature
Operating
-25º to +55º Celsius
(Test performed according to IEC-60068-2-1 and IEC 60068-2-2.)
Non Operating
-40º to +85º degrees Celsius
(Test performed according to IEC-60068-2-1 and IEC 60068-2-2.)
A.3.2 Relative Humidity
The product is designed for a relative humidity of 5 to 95% non-condensing.
Test performed according to IEC 60068-2-30.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Technical Specification 46
A.4 EMC (CE) Compliance
EMC compliance testing has been conducted according to the Electromagnetic Compatibility Directive
2004/108/EC. For more information please consult the EMC compliance document, see product/support pages for Anybus X-gateway CANopen to EtherNet/IP at www.anybus.com.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Appendix B
B. Status LED Timing Diagrams
The LEDs on the front of the module change their behavior according to the status of the module. This
appendix gives the timing diagrams for the different indications, described in “Status LEDs” on page 10.
50 ms
On
Flickering
LED
Off
50 ms
On
Blinking
LED
200 ms
200 ms
Off
On
Single flash
LED
200 ms
1000 ms
Off
On
Double flash
LED
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
200 ms
1000 ms
Off
On
Triple flash
LED
1000 ms
Off
On
Quadruple flash
LED
200 ms
200 ms
1000 ms
Off
When LSS services are in progress, both the ERR LED (red) and the RUN LED (green) are flickering.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Appendix C
C. CANopen Emergency Codes
Below is a list of the CANopen emergency codes that can be produced by the Anybus X-gateway CANopen. The error codes, that have been produced, can be read from the list in the Communication Profile
Object at index 1003h, see page 32.
Error Code
0000h
6161h
6600h
8110h
8120h
8130h
8140h
8210h
8220h
FF10h
Description
Error reset or no error.
Software error, only valid in master mode. For additional information, see table
below.
Hardware error
CAN overrun (objects lost).
CAN in error passive mode.
Life guard error or heartbeat error.
Recovered from bus off.
PDO not processed due to length error.
PDO length exceeded.
(Only valid in slave mode)
The control word has been set to no longer allow the module to enter OPERATIONAL state, but the subnetwork is in OPERATIONAL state
or
a CANopen master attempts to set the module in OPERATIONAL state, while
the control word is set not to allow OPERATIONAL state.
These codes conform to the CANopen standard.
Software error codes (6161h)
When an emergency code 6161h is produced, additional information is stored in the Communication
Profile Object, index 1003h.
31
16 15
Additional Information
Error Code
Node Id (if available)
Error code
00h
01h
02h
03h
04h
05h
06h
07h
08h
0
Emergency error code
61h
61h
Description
No software error detected.
Tag for CMT record not available.
Cache management inconsistent.
SDO could not be transmitted.
Configuration entry inconsistent.
Check sum error.
Data could not be written to non volatile memory.
SDO timeout.
SDO error.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Appendix D
D. CANopen Configuration Example
D.1 Configuration Example
This section includes an example of how to configure the CANopen network interface of the Anybus
X-gateway CANopen using the CANopen Configuration Manager from PORT1. Other configuration
tools are available and can of course be used instead. The module is configured as a master in the example.
By default the module is configured as a CANopen slave with 16 byte input and 16 byte output data,
that can be transferred between the CANopen network and the EtherNet/IP network. To configure the
module as master and change the input and output data sizes, follow the steps below.
Step 1. Baud Rate and Node Address
Baud rate and node address are set using the rotary switches on the side of the module, see “Configuration Switches” on page 13.
Step 2. Set Module in Master Mode
To change to master mode, bit 0 in CANopen object 1F80h (see “NMT Start-up, 1F80h” on page 36)
has to be set and saved during CANopen configuration. Using the CANopen Configurator from PORT,
this is done as follows:
1. Open program and select network info. Set the baud rate to match the baud rate set by the configuration switches on the module. Set Sync Interval (if used). Set Reset Timeout to the longest reset
time for any node in hte network.
1.
Available for download at www.anybus.com. This version can only be used for products from HMS Industrial Networks.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Configuration Example 50
2. Right click on group and select “Add new node”
3. Open group. Right click on the new node and select “Load EDS file”. Select the EDS file for
Anybus X-gateway CANopen “EDS_X_GATEWAY_COPM_V_x_yy.eds” and press OPEN
(x_yy for correct version):
4. Select tab “Mask”.Then select “Device is master”, which enables you to set “Device is NMT
master” in CANopen object 1F80. The module will now be in master mode once the confguration
is finished.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Configuration Example 51
Step 3. Input and Output Data Size
To change the input size, i.e. the amount of data that is transferred out on the CANopen network from
the other fieldbus, the CANopen object 3000h has to be changed and saved during CANopen configuration. To change the output size, i.e. the amount of data that is transferred from the CANopen network
to the other fieldbus, the CANopen object 3001h has to be changed and saved. This is done in the example below using the CANopen Configurator from PORT. Another configuration tool can of course
be used.
1. To set Input Size, select tab “Objects” and click on object 3000 in the list. You can see that the
default value is 10h (16 decimal). Enter a new value in the box “Parameter Value” and press the buton “Change Parameter Value in DCF File”. The value is downloaded and stored in the concise DCF
file of the module during configuration.
2. Repeat for output data, but select object 3001h in the list.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
CANopen Configuration Example 52
Step 4. Add Nodes
Select other nodes, configure them as CANopen slaves and save the project.
Step 5. Download the Configuration
When all nodes have been configured (CANopen behavior under tab “Mask”, data mapping under tab
“Table” and PDO configuration under tab “List”), save the project again and download the configuration to the network. All modules have to be connected to the CANopen dongle and be in PRE-OPERATIONAL state. The configuration is saved in non volatile flash memory by writing “save” to the
CANopen object 1010h (performed by the CANopen Configurator)..
For more information about the CANopen Configurator from PORT, please consult the manual for this
product.
Note: When the configuration of the CANopen network interface is finished, restart the Anybus Xgateway CANopen module, to ensure that the correct I/O data input and output sizes are set for the
EtherNet/IP interface.
Anybus X-gateway CANopen - EtherNet/IP
Doc.Rev. 1.00
Doc.Id. SCM-1200-083
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement