Skip to main content
NETWORKING · CAN PROTOCOLS

What Is CANopen?

CANopen is a higher-layer protocol that runs on CAN bus. It gives every device an object dictionary of standard parameters, fast process data objects (PDOs) for real-time values, service data objects (SDOs) for configuration, and network management. Maintained by CAN in Automation (CiA) and standardized as EN 50325-4, it is used in machines, drives, medical equipment and vehicles.

01

What CANopen is

CANopen is a higher-layer protocol that runs on a CAN network. CAN itself only moves short frames between devices. CANopen defines what those frames mean: how a device describes its data, how process values are exchanged in real time, how parameters are set and how the network is started and supervised.

The specification began in a European research project led by Bosch, and CAN in Automation (CiA), the international users’ and manufacturers’ group for CAN, published the first version in November 1994. CiA has maintained it since as CiA 301, and it is also standardized as EN 50325-4. CiA now calls the original protocol CANopen CC, for classic, to distinguish it from the newer CANopen FD.

CANopen was designed for motion-oriented machine control, such as handling systems. It is now also used in medical equipment, off-road vehicles, maritime electronics, railways and building automation, including lift control.

FAQ · 01
What is CAN bus?
CAN bus (Controller Area Network) is a two-wire network that lets controllers, sensors and actuators share short messages without a central computer. Developed by Bosch for vehicles, it uses a noise-resistant differential signal and gives every message a priority, so critical data gets through first.
Read the full FAQ —
02

The object dictionary

CiA calls the object dictionary the heart of any CANopen device. It is a table of everything the device exposes: its process data, its configuration parameters and its communication settings. Every entry is addressed by a 16-bit index and an 8-bit sub-index, so any tool can reach any value in any device in the same way.

The device maker describes the dictionary in an electronic data sheet (EDS), a standard file that configuration software reads. Device profiles then fix which entries a class of device must have, so a drive from one maker can be commissioned in the same way as a drive from another.

03

PDOs, SDOs and network management

CANopen uses a small set of communication objects, each suited to one job.

CANopen network of an industrial PC, drive, I/O module and encoder exchanging PDOs and SDOs on one CAN bus
FIG · 01Each CANopen device exposes an object dictionary, exchanging live values as PDOs and settings as SDOs.
  • //
    Process data objects (PDOs). Unconfirmed messages that carry real-time values with no protocol overhead, up to 8 bytes in a classical CAN frame. A PDO can be sent when a value changes or in step with a synchronization message.
  • //
    Service data objects (SDOs). Confirmed read and write access to any entry in the object dictionary. Values of up to 4 bytes fit in one exchange, and longer data is sent in segments. SDOs are used for configuration and diagnostics.
  • //
    Network management (NMT). One device acts as NMT manager and commands the others between three states: pre-operational, where PDOs are not allowed, operational, and stopped.
  • //
    Heartbeat and emergency messages. Each device sends a boot-up message when it starts and a periodic heartbeat to show it is alive, and it reports faults in a single emergency frame with a standard error code.
04

Node IDs, identifiers and bit rates

Every device has a node ID from 1 to 127, set with switches, in software or over the bus using the Layer Setting Services that CiA defines. In the standard arrangement, called the pre-defined connection set, the 11-bit CAN identifier of each message is built from a 4-bit function code and the 7-bit node ID. Lower identifiers have priority on CAN, so the function code also decides how urgent each kind of message is.

CANopen runs at bit rates from 10 kbit/s to 1 Mbit/s, and every device on a network must use the same rate. Speed limits length: CiA gives a theoretical maximum of 40 m at 1 Mbit/s and around 1 km at 50 kbit/s, and practical networks are usually planned shorter. The wiring rules are those of any CAN network, a line with a 120 ohm terminator at each end. The most common connector is the 9-pin D-sub, for which CiA publishes a recommended pin assignment.

05

CANopen specifications and device profiles

Profiles are what make CANopen devices interchangeable. CiA publishes them as numbered documents, and these are among the most widely used.

Document Covers Notes
CiA 301 Application layer and communication profile The base specification for classic CANopen devices
CiA 401 Generic I/O modules Digital and analog inputs and outputs
CiA 402 Drives and motion controllers Frequency inverters, servo controllers and stepper motors
CiA 406 Encoders Rotary and linear encoders
CiA 417 Lift control systems Car, door and call controllers
CiA 1301 CANopen FD The application layer for CAN FD, with PDOs of up to 64 bytes

CANopen FD is the successor to classic CANopen and uses the larger frames of CAN FD. For safety-related data, CANopen Safety (EN 50325-5) lets safety messages share the same CAN network as standard traffic.

06

CANopen on an industrial PC

On a CANopen machine the computer is usually the controller. It acts as NMT manager, configures the devices over SDO at start-up and then exchanges PDOs with drives, I/O modules and sensors. It can equally be a passive monitor that logs traffic, or a gateway that passes machine data to an Ethernet network. CiA defines gateway services for this in its CiA 309 documents, with mappings to Modbus TCP and to web services such as MQTT.

The hardware requirement is a CAN port. The protocol is software: a CANopen stack or control runtime that uses the port. A CAN port does not make a PC a CANopen device without that software, so check what the software supports, and choose isolated ports where the computer and the machine may sit at different ground potentials.

Our industrial PCs and DIN rail PCs include systems with built-in CAN ports. Where a computer has none, our CAN bus I/O modules add them, and the range includes a USB adapter with two isolated CAN ports that runs CANopen firmware. On vehicles the protocol is more often J1939, which our FAQ on J1939 compares with CANopen.

FAQ · 02
How does a Linux computer talk to a CAN port?
Through SocketCAN, the CAN support built into the Linux kernel. Each CAN port appears as a network interface such as can0, so applications and tools like candump send and receive frames through standard sockets whatever adapter sits underneath.
Read the full FAQ —
07

Quick answers on CANopen

CANopen: common questions

Is CANopen the same as CAN bus?

No. CAN bus is the wiring and the frame format. CANopen is one of the protocols that run on top of it and define what the frames mean. J1939 and DeviceNet are others.

What is the difference between a PDO and an SDO?

A PDO carries live data and an SDO carries settings. PDOs are fast, unconfirmed messages holding process values. SDOs are confirmed requests that read or write one entry in the object dictionary of a device.

What is the difference between CANopen and J1939?

Mainly where they are used. CANopen uses 11-bit identifiers and an object dictionary, and is common in machines and automation. J1939 uses 29-bit identifiers that carry parameter group numbers, and is the standard for trucks, buses and off-highway vehicles.

What is CANopen used for?

Embedded control networks inside machines. Typical uses are motion control, lifts, medical equipment, rail and off-road vehicles: anywhere several controllers, drives and sensors share one CAN cable.

How many devices can a CANopen network have?

Up to 127. Node IDs run from 1 to 127. The bit rate, the cable length and the traffic on the bus usually set a lower practical limit.

What is CANopen over EtherCAT?

The CANopen application layer on an Ethernet network. The CoE protocol of EtherCAT provides the same communication mechanisms as CANopen, so profiles such as CiA 402 can be reused on EtherCAT drives.

We fit CAN ports and CAN interface modules to the industrial and embedded computers we supply, install the drivers and set the bit rate and termination to match your network as standard.