Embedded Target for Motorola MPC555    
CAN Message Unpacking

Inspect and unpack the individual fields in a CAN message

Library

CAN Message Blocks

Description

The CAN Message Unpacking block receives a CAN message at its input and (by default) outputs the ID, length, and data contained in the message.

Note that the CAN Message Blocks library provides the CAN Message Unpacking block embedded in a Fcn Call subsystem, as shown in this figure.When a message is received, a trigger should be provided to initiate unpacking of the message.

By default, the data output port outputs a uint8 signal of width 1. To read the signal as a different data type with a different vector width, modify the Signal Specification block parameters.

Dialog Box

Output data
Extract the data of the CAN message as a signal. See the notes above on mapping the bytes of the CAN message to a Simulink signal.
Output message identifier
Extract the ID of the CAN message as a Simulink signal.
Output message length
Extract the length of the CAN message as a signal.

  CAN Message Packing (CANdb) CAN Message Unpacking (CANdb)