CAN send packed
Block to send packed CAN messages
Description
With the "CAN send packed" block you can send a packed CAN message on a specified CAN bus.
Each time the block is evaluated, a message is send.
Use the "CAN Pack" block from either the "xPC Target" or "Vehicle Network Toolbox" library to construct a packed CAN message.
Remarks
- Always use a CAN config block to configure the CAN channel enabling and used baud rate.
- Two IDs are reserved for the XCP protocol by design, the CAN channel depends on the 'XCP Config' block.
See the manaul for the used IDs.
- Supported CAN message fields;
- CAN ID
- Message length
- Standard/extended frame
- Data
- NOT supported (thus ignored) CAN message fields;
- Remote request
- Error frame
Input
The input is a CAN_message, containing the desired CAN ID, data length and data.
Parameters
- CAN channel
- Select the used channel.