DeviceNet
From Wikipedia, the free encyclopedia
DeviceNet is a network system used in the automation industry to interconnect control devices for
data exchange. It uses Controller Area Network as the backbone technology and defines an
application layer to cover a range of device profiles. Typical applications include information
[1][2]
exchange, safety devices, and large I/O control networks.
Contents
[hide]
1 History
2 Technical Snapshot
3 Architecture
4 Conformance Test
o 4.1 Conformance Test Procedure
5 See also
6 External links
7 Sources
[edit]History
DeviceNet was originally developed by American company Allen-Bradley (now owned by Rockwell
Automation). It is layered on top of the CAN (Controller Area Network) technology, developed by
Bosch.[3] DeviceNet adapts the technology from ControlNet, which is another industrial protocol
developed by Allen-Bradley, and takes advantage of CAN, making it low-cost and robust compared
to the traditional RS-485 based protocols.
In order to promote the use of DeviceNet worldwide, Rockwell Automation has adopted the "open"
concept and decided to share the technology to third party vendors. Hence, it is now managed by
the Open DeviceNet Vendors Association (ODVA), an independent organization located in North
America. ODVA maintains specifications of DeviceNet and oversees advances to DeviceNet. In
addition, ODVA ensures compliance to DeviceNet standards by providing conformance testing and
vendor conformity.[3]
ODVA later decided to bring DeviceNet back to its predecessor's umbrella and collectively call the
technology as Common Industrial Protocol or (CIP), which includes the following technologies:
EtherNet/IP (take note of the capital 'N', and "IP" here means "Industrial Protocol")
ControlNet
DeviceNet
CompoNet
ODVA claims high integrity between the three technologies due to the common protocol adaptation,
which makes industrial controls much simpler compared to other technologies.
[edit]Technical Snapshot
1. Defines the Media, Physical, Data-Link, and Application layers of the ISO/OSI 7-layer model
(see Open Systems Interconnection)
2. Incorporates trunkline topology with separate buses for signal and power (Typical
configuration: two twisted pairs and a single shield)
3. Baudrates defined: 125 kbit/s, 250 kbit/s, and 500 kbit/s
4. Trunk length is inversely proportional to the speed, i.e. 500, 250 and 100 meters respectively
5. A not-so new flat cable was added to the specification to allow the use of the quick-fix
connector
6. Up to 64 nodes on a single logical network. (Node addresses range from 0 - 63)
7. Supports master/slave as well as peer-to-peer communication, although majority of the
devices work in the master/slave configuration
8. Allows multiple masters on a single logical network
9. Network cable can supply device power along same cable as communication cable
(Generally smaller devices such as photo-eyes, limit switches, and proximity switches).
10. Networked devices can be simultaneously controlled and configured
11. Engineered to withstand noisy environments
References [2][4]
[edit]Architecture
Physical Layer
Nodes are distributed along a DeviceNet network by the means of a trunkline-dropline topology. This
topology allows for ease in wiring and access to the network from multiple taps. In addition, nodes
can be easily removed and added to reduce production downtime, increase network flexibility, and
decrease troubleshooting time. Since the physical layer is optically isolated from device,
communication power and device power can share the same bus (Further reducing the complexity of
the network and components within). ( Introduction[5])
DeviceNet supports 125 kbit/s, 250 kbit/s and 500 kbit/s data rates. Depending on the chosen cable
type, DeviceNet can support communication up to 500 meters (Round thick cable). Typical round
cable supports up to 100 meters. While flat style cable supports up to 380 meters at 125 kbit/s and
75 meters at 500 kbit/s.( Physical Layer [5])
Data Link Layer
DeviceNet uses a differential serial bus (Controller Area Network) as its Data Link Layer. Using CAN
as a backbone, DeviceNet requires minimal bandwidth to transmit and package messages. In
addition, a smaller processor may be selected in the design of device thanks to data frame format
and the ease at which the processor can parse through the data. See below for full format.( The Data
Link Layer[5])
CAN Data Frame Format
1 Bit => Start of Frame
11 Bits => Identifier
1 Bit => RTR Bit
6 Bits => Control Field
0-8 Bytes => Data Field
15 Bits => CRC Sequence
1 Bit => CRC Delimiter
1 Bit => Acknowledge
1 Bit => Ack Delimiter
7 Bits => End of Frame
>2 Bits => Interframe Space
Reference: Table: Data Frame Format.[5]
Upon transmitting the first packet of data, the "Start of Frame" bit is sent to synchronize all receivers
on the network. The CAN identifier (denoted from 0-63) and RTR bit combine to set priority at which
the data can be accessed or changed. Lower identifiers have priority over higher identifiers. In
addition to transmitting this data to other devices, the device also monitors the data sent. This
redundancy validates the data transmitted and eliminates simultaneous transmissions. If a node is
transmitting at the same time as another node, the node with the lower 11 bit identifier will continue
to transmit while the device with the higher 11 bit identifier will stop.(Introduction & Physical Layer.[5])
The following 6 bits contain information for specifying the Control Field. The initial two bits are fixed,
while the last four are used to specify length field of the Data Field. The Data Field contains from
zero to eight bytes of usable data.(Physical Layer.[5])
The following data frame is the CRC (Cyclic Redundancy Check) Field. The frame consists of 15 bits
to detect frame errors and maintains numerous format delimiters. Due to ease of implementation and
immunity to most noisy networks, CAN provides a high level of error checking and fault
confinement.(Physical Layer.[5])
Network
DeviceNet incorporates a connection-based network. A connection must initially be established by
either an UCMM (Unconnected Message Manager) or a Group 2 Unconnected Port. From there,
Explicit and Implicit messages can be sent and received. Explicit messages are packets of data that
general require a response from another device. Typical messages are configurations or non-time
sensitive data collection. Implicit messages are packets of data that are time critical and generally
communicate real-time data over the network. An Explicit Message Connection has to be used to
established first before an Implicit Message Connection is made. Once the connection is made, the
CAN identifier routes data to the corresponding node.(The Network and Transport Layers.[5])
[edit]Conformance Test
To declare your product as DeviceNet compatible, a vendor needs to send their product to the ODVA
test lab for the certification. ODVA used to have a few other test labs around the world, i.e. UK,
Japan, and China. It has since been consolidated into one facility in North America.[6]
A full-test version is called the Composite test. It consists of:[7]
1. Conformance test. Test against the protocol specification.
2. Interoperability test. Test against devices from various vendors on a single, fully populated,
network.
[edit]Conformance Test Procedure
The following procedure shows you how to get your product certified.
1. Register as vendor with ODVA. You will be given a vendor ID.
2. Purchase a copy of the DeviceNet specification. A hard and soft copy will be sent to you.
3. Purchase the conformance test software and corresponding hardware interface card. Note
that only selected interface cards from a few vendors can be used.
4. Develop and test product in-house. You would probably need help from the discussion
group, see the External links below.
5. Submit your product to ODVA test lab for independent verification.
6. Repeat the above two steps until your product successfully pass the independent test.
Reference[8
ControlNet
From Wikipedia, the free encyclopedia
Contents
[hide]
1 Introduction
2 Architecture
3 An end user's experiences
4 External links
[edit]Introduction
ControlNet is an open industrial network protocol for industrial automation applications, also known
as a fieldbus. ControlNet was earlier supported by ControlNet International, but in 2008 support and
management of ControlNet was transferred to ODVA, which now manages all protocols in
the Common Industrial Protocol family.
Features which set ControlNet apart from other fieldbuses include the built-in support for fully
redundant cables and the fact that communication on ControlNet can be strictly scheduled and highly
deterministic. Due to the unique physical layer, common network sniffers such as Wireshark cannot
be used to sniff ControlNet packets. Rockwell Automation provides ControlNet Traffic Analyzer
software to sniff and analyze ControlNet packets.
[edit]Architecture
Physical Layer
RG-6 coaxial cable with BNC connectors, though optical fiber is sometimes used for long distances.
The network topology is a bus structure with short taps. ControlNet also supports a star topology if
used with the appropriate hardware. ControlNet can operate with a single RG-6 coaxial cable bus, or
a dual RG-6 coaxial cable bus for cable redundancy. Maximum cable length without repeaters is
1000m and maximum number of nodes on the bus is 99. However, there is a tradeoff between
number of devices on the bus and total cable length. Repeaters can be used to further extend the
cable length.
The physical layer signaling uses Manchester code at 5 Mbit/s.
Link Layer
ControlNet is a scheduled communication network designed for cyclic data exchange. The protocol
operates in cycles, known as NUTs, where NUT stands for Network Update Time. Each NUT has two
phases, the first phase is dedicated to scheduled traffic, where all nodes with scheduled data are
guaranteed a transmission opportunity. The second phase is dedicated to unscheduled traffic. There
is no guarantee that every node will get an opportunity to transmit in every unscheduled phase. Both
the scheduled and unscheduled phase use an implicit token ring media access method. The end of
each NUT is marked by the transmission of a moderator frame by the node with the lowest MAC-ID
on the network.
The maximum size of a scheduled or unscheduled ControlNet data frame is 510 Bytes.
Application Layer
The ControlNet application layer protocol is based on the Common Industrial Protocol (CIP) layer
which is also used in DeviceNet and EtherNet/IP.
[edit]An end user's experiences
Controlnet's scheduled message system requires that the media be robustly designed and
meticulously maintained. A break in the media invariably causes a SNAFU. The media is checked
with a handheld device known as a "Network Checker" in conjunction with a DSO running at
100 MHz or higher. Controlnet was designed after Allen-Bradley's PLC-5 was released, so the PLC-5
system has some inherent troubles using it. In Rockwell PLC systems the network is configured via
RSNetworx For Controlnet. By opening this program the network is scanned and a graphical screen
is populated with each node on the network. Each processor has a "scanlist configuration" which
shows its connections to remote racks, frequency drives, and any other devices that communicate
with it. This program performs for remote racks essentially the same functions as the I/O
configuration in the local rack. In the I/O configuration table of Logix, analog cards can be assigned
block transfers. In RSNetworx, Controlnet analog cards in remote racks are assigned scheduled
messages in blocks of words. Processors communicate with each other via "Produce" and
"consume" tags. A processor's produce tag, for instance, may be 50 words. This block will be
broadcast for any other processor to con