CANopen provides distributed control functionality

There are some misunderstandings regarding the multi-master functionality of CANopen-based control systems. The under-laying CAN data link layer is a multi-master protocol, and each CAN node has the right to request bus access at any time. Depending on the priority of the CAN data frame, the node gets immediate bus access or it has to wait.

04/09/2015


Figure 1: NMT “Flying” master protocols are used to negotiate which CANopen device will become the active NMT master. Courtesy: Holger Zeltwanger, CAN in AutomationThe CANopen application layer provides several protocols. The only mono-master protocol is the network management (NMT) protocol. There is usually just one NMT master device that sends the NMT message to control the other CANopen devices. To avoid a single point of failure, CANopen provides an optional NMT "Flying" master functionality. This means that there are additional CANopen devices in the network that provide NMT master functionality, but this function is not yet activated. If the active NMT master device loses connection to the network, the remaining devices with "sleeping" NMT master functions start to negotiate as to which one will act as the NMT master. Each NMT master capable device has a unique priority, assigned by the system designer. If a temporarily disconnected NMT master-capable device is connected it again, it requests the priority of the active NMT master and possibly starts the above-mentioned negotiation process. The NMT "Flying" master process comprises four protocols.

The Heartbeat is a producer/consumer service. This means any node produces its Heartbeat to indicate that it is still in the network. All other CANopen device may consume the Heartbeat of others. The system designer can configure this for each node differently. The EMCY (emergency) message is also a producer/consumer service. The system designer can configure the EMCY reception by means of standardized parameters in the CANopen object dictionary.

Process data objects (PDOs) also follow the producer/consumer model, making it a true multi-master system. They are sent in broadcast to all connected nodes, and depending on the implemented hard- and software message filtering, they are processed or ignored. One of the misunderstandings comes from the pre-defined CAN-ID connection set. The basic CANopen document (CiA 301) specifies a default assignment of CAN-IDs for the different communication protocols. There are just four pre-defined CAN-IDs for PDOs to be transmitted for each node. Additionally, there are four pre-defined CAN-IDs for PDOs to be received. This means that there is a pre-configured set of PDOs normally consumed and produced by a host controller. But the system designer can configure the CANopen devices in a way that the cross-communicate PDOs, as well as multi-cast them, making it is possible to configure a full-meshed PDO communication.

Another misunderstanding is regarding the default service data objects (SDO) communication. SDOs are used to write or to read the parameters in the object dictionary. This is a client/server communication. The client always has the initiative, and the server responds to the write or read request with a confirmation. In case of reading, the SDO server provides the requested data in the confirmation. The above-mentioned pre-defined CAN-ID connection set features just the Default-SDO communication, meaning each CANopen node has just one pre-defined CAN-ID for receiving the request from the SDO client and another one to transmit the confirmation to the SDO client. Normally, the host controller owns all SDO clients for all the Default-SDOs of the other CANopen devices, but it is possible to assign unused CAN-IDs to not pre-defined SDO-channels. At the end, each CANopen device can be the SDO client for each other and vice versa. This would be a fully meshed SDO network.

CANopen can be used to design a network with multiple host controllers. In this case, the host controllers can share the network to communicate PDOs and SDOs. Additionally, they can share the connected other CANopen devices. For example, an I/O module can communicate with one PDO its inputs to one host controller and with another PDO other inputs to another host controller. The I/O module can even be host controller by itself.

Figure 2: CANopen devices may implement several SDO servers, so that several host controllers can share the device’s functionality. Courtesy: Holger Zeltwanger, CAN in Automation

One CANopen device can implement multiple SDO servers, so that different host controllers can configure it. Such real distributed control systems may have a single-point of failure if no NMT "Flying" master functionality is implemented. The subsea controllers make use of redundant NMT masters, and some other mission-critical applications implement the NMT "Flying" master protocols. In the elevator control business, multiple host controllers are used, sharing the network and communicating via the very same bus-lines with the assigned CANopen devices. Multiple host controllers are also used in CANopen-based rail vehicle applications. In industrial machine control systems, most of the applications implement just one "big" host controller collecting all input data and transmitting all commands to the actuators. In mobile machine control systems, sometimes multiple host controllers are used. The trend of modular machine design will also be adapted in industrial and other machinery, such as laboratory automation and medical apparatuses. CANopen provides all necessary features for such distributed control architectures.

- Holger Zeltwanger is managing director, CAN in Automation, a CFE Media content partner. Edited by Anisa Samarxhiu, digital project manager, asamarxhiu@cfemedia.com.

Key concepts:

  • CANopen can be used to design a network with multiple host controllers. In this case, the host controllers can share the network to communicate PDOs and SDOs.
  • The trend of modular machine design will also be adapted in industrial and other machinery, such as laboratory automation and medical apparatuses. CANopen provides all necessary features for such distributed control architectures.
  • The basic CANopen document (CiA 301) specifies a default assignment of CAN-IDs for the different communication protocols. There are just four pre-defined CAN-IDs for PDOs to be transmitted for each node.

Consider this

How would you use the multi-master functionality of CANopen-based control systems?

ONLINE extra

See related articles below as well as other CAN in Automation articles.



Engineers' Choice Awards
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers.
System Integrator Giants
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
System Integrator of the Year
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
How to Maximize Factory Automation Efficiency with Low Cost Machine Vision
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Wireless Reliability in Harsh Environments
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
Human Factors and the Impact on Plant Safety
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
July 2018
Ladder logic best practices and object-oriented programming, safety instrumented systems, enclosure design issues and challenges, process control advice
June 2018
Discrete and process sensor fundamentals, autotuning controls, system integrator roundtable
May 2018
Salary and Career Survey, IT and OT convergence, robotic standards and safety, secure circuit protection
Edge Computing
This article collection contains several articles on how today's technologies heap benefits onto an edge-computing architecture such as faster computing, better networking, more memory, smarter analytics, cloud-based intelligence, and lower costs.
Data Center Design
Data centers, data closets, edge and cloud computing, co-location facilities, and similar topics are among the fastest-changing in the industry.
PLCs
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. Featured articles in this digital report compare PLCs and programmable automation controllers (PACs), industrial PCs, and robotic controllers.
SIDB

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

June 2018
Machine learning, produced water benefits, progressive cavity pumps
April 2018
ROVs, rigs, and the real time; wellsite valve manifolds; AI on a chip; analytics use for pipelines
February 2018
Focus on power systems, process safety, electrical and power systems, edge computing in the oil & gas industry
John O. Ayuk, PE, CFSE, PMP, CAP
Automation Engineer; Wood Group
Doug Baker
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
Data Centers: Impacts of Climate and Cooling Technology
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
Safety First: Arc Flash 101
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
Critical Power: Hospital Electrical Systems
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
Engineers' Choice Awards
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers.
System Integrator Giants
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
System Integrator of the Year
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
How to Maximize Factory Automation Efficiency with Low Cost Machine Vision
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Wireless Reliability in Harsh Environments
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
Human Factors and the Impact on Plant Safety
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
July 2018
Ladder logic best practices and object-oriented programming, safety instrumented systems, enclosure design issues and challenges, process control advice
June 2018
Discrete and process sensor fundamentals, autotuning controls, system integrator roundtable
May 2018
Salary and Career Survey, IT and OT convergence, robotic standards and safety, secure circuit protection
Edge Computing
This article collection contains several articles on how today's technologies heap benefits onto an edge-computing architecture such as faster computing, better networking, more memory, smarter analytics, cloud-based intelligence, and lower costs.
Data Center Design
Data centers, data closets, edge and cloud computing, co-location facilities, and similar topics are among the fastest-changing in the industry.
PLCs
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. Featured articles in this digital report compare PLCs and programmable automation controllers (PACs), industrial PCs, and robotic controllers.
SIDB

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

June 2018
Machine learning, produced water benefits, progressive cavity pumps
April 2018
ROVs, rigs, and the real time; wellsite valve manifolds; AI on a chip; analytics use for pipelines
February 2018
Focus on power systems, process safety, electrical and power systems, edge computing in the oil & gas industry
John O. Ayuk, PE, CFSE, PMP, CAP
Automation Engineer; Wood Group
Doug Baker
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
Data Centers: Impacts of Climate and Cooling Technology
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
Safety First: Arc Flash 101
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
Critical Power: Hospital Electrical Systems
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
Engineers' Choice Awards
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers.
System Integrator Giants
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
System Integrator of the Year
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
How to Maximize Factory Automation Efficiency with Low Cost Machine Vision
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Wireless Reliability in Harsh Environments
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
Human Factors and the Impact on Plant Safety
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
July 2018
Ladder logic best practices and object-oriented programming, safety instrumented systems, enclosure design issues and challenges, process control advice
June 2018
Discrete and process sensor fundamentals, autotuning controls, system integrator roundtable
May 2018
Salary and Career Survey, IT and OT convergence, robotic standards and safety, secure circuit protection
Edge Computing
This article collection contains several articles on how today's technologies heap benefits onto an edge-computing architecture such as faster computing, better networking, more memory, smarter analytics, cloud-based intelligence, and lower costs.
Data Center Design
Data centers, data closets, edge and cloud computing, co-location facilities, and similar topics are among the fastest-changing in the industry.
PLCs
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. Featured articles in this digital report compare PLCs and programmable automation controllers (PACs), industrial PCs, and robotic controllers.
SIDB

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

June 2018
Machine learning, produced water benefits, progressive cavity pumps
April 2018
ROVs, rigs, and the real time; wellsite valve manifolds; AI on a chip; analytics use for pipelines
February 2018
Focus on power systems, process safety, electrical and power systems, edge computing in the oil & gas industry
John O. Ayuk, PE, CFSE, PMP, CAP
Automation Engineer; Wood Group
Doug Baker
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
Data Centers: Impacts of Climate and Cooling Technology
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
Safety First: Arc Flash 101
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
Critical Power: Hospital Electrical Systems
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me