CAN Bus and CANopen: 7 Essential Facts for Engineers

Share:
Communication
CAN Bus and CANopen: 7 Essential Facts for Engineers

Born in cars, the Controller Area Network now links drives, sensors and robots in machines and medical devices. Its clever arbitration lets many nodes share two wires without collisions or lost priority messages.

ISO 11898 Arbitration 120 Ω Termination CANopen

CAN is a robust multi master serial network built for noisy environments. On top of it, CANopen and DeviceNet add the device profiles and services that industrial automation needs.

Hello everyone, today we are going to learn how CAN bus works, why its arbitration is so reliable, how CANopen builds on it, and how to check bus load and cable length for a machine network.
CAN bus

What Is CAN Bus?

CAN bus, or Controller Area Network, is a multi master serial bus defined in ISO 11898 that uses a differential pair, CAN_H and CAN_L, and message based arbitration so any node can transmit while priority is always respected. It is a form of serial communication designed for harsh electrical environments.

Texas Instruments explains in its CAN introduction that the bus has two states, dominant and recessive. A dominant bit always overwrites a recessive one, which is the key to arbitration.

CANopen protocol mapped onto the OSI layers above the CAN data link
Image credit: Embien

The network is a line with a twisted pair cable and 120 Ω resistors at both ends. Stubs to each node must stay short.

Industrial protocols such as DeviceNet and CANopen run on the same physical layer.

How CAN Bus Arbitration Works

Bus IdleAll nodes may start at once
Send IdentifierEach node transmits its message ID
Compare BitsNodes read back the bus level
Lose GracefullyA node seeing dominant over its recessive stops
Winner ContinuesLowest ID message completes without delay

Because the lowest identifier wins, message priority is built into the ID. No time is wasted on collisions, unlike classic Ethernet.

Error detection includes CRC, bit stuffing checks and acknowledgements. Faulty nodes switch themselves off the bus after repeated errors.

Bit Rate vs Cable Length

Bit RateTypical Maximum Length
1 Mbit per sAbout 40 m
500 kbit per sAbout 100 m
250 kbit per sAbout 250 m
125 kbit per sAbout 500 m
50 kbit per sAbout 1000 m

CAN bus length is limited because every node must see each bit within the same bit time during arbitration. Transceiver and cable delays set the practical limits shown.

Compared with RS485, CAN adds arbitration and error handling in hardware, which simplifies software.

7 Essential CAN Bus Facts

1
Two Wires Plus Ground
CAN_H and CAN_L with a common reference.
2
Terminate Both Ends
Two 120 Ω resistors, about 60 Ω measured.
3
Lowest ID Wins
Priority is set by the identifier.
4
8 Byte Classic Frames
CAN FD extends payload to 64 bytes.
5
Error Confinement
Faulty nodes go bus off automatically.
6
Line Topology
Avoid long stubs and star wiring.
7
Profiles on Top
CANopen and DeviceNet define device behaviour.

On a healthy CAN bus, measuring about 60 Ω between CAN_H and CAN_L with power off confirms both terminators are fitted. Around 120 Ω means one is missing.

Terminations matter on every bus type, as shown in ControlNet termination. Missing resistors cause reflections and error frames.

CANopen Basics

PDO

Process data objects for fast real time data.

Best for: drive set points and feedback
Real Time
SDO

Service data objects for configuration.

Best for: reading and writing parameters
Configuration
NMT

Network management states.

Best for: start, stop and reset nodes
Control
Object Dictionary

Every parameter has an index.

Best for: device profiles such as CiA 402
Structure

CSS Electronics notes that a CANopen network supports up to 127 nodes. One PDO frame carries data that would need four frames through SDO transfers.

CiA 301 was first released in 1994, and drive profiles such as CiA 402 followed. Servo drives from many makers use them.

Bus Load Formula

Bus load = Messages per second × Bits per frame ÷ Bit rate × 100

Example:
2000 messages per second, about 125 bits per frame with stuffing
Bit rate 500 kbit per s
Load = 2000 × 125 ÷ 500000 × 100 = 50 percent

Keep average load below about 60 to 70 percent so low priority messages are not delayed too long. Burst loads matter as well.

Bus Load Calculator

CAN Bus Utilisation
Result
Bus load 50.0 percent, acceptable

A classic 8 byte frame with an 11 bit ID is about 111 bits before stuffing. Use 125 to 135 bits for planning.

Strengths
  • Hardware arbitration without collisions.
  • Strong error detection.
  • Low cost transceivers.
  • Works well in noisy machines.
Limitations
  • Short payloads in classic CAN.
  • Length falls as speed rises.
  • Needs careful termination.
  • Lower bandwidth than Ethernet.

For higher bandwidth motion networks, compare with EtherNet/IP vs EtherCAT.

TI Introduction to CAN PDF

PDF
Introduction to the Controller Area Network, SLOA101B
Texas Instruments application report

CANopen Simple Intro Video

CAN Bus FAQ

What is CAN bus?
It is a two wire differential serial network with hardware arbitration and error handling. It is standardised in ISO 11898.
How does arbitration work?
Nodes send their identifiers bit by bit and dominant bits overwrite recessive ones. The message with the lowest ID wins without any collision.
What termination is needed?
A 120 Ω resistor at each end of the line. With power off, about 60 Ω should be measured between CAN_H and CAN_L.
How long can the cable be?
About 40 m at 1 Mbit per s and around 1000 m at 50 kbit per s. Lower speeds allow longer networks.
What is CANopen?
It is a higher layer protocol on CAN with an object dictionary, PDOs and SDOs. It supports up to 127 nodes per network.
What is CAN FD?
It is an extension with faster data phases and payloads up to 64 bytes. It keeps the same arbitration method.
What bus load is safe?
Average load below about 60 to 70 percent is a common target. Higher loads delay low priority messages.

Related Articles

External References

What We Learn Today

  • CAN bus uses dominant and recessive bits for collision free arbitration.
  • Terminate both ends and match bit rate to cable length.
  • CANopen adds PDOs, SDOs and profiles for automation devices.
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!

Leave a Reply

Your email address will not be published. Required fields are marked *