ID

Identifier for CAN message

Description

The ID property represents a numeric identifier for a CAN message.

Characteristics

Usage

CAN message

Read only

Always

Data type

Numeric

Values

The ID value must be a positive integer from:

  • 0 through 2047 for a standard identifier

  • 0 through 536,870,911 for an extended identifier

You can also specify a hexadecimal value using the hex2dec function.

Examples

To configure a message ID to a standard identifier of value 300 and a data length of 8 bytes, type:

message = canMessage(300, false, 8)

See Also

Functions

canMessage

Properties

Extended

Was this topic helpful?