Data length
For the data length values up to 64 bytes are possible for Can FD frames. Since these values are transmitted in the classic CAN arbitration header, the following values are possible:
0 ... 8, 12, 16, 20, 24, 36, 48 and 64
If the lengths do not correspond to these values during transmission, they are adjusted to the next higher value by the device.
For a CAN FD frame the values 0 to 15 are valid for the DLC field. The value of the DLC field determines the number of bytes in the data field and is interpreted in the following way:
The CAN interface does this conversion automatically, i.e. in the CAN interface you only specify the actual number of bytes (values from 0..64 bytes are allowed).
The conversion to the DLC values is then performed by the CAN interface in the background with the next larger DLC value.
Example: if you enter the data length 32 in the CAN interface, 36 bytes are sent with the DLC value 13.