CAN Bus Workshop_Version 03__06-2008_EN.pdf - 第70页

1 - 8 S tudent Gu ide CAN BUS Wor kshop 3 CAN BU S Editio n 06/200 8 8 11 Dat u m 06 /20 08 Ver s i o n 0 3 C A N B u s W o rk sh o p Mat hia s M ic hel SIPL ACE Cam p us A utom ati o n and Driv e s Aufb au C AN Teleg ra…

100%1 / 298
1 - 7
Student Guide CAN BUS Workshop
Edition 06/2008 3 CAN BUS
7
9Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
2. Aufbau CAN ID`s
2. Construction of the CAN ID`s
10 3456789 012
Channel
00 CMD = Comman d
01 ACK =Acknowledg e
10 DBG = Debugg
11 PUB = Public
Direction
0 - The Object send your own
Objekt Number.
1 - Message send the Objekt
Number which subsystem
have to received this
massege
Gantry
00 Gantry 1
01 Gantry 2
10 Gantry 3
11 Gantry 4
Object ID
- Head - Vision Objects
- Axis objects
- Component handling
- Tr ansport
- Safety
0 0000011 000
Example Head processor CAN ID 300 (hex)
Gantry 1
0 1000011 000
Example Head processor CAN ID 308 (hex)
Gantry 2
0 0100011 000
Example Head processor CAN ID 310 (hex)
Gantry 3
0 1100011 000
Example Head processor CAN ID 318 (hex)
Gantry 4
11 Bit Identifier
10Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
2. Aufbau CAN ID`s
2. Calculate CAN ID
0 1100011 000
Determine CAN ID
10 3456789 012
11 bit Identifier
Binär: 2 hoch X
1024 8163264128256512 124
0 816000256512 000
The result i s decimal 792 Æ calculate to HEX you get 31 8.
Variant 1:
Variant 2:
divide the Identifier into 4 bit block,
that way you get the HEX number easy
2 3012301 012
Binär: 2 hoch X
4 8124812 124
0 1100011 000
Excample Headprocessor
CAN ID 318 (hex)
Gantr y 4
0 8100012 000
Add the block you get directly the HEX number 318.
2 hoch X calculated
11 bit Identifier
Add block wise
31 8
Excample Headproc essor
CAN ID 318 (hex)
Gantry 4
1 - 8
Student Guide CAN BUS Workshop
3 CAN BUS Edition 06/2008
8
11Dat um06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
Aufbau CAN Telegramm (Beispiel)
ID 0x2 43 DLC 0x0 3 DATA 0x00 0x00 0x90
SOF ID RTR CONTROL /DLC DATACRC CR C-DELIMETER ACK–SLOT ACK-DELIMETER EOF ITM
0 01001000011 0 0000S11 0000 0S000 00S00 000S0 1001 0000 0S00011110110101 1 1 1 1111111 111
SOF 1Bit always 0
ID 11Bit 0/1
RTR 1Bit always 0 at SIPLACE
CONTROL 2Bit always 0 at SIPLACE
DLC 4Bit 0/1
DATA 0-64bit 0/1
CRC 15Bit 0/1
CRCDEL 1Bit 1
ACK-SLOT 1Bit 1 ; if 0 no subsystem can received this co mmand
ACK-DEL 1Bit 1
EOF 7Bit 1
ITM 3Bit 1
Î chster SOF
2. CAN BUS Siplace
12Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
2. Error Frames
Error Frames
What are error frames?
Error frames are sent by the individual subsystems, when a command does not adhere to the encoding
rules or has been physically corrupted.
This occurs when a CAN telegram shows the same RxD level (low) for 6 or more consecutive bits
(logic 0 = dominant).
If a subsystem recognizes this type of command, it will immediately notify all other subsystems and the
transmitter of the telegram, by sending error frames.
After receiving an error frame, the other subsystems will reject the message (telegram) and send their own
error frames telegram. Once the bus is free again, the command will be resent.
The CAN Test Box is used to check the CAN network for error frames.
An accumulation of error frames indicates possible physical bus errors. If too many error frames are
recognized during operation, you will need to analyze the CAN signals in detail.
Note: Number of error frames during 4h placement operation < 10
2. Error Frames
1 - 9
Student Guide CAN BUS Workshop
Edition 06/2008 3 CAN BUS
9
13Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
3. Physikalische Überprüfung des CAN Bus
Signals on the different connectors
Differences:
Siplace HF: - Take out 24V from the CAN Bus
Retrofit kit number(00194610-01)
- TI 2005-08E03 CAN I/O Module Version 02
Siplace X: - Changing the 24 V power supply
- One Wire with CAT5 cable (00194705-01)
- One Wire (CAT 5) control only Temperatur
sensors
• CAN_INT - not used (+5V/ min. 4V)
• Power Fail - to storage the head specific data
(+5V/ min. 4V)
• CAN RESET - not used on HF and X machine
(+5V/ min. 4V)
• CAN HIGH - 2,5 +/- 0,3 V recessive Level
(When there is no communication on the Can Bus)
• CAN LOW - 2,5 +/- 0,3 V recessive Level
(When there is no communication on the Can Bus)
• CAN GND - Ground Can Bus
• Vcc 24V - was the 24V for the nozzle changer before.
One wire - Only on the HF machine in the
CAN Bus cable
3. Checking the physical function
of the CAN BUS
9- pol Sub D
2 3 4 5
7 8 9
1
6
2
3
4
5
1
10 - Pin connector
7
8
9
10
6
2
3
4POWER_FAIL
5
CAN_INIT
6
CAN_GND
CAN_GND
7 CAN_HIGH
8
CAN_LOW
CAN-RESET
9 Vcc One_Wire (+24 V)
ONE_Wire
1
(+5V ) LOW_ ACTIVE
3
5
7POWER_FAIL
9
CAN_INIT
2
CAN_GND
CAN_GND
4CAN_HIGH
6
CAN_LOW
CAN-RESET
8 Vcc One_Wire (+24 V)
10
ON E_Wire
1
NC
(+5V) LOW_ ACTIVE
1 One_Wire
2 CAN_GND
3 CAN_LOW
4 CAN_HIGH
5 CAN_GND
6 CAN_RESET
7 Power_FAIL
8 Vcc_One_Wir e (+24V)
9 CAN_IN IT
10 NC
1 2 3 4 5 6 7 8 9 10
10 Wi re flat cable
Description Flat cable
Description 10 pi n co nnectorDescription 9 sub D co nn ector
14Datum06/2008 Version 03 CAN Bus Workshop Mathias Michel
SIPLACE Campus
Automation and Drives
1. Check the terminating resistors
Attention: To measure the terminating resistors you have to SWITCH OFF the machine!
To avoid reflection in the CAN lines, a 120 Ohm terminating resistor must be placed at each
end of the CAN bus wire, between CAN_H and CAN_L.
A correctly closed CAN bus will have a resistance value of 60 Ohm.
An additional terminating resistor reduces the overall resistance to 40 Ohm. (1/Rges.= 1/R1+1/R2+.....)
If the resistors are not placed at the end points, the CAN lines will experience reflections.
The effect of incorrect terminating resistors can be seen in the appropriate diagram in this .ppt.
Measure: Between Pin 2 and 7
Nominal value: 60 O
For the positions of the terminating resistors,
refer to Chapter CAN Bus Operation Diagrams in the manual CAN Test Box
3. Überprüfung der Abschlußwiderstände
3. Checking the terminating resistors