CAN Bus Workshop_Version 03__06-2008_EN.pdf - 第67页
1 - 5 S tudent Guide CAN BUS W orkshop Edition 06/20 08 3 CAN B US 5 5 Datu m06 /2 008 V ersio n 03 CAN Bu s Wo r k sh op Mat hi a s Mic h el SIPL ACE Cam p us A utom ati o n and Driv es E ac h bu s n ode has a C A N c…

1 - 4
Student Guide CAN BUS Workshop
3 CAN BUS Edition 06/2008
4
3Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
1. CAN BUS Siplace
Preconditions
Multimeter, Oscilloscope
CAN Testbox 03043645-01
Service Laptop with the SW Caccia
00349514-01 Kvaser Card for Laptop
00349679-03 Testcable for CAN Bus 2x
00349676-01 CAN Cable (Receiver) 2x
00194932-11 Manual CAN Test Box
1. CAN BUS Siplace
4Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
CAN is a serial bus system with Multimaster features.
The CAN network does not consist of addressing individual components in
the conventional sense but all messages will send to all subsystems
(broadcasting).
Each subsystem decides on the basis of the identifier received whether it
should process the message or not.
2. CAN BUS Allgemeiner Aufbau
2. CAN BUS in general
The data are transmitted via the differential voltage of the two CAN_High and
CAN_Low lines, which are each fitted with a terminating resistance of 120 Ohm.

1 - 5
Student Guide CAN BUS Workshop
Edition 06/2008 3 CAN BUS
5
5Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
Each bus node has a CAN controller, which can transmit and receive data if
the bus is free.
This CAN controller communicates with a microcontroller. The microcontroller
steers and controls the relevant CAN bus nodes.
A CAN Bus node can only transmit if the bus is free i.e. if there is no
communication taking place with other nodes. Access to the CAN BUS is
fixed in the CAN protocol (identifier). This results in differing priorities among
the individual CAN bus nodes.
.
Function:
Microcontroller:- communicate to CAN Controller
- control the sensors, actuators and
control the function depend of the
Application.
CAN Controller: - add the data frame,
- built the connection to the
ComBoard
- Error handling
Transmitter/
Receiver: - adapt the level and amplify the
signal
2. CAN BUS Allgemeiner Aufbau
2. CAN BUS in general
6Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
CAN-Telegram:
A CAN Telegram contains 0 up to 8 Datenbytes.
In the Siplace CAN Bus an 11 Bit Identifier (Address) identified the message.
(which kind of message, priority, source and / or target).
Therfore the Identifier control the access to the bus (Arbitrierung).
The identifier determines the priority of the messages, messages with high
priority will send directly and the others with delay.
CAN Bus systems can work with 11bit (Machine CAN BUS) or 29 bit (Sub
CAN Bus e.g. CAN node) Identifier.
2. CAN BUS Allgemeiner Aufbau
2. CAN BUS in general

1 - 6
Student Guide CAN BUS Workshop
3 CAN BUS Edition 06/2008
6
7Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
2. Aufbau CAN Telegramm (allgemein)
2. Construction CAN telegram
Start
Control
information
Data (0-8 Bytes user
information)
CRC
End
Start:Start: determines the telegram start. After this Bit is set, no other user of the Can Bus is able to
send.
Even 2 or more user set this bit at the same time, the arbitration decides the highest priority. The
address with the highest priority is allowed to send the telegram.
Address: Identifier field:
The value of this number is also the priority for bus access. The lowest number has the higher priority
Control information/DLC
Contains reserved bits and 4 bit DLC. The DLC (data length code) shows, how many Bytes are
transferred with the data field
CRC Sequence + CRC Delimiter = CRC Field (Cyclic Redundancy Check)
Each message is combined with a CRC word. Therefore it recognizes messages which are at least not
in an origin state while disturbances
End
The length of the end recognition is 7 Bit
Address
(11 Bit Identifier)
8Dat um06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
Multi master:
When the bus is free any unit may start to transmit a message. The unit with the
message of the highest priority is transmitted at first.
Arbitration:
Whenever the bus is free, any unit may start to transmit a message. If 2 or more units start
transmitting messages at the same time, the bus access conflict is resolved by bitwise
arbitration using IDENTIFIER.
If the user A and B want to transmit a message, they begin to do after the start-of-frame bit
and compare in each case the bits sent and received. Since"0" dominates on the bus, user
B recognizes that the fourth bit is different from the bits sent and leave his message. User
B is waiting that the bus will free until the next Start-of-frame. User A recognize no different
and send continuous the message. Messages with high Priority have an Identifier, with a lot
of "0" bits.
There are two bus states possible during arbitration: dominant and recessive.
2. CAN BUS Arbitration
2. CAN Bus Arbitration