Kevin Ryu
Kevin Ryu

Reputation: 51

CAN identifier and COB-ID

Hello I am a student studying canopen. What is the relationship between COB-ID and CAN identifier in Canopen? I read on the CIA homepage that COB-ID is not a CAN ID, but I do not understand it.

For example, if a PDO is transmitted over a CAN bus, it will be converted from a CANopen frame to a CAN frame. Will not the CAN identifier be converted using the node ID of the COB-ID? At this time, the COB-ID varies according to the function code, but it is more confusing in that the CAN identifier has only one per device.

To summarize my question, I wonder how CANopen converts identifiers when sending messages via the CAN bus.

Upvotes: 4

Views: 17410

Answers (2)

Scaotrix
Scaotrix

Reputation: 31

Node-ID is basically the name of the device in the can line. If you want to control the device,you need to reach it with that name. Every device has a different Node-ID so you can control each device individually. You can create that name and you can change if you want. The devices usually come with a default Node-ID. You can see it in datasheet of the device. For example, default Node-ID=1.

COB-ID(s) contains The Node-ID(s) and there is a standart for COB-ID(s).

COB-ID

As you can see the table on the link. If you want to use PDO for send and receive the data, for example you want to use PDO1 and your device's node-id is 1.

So your COB-ID is 180+Node-id=181(You can get data(info) from the device) with PDO1

and 200+node-id=201(You can send the data(command) to the device) with PDO1

Upvotes: 3

Gilles Carré
Gilles Carré

Reputation: 49

Node ID and COB ID are different things.

Node ID is the hard coded ID of a CANopen device (in the connector).

COB ID is the CAN identifier (11 bits or 29 bits) and the RTR

bit 1: for request, 0: for data

The CAN identifier contains in itself the priority.

In some(?) CANopen standards like CiA-301 some COB-ID ranges or values are reserved.

See: https://en.wikipedia.org/wiki/CAN_bus#Frames

https://www.can-cia.org/standardization/specifications/ CiA-301 V4.2.0 §7.3.5 (to download you need to have a login but it is free of charge)

Upvotes: 5

Related Questions