03.03.2013 Views

CANopen Programmer's Manual - Maccon.de

CANopen Programmer's Manual - Maccon.de

CANopen Programmer's Manual - Maccon.de

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CANopen</strong> Programmer’s <strong>Manual</strong> 1: Introduction<br />

The CAN Message<br />

Overview<br />

<strong>CANopen</strong> messages are transmitted within CAN messages (a CAN message is also known as a<br />

communication object or COB).<br />

CAN Message Format<br />

CAN messages are communicated over the bus in the form of network packets. Each packet<br />

consists of an i<strong>de</strong>ntifier (CAN message ID), control bits, and zero to eight bytes of data.<br />

CRC Error Checking<br />

Each packet is sent with CRC (cyclic redundancy check) information to allow controllers to i<strong>de</strong>ntify<br />

and re-send incorrectly formatted packets.<br />

CAN Message ID<br />

Every CAN message has a CAN message ID (also known as COB-ID). The message ID plays two<br />

important roles.<br />

It provi<strong>de</strong>s the criteria by which the message is accepted or rejected by a no<strong>de</strong>.<br />

It <strong>de</strong>termines the message’s priority, as <strong>de</strong>scribed below.<br />

CAN Message Priority<br />

The priority of a CAN message is enco<strong>de</strong>d in the message ID. The lower the value of the<br />

message ID, the higher the priority of the message. When two or more <strong>de</strong>vices attempt to transmit<br />

packets at the same time, the packet with the highest priority succeeds. The other <strong>de</strong>vices back<br />

off and retry.<br />

This method of collision handling allows for a high bandwidth utilization compared to other network<br />

technologies. For instance, Ethernet handles collisions by requiring both <strong>de</strong>vices to abort<br />

transmission and retry.<br />

For More Information<br />

For more information on the CAN protocol, see CAN Specification 2.0, Robert Bosch GmbH, and<br />

ISO 11898, Road Vehicles, Interchange of Digital Information, Controller Area Network (CAN) for<br />

high-speed communication.<br />

Copley Controls 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!