MANIPAL
CANopen serves as one of the few truly independent communication protocols open to
customization and interfacing of various technologies on multiple networks. This report
introduces the basic structure of CANopen and its advantages. It also discusses examples of its
myriad applications and its future prospects in a fast developing world.
Submitted By:
VEDANT PRUSTY
Reg No 120929210
B.Tech | 7TH Semester | Section A
DEPARMENT OF MECHATRONICS ENGINEERING
MANIPAL INSTITUTE OF TECHNOLOGY, MANIPAL
vedant.prusty@learner.manipal.edu
CONTENTS
1. Introduction.. 2
2. Structure of the CANopen Protocol.. 3
2.1.
2.2.
2.3.
2.4.
2.5.
Communication Types..... 9
3. Applications of CANopen... 9
3.1.
The BioBike 10
3.2.
3.3.
4.2.
4.3.
5. References... 17
1. INTRODUCTION
This report discusses the basic structure and features offeren by the
CANopen protocol. It then goes on to cite applications where CANopen
has been successful, and then point out the challenges being faced in
keeping CANopen relevant in the future.
While the CAN bus was originally designed keeping communication of electronic
components in automobiles in mind, its application has evolved since then into
several fields. Development of the CAN bus started in 1983 at Robert Bosch
GmbH. The protocol was officially released in 1986 at the Society of Automotive
Engineers (SAE) congress in Detroit, Michigan. The first CAN controller chips,
produced by Intel and Philips, came on the market in 1987. The 1988 BMW 8
Series was the first production vehicle to feature a CAN-based multiplex wiring
system.
CANopen
standard
consists
of
an
addressing
scheme,
several
communication profiles are given in the CiA 301 specification released by CAN in
Automation.
CAN may be implemented over a number of physical media as long as the
drivers are open-collector and each node can hear itself (and others) while
transmitting (this is necessary for its message priority and error handling
mechanisms).
The message frames generally used to carry data are shown in Fig. 2. They
contain the following fields (this is a simplified description as the controller
takes care of the detail)
Start of frame (SOF)
Message Identifier (MID) the Lower the value the Higher the priority of the
message length is either 11 or 29 bits long depending on the standard
being used
Remote Transmission Request (RTR)
Control field (CONTROL) this specifies the number of bytes of data to
follow
Data Field (DATA) length 0 to 8 bytes
CRC field containing a fifteen bit cyclic redundancy check code
Acknowledge field (ACK) an empty slot which may be filled by any and
every node that receives the frame (it does NOT say that the node you
intended the data for got it, just that at least one node on the whole
network got it.)
End of Frame (EOF)
device could interpret as an enable signal for acquiring data from a voltage input.
Conversely, the master may also want to read information from the object
dictionary to get the acquired data, or to find out how to device is currently
configured. The two communication mechanisms for accessing the object
dictionary are Service Data Objects (SDOs) and Process Data Objects (PDOs),
which will be explained later in this document.
(read/write)
is
the
The
whose
node
object
dictionary
is
accessed is referred
to
as
the
SDO
grabbing the data is referred to as the SDO client. The transfer is always started
by the SDO client. SDOs allow access to a single entry in the Object Dictionary,
such as the inputs (i.e. sensors) and outputs (i.e. motor drives) of the node
controller. Process data is also stored in the object dictionary.
Event driven: Telegrams are sent as soon as their contents have changed.
This means that the process image as a whole is not continuously
transmitted, only its changes.
3. APPLICATIONS OF CANOPEN
Over time, CANopen has found its way into myriad applications involving
embedded systems as well as large computer networks. This report will now
present a few cases where CANopen was used in various capacities.
3.1
The BioBike
The BioBike being developed at Hochschule Ulm since 1994 is a device which
can be used to assess a drivers performance. It employs various modules
including assessing and controlling seat and handlebar position and height, the
angular velocity of the pedal, power brakes, etc. Additionally, the project holds
great prospects in the field of physical rehabilitation, given the systems ability to
analyze human performance and respond accordingly. This project BioBike has
the objective of developing a special test bench for bikers, covering
biomechanics, effective pedaling and optimal power consumption.
The Aim of this author was to implement the CANopen communication protocol
(replacing simple serial communication) to communicate with the various motors
in the device. The nodes in the system consisted of 4 motors for the up-down and
forwards-backwards motion of the seat and handlebars. Additional modules
included an Angular Velocity calculation module, and brake power calculation
module, etc. Each of these serve as slave nodes. A master interface was
designed to bridge communication between the PC and the BioBike.
the
management
of
data
PDOs
interface,
to
thereby
communication
overwhelming
the
master
clogging
lines
the
PC
and
with
10
3.2
interface
The company Gefeg-Neckar Antriebssysteme is successor of the motor
manufacturers Gefeg, founded in 1948, and Neckar Kleinstmotoren, founded in
1967. The latter produced compact brushless dc motors with integrated electronic
motor control since 1995. In 2005, the merged company started the development
of a new electronic platform with the capability of bus communication.
Feedback from customers showed that CANopen was a good choice for a high
performance but cost-effective bus solutions.
11
The integrated bus communication provides certain benefits here, too, since it
makes easy testing and parameter setting of the drives possible. The firmware
also includes a boot loader.
Therefore, firmware update can be easily done through the CANopen interface.
The integrated CAN interface also enables an easy, cost effective but detailed
test of these motors in the production line. For the final test, a new test system
has been developed.
It utilizes the CANopen protocol to communicate with the integrated electronic
platform (Drive Profile DSP 402). The test program is based on the routines of
the commissioning software.
3.3
Automatic welding has been used frequently on offshore pipeline projects. The
productivity and reliability are most essential features of the automatic welding
system. In older to satisfy the requirements of all-position welding process that
welding system can weld with mated welding parameters at any position, a
master-slave CAN-bus network control welding system is constructed, which is
composed of CAN-bus master and slave based on CANopen communication.
Welding generator, digital servo drives considered as slave are successfully
integrated in all-position pipeline welding system. By means of automation device
specification based on PC control to deploy equipmental Objects Dictionary, it
can ensures the real-time and fast transmission of process data objects by using
synchronous object transmission.
12
13
For many years, Controller Area Network (CAN) and CANopen, a higher-layer
protocol based on CAN, represented the best choice for low-cost industrial
embedded networking. However, since the official introduction of CAN in 1986,
there has been a quest to replace CAN and CANopen to overcome the most
obvious shortcomings such as limited baud rate and limited network length.
4.1
CAN and CANopen, used as fieldbus systems for embedded solutions, combine
a number of advantages that cannot be matched by Ethernet TCP/IP. They are:
Extreme Reliability and Robustness
No Message Collision
Very Low Resource Requirements
Low-Cost Implementation
Designed for Real-Time Applications
Very Short Error Recovery Time
Support of Device Profiles (CANopen only)
However, there are some disadvantages of using CAN and CANopen, the
biggest being the limited network length (~120 feet at a 1 MBit/sec baud rate).
The disadvantages are:
Limited network length (depending on baud rate)
Limited baud rate of 1 MBit/sec
Limited bandwidth
14
4.2
The future of CAN - as the physical layer - and CANopen - as a higher layer
protocol based on CAN - in the market must be seen separately.
15
The use of Controller Area Network is still dominated by its vast use in the
automobile industry, and there are no indications that CAN will be replaced in
short-term. Another stronghold is the use as a physical layer for the SAE J1939
protocol, and CAN will remain the most cost-sensitive fieldbus solution for small,
embedded systems.
CANopen is facing a much tougher battle, since its major application range is
now being attacked by the new Ethernet technologies. These CANopen legacy
applications are:
Motion Control
Industrial Machine Control
Other applications not necessarily effected by Ethernet technologies are:
Niche Applications (Lifts, Escalators, Gambling Machines, Telescopes,
Specialty Vehicle Systems, Cost-Sensitive I/O Control, etc.)
MilCAN
The Medical industry is still the biggest supporter of CANopen, but here, too, are
tendencies to look into Ethernet technologies due to the vastly increased data
throughput that these technologies offer.
4.3
16
For existing systems abandoning currently used protocols might not always be
possible and sometimes customer demand might require the implementation of
specific network protocols. However, for new developments and implementations
a common network protocol must be seriously considered to keep development
times and system complexity in check. As such, CANopen will continue to serve
our networking and low traffic requirements. Even in the face of challenges such
as the Ethernet, CANopen remains a cost-effective, easy-to-implement solution.
5. References
17
------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------Postscript: This report is part of a seminar on the same subject held at Manipal Institute
of Technology, between August and November 2015, submitted for partial fulfillment of
the 7th semester coursework of the Bachelor of Technology degree in Mechatronics.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Dept. of Mechatronics Engineering
18