Devicenet
Devicenet
Devicenet
Behind each and every benefit realized in a new prioritization. DeviceNet systems can be
control system is a significant software configured to operate in a master-slave or a
engineering investment designed to deliver distributed control architecture using peer-to-
increased productivity through improved peer communication. DeviceNet systems offer a
process control and information flow. By single point of connection for configuration and
choosing DeviceNet™ products from ODVA’s control by supporting both I/O and explicit
member companies, users can protect this messaging. DeviceNet also has the unique
investment in several ways. feature of having power on the network. This
First, DeviceNet is a proven, stable network allows devices with limited power requirements
technology designed to meet the performance to be powered directly from the network,
and reliability requirements of the industrial reducing connection points and physical size.
environment. DeviceNet uses CAN (Controller DeviceNet follows the Open Systems
Area Network) for its data link layer, and CIP™ Interconnection (OSI) model, an ISO standard for
(Common Industrial Protocol) for the upper-
Network Size Up to 64 nodes
layers of the network, DeviceNet is an open
Network Selectable end-to-end network distance
standard managed by ODVA and accepted by Length varies with speed
international standards bodies around the world.
125 Kbps 500 m (1,640 ft)
In addition, users will appreciate the seamless 250 Kbps 250 m (820 ft)
bridging and routing provided by DeviceNet to 500 Kbps 100 m (328 ft)
other CIP-based networks which currently Data Packets 0-8 bytes
include EtherNet/IP™ and ControlNet™. Bus Linear (trunkline/dropline); power and
Second, DeviceNet is supported by vendors Topology signal on the same network cable
around the world. Over 700 Vendor IDs have Bus Peer-to-Peer with Multi-Cast (one-to-many);
been issued by ODVA. The fact that so many Addressing Multi-Master and Master/Slave special case;
polled or change-of-state (exception-based)
vendors have chosen to implement DeviceNet in
System Removal and replacement of devices from
their products allows users to employ best-in-
Features the network under power
class products from vendors around the world
who are best suited to support them based on Table 1: Summary of DeviceNet Features and Functionality
application expertise and geographic coverage.
network communications that is hierarchical in
Third, DeviceNet CONFORMANCE TESTED® nature. Networks that follow this model define all
products have been certified by ODVA to conform necessary functions from the physical
to the specification and operate in open, multi- implementation up to the protocol and
vendor systems by having passed conformance methodology to communicate control and
testing at one of ODVA’s authorized conformance information data within and across networks.
test service providers and having received an
official Declaration of Conformity from ODVA.
Here’s a look at the technology behind every The Physical Layer
DeviceNet product. DeviceNet uses a trunk-line/drop-line topology that
provides separate twisted pair busses for both
signal and power distribution. The possible
Introduction variants of this topology are shown in Figure 1.
DeviceNet is a digital, multi-drop network that Thick or thin cable can be used for either
connects and serves as a communication trunklines or droplines. End-to-end network
network between industrial controllers and I/O length varies with data rate and cable thickness
devices. Each device and/or controller is a node as shown in Table 2.
on the network. DeviceNet is a producer-
consumer network that supports multiple
communication hierarchies and message
Figure 1: Thick or Thin Cable can be used for either trunklines or droplines
DeviceNet supports both isolated and non-isolated physical layer design of devices. An opto-isolated
design option allows externally powered devices (e.g. AC Drives starters and solenoid valves) to share
the same bus cable. The DeviceNet Specifications contain additional information concerning
component requirements, protection from mis-wiring, and examples.
Table 2: The end-to-end network distance varies with data rate and cable thickness.
Several different connector types can be used on DeviceNet (see Figure 2). Both sealed and unsealed
connectors are available. Large (mini-style) and small (micro-style) sizes of pluggable, sealed connectors
are available. For products that do not require sealed connectors, open-style connectors can be used.
Screw or clamp connections can be made directly to the cable if a pluggable connection is not required.
Nodes can be removed or inserted from the network without powering-down the network. A unique
feature of DeviceNet is the ability to add power taps at any point on the network. This makes redundant
power supplies possible. The trunkline current rating is 8 amps.
The Network and Transport Layers would be the destination for Cyclic or Change-of-
DeviceNet requires that a connection with a State messages. Similarly, some connections in
device must first be established in order to either a Client or Server may only produce
exchange information with that device. To messages. These connections would be the
establish a connection, each DeviceNet product source for Cyclic or Changes-of-State messages.
will implement either an Unconnected Message The use of Cyclic and Change-of-State
Manager (UCMM) or a Group 2 Unconnected connections can substantially reduce bandwidth
Port. Both perform their function by reserving requirements. By design, nodes in a DeviceNet
some of the available CAN identifiers. When system are responsible for managing their own
either the UCMM or the Group 2 Unconnected identifiers. These identifiers are interleaved
Port is used to establish an Explicit Messaging (distributed) throughout the entire range. All
Connection, that connection is then used to nodes have a full range of message priorities
move information from one node to the other, or available to them regardless of their Media
to establish additional I/O Connections. Once Access Code Identifier (MAC ID). Through the
I/O connections have been established, I/O data duplicate MAC ID algorithm, the uniqueness of
may be moved among devices on the network. CAN identifiers is guaranteed without the need
At this point, all the protocol of the DeviceNet for a central tool or record for each network.
I/O message is contained within the 11-bit CAN Figure 4 shows the DeviceNet allocations within
identifier. Everything else is data. the 11-bit CAN Identifier.
The 11-bit CAN identifier is used to define the A related issue is detection of duplicate nodes.
connection ID. Uniqueness of connection IDs is Because DeviceNet uses a device address inside
strictly controlled, which is required to take full the CAN Identifier Field, it presents a mechanism
advantage of producer-consumer capabilities. for detecting nodes with duplicate addresses.
DeviceNet divides the 11-bit CAN identifier into Preventing duplicate addresses is better than
four groups. The first three defined groups trying to locate them after they occur —
contain two fields; one 6-bit field for MAC ID and something not taken into account in other CAN-
the other for Message ID. The combined fields based networks. Another key benefit to nodes
define the connection ID. Four messages are managing their identifiers is that a user can add
used for offline communications. and delete nodes and/or add additional peer-to-
Devices may be Clients or Servers or both. peer messages among existing nodes at any time
Clients and Servers may be producers, without having knowledge of the existing set-up.
consumers or both. In a typical Client device, its No centralized record must be located or
connection would produce requests and reconstructed. Since nodes know which IDs are
consume responses. In a typical Server device, already in use, a tool simply has to request an
its connections would consume requests and I/O connection be added between the two
produce responses. DeviceNet provides for devices, specifying priority level, the data path
several variations on this model. Some (class, instance, attribute) and the production
connections in either a Client or a Server may trigger (cyclic, poll, or change-of-state).
only consume messages. These connections
The Upper Layers: the Common For a given device type, a minimum set of
Industrial Protocol (CIP) common objects will be implemented. The user
benefits from interoperability among devices
DeviceNet uses the Common Industrial Protocol,
regardless of the manufacturer or the device type.
called CIP, for its upper-layers. CIP is strictly
object oriented. Each object has attributes (data) Since CIP-based networks are based on a
and services (commands) and behavior (reaction common application layer, the application data
to events). Two different types of objects are remains the same regardless of which network
defined in the CIP specification: communication hosts the device. The application programmer
objects and application-specific objects. Vendor- doesn’t even need to know to which network a
specific objects can also be defined by product device is connected. Figure 5 provides an
makers for situations where a product requires overview of CIP within the context of DeviceNet
functionality that is not in the specification. and the OSI Model.
CIP also defines device profiles, which identifies DeviceNet also has standard mechanisms for
the minimum set of objects, configuration vendors to incorporate their own features
options and the I/O data formats for different (objects, attributes, services beyond those
types of devices. Devices that follow one of the defined in the device profile) into their products
standard profiles will have the same I/O data and in addition to the minimum required objects.
configuration options, will respond to all the However, these additional features must be
same commands and will have the same implemented in strict accordance with the
behavior as other devices that follow that same DeviceNet specification in the manner
profile. A subset of the device profiles supported prescribed by the specification.
by CIP and DeviceNet are shown in Table 3. Another important feature that sets CIP-based
networks apart from other network architectures
Device Profile Device Type No. is the ability to originate a message on one CIP-
02hex based network such as DeviceNet, and then pass
AC Drives
it to another CIP-based network such as
Communications Adapter 0Chex
EtherNet/IP with no presentation at the
Contactor 15hex application layer. This seamless bridging and
DC Drives 13hex routing capability sets DeviceNet apart from
1Fhex
other field bus networks. It means that a set of
DC Power Generator objects included in the specification define the
General Purpose Discrete I/O 07hex mechanisms that a bridging device can use to
Generic Device 00hex forward the contents of a message from one
18hex network port to another without acting on the
Human-Machine Interface
contents of that message. When using bridging
Inductive Proximity Switch 05hex
devices that support these objects, the user’s
Limit Switch 04hex only responsibility is to describe the path that a
Mass Flow Controller 1Ahex message must follow. CIP ensures that the
message is handled correctly, independent of the
Motor Overload 03hex
networks involved.
Motor Starter 16hex
CIP is a producer/consumer-based model, rather
Photoelectric Sensor 06hex than a traditional source/destination model.
Pneumatic Valve(s) 1Bhex Producer-Consumer networks provide for more
10hex efficient use of networking bandwidth, A message
Position Controller
is produced onto the network, it is identified, not
Process Control Valve 1Dhex
by its destination address, but by connection ID.
Residual Gas Analyzer 1Ehex Multiple nodes may then consume the data to
Resolver 09hex which this connection ID refers. The result of
this dynamic connection approach provides two
Table 3: Device Types Supported by DeviceNet and CIP clear benefits in the efficiency of the network:
• If a node wants to receive data, it only needs
to ask for it once to consume the data each
time it is produced.
• If a second (third, fourth, etc.) node wants
the same data, all it needs to know is the
connection ID to receive the same data
simultaneously with all other nodes.
The Predefined Master/Slave Connection Set The Predefined Master/Slave Connection Set
Fundamentally, DeviceNet employs a peer-to-peer provides connection objects that are almost
messaging model. However, it also provides for a entirely configured at the time the device
simplified communication scheme based on a powers-up. After powering up the network, the
Master/Slave relationship. This predefined only remaining step necessary to begin the flow
connection scheme is known as the Predefined of data is for a “master” device to claim
Master/Slave Connection Set. This connection ownership of this predefined connection set
method simplifies the movement of the I/O within its “slave(s).” Slave devices can produce
messages most often used in control applications. data using one or more of the following message
types, depending on how the device is
Many sensors and actuators are designed to configured and the requirements of the
perform some predetermined function in which application, as shown in Table 4.
the type and amount of data the device will
produce and/or consume is known at power-up.
Once a product passes the appropriate conformance tests, ODVA grants the vendor the right to use its
conformance marks. A list <www.odva.org/10_2/04_products/04_prodtest.htm> of conformance-passed
products also appears on the ODVA web site. Users who wish to specify only products that have passed
conformance tests can find them listed online or identify them by these product marks.
www.odva.org
odva@odva.org
DeviceNet™ and CIP™ are trademarks of ODVA. DeviceNet CONFORMANCE TESTED® is a registered certification mark of
ODVA. EtherNet/IP™ is a trademark used under license by ODVA. ControlNet™ is a trademark of ControlNet International.
PUB00026R1
8 ©copyright 2004, Open DeviceNet™ Vendor Association, Inc., (ODVA)