Industrial
Electronic Devices
ADFweb.com Srl – IT31010 – Mareno – Treviso INFO:
www.adfweb.com
Phone +39.0438.30.91.31
User Manual
CAN /Ethernet - Converter
Document code: MN67644_ENG Revision 1.200 Page 30 of 41
E
THERNET FRAME THAT CONTAIN
CAN
FRAMES ARRIVED IN THE
G
ATEWAY WITH
“E
NABLE
M
ULTIFRAME IN
E
THERNET
”
DISABLED
The Bytes that compose the frame are these:
Byte Number
Description
1÷4
Cob_ID
5÷12
Data (Byte 5 is the higher, byte 12 is the lower)
13
Number of Data Byte (0x00÷0x08)
To define the type of CAN (2.0A or 2.0B) of the frame that the converter has received, it is necessary to read the most significant bit of the
byte 1:
•
0: CAN 2.0A;
•
1: CAN 2.0B.
If the “Number of Data Byte” has got a value less than 0x08 the byte of Data unused have the value 0x00.
Example:
The Gateway receives a CAN frame with the following characteristics: CAN Type=2.0B; Cob_ID=0x01FECA02; Data=0x0123456789AB;
Number of Data Byte=6.
So the string of hexadecimal numbers that we send in Ethernet is: [81][FE][CA][02][01][23][45][67][89][AB][00][00][06]