Skip to content

Receive CAN Messages (PDOs)

The Receive CAN Messages (PDOs) item is used to configure specific actions performed by the Proemion device whenever a defined CAN message has been received.

Add Receive CAN Messages (PDOs) to Your Project

If the Custom CAN Communication group does not yet exist:

  1. Right-click the root entry of the Object Dictionary tree.
  2. Select New Object Dictionary Group > Custom CAN Communication from the context menu.
  3. Right-click the created Custom CAN Communication entry.
  4. Select New Object Dictionary Group > Receive CAN Messages (PDOs) from the context menu.
  5. A dialog appears asking for the number of new entries to create.

If the Receive CAN Messages (PDOs) group already exists, you can add new entries as follows:

  1. Right-click the Receive CAN Messages (PDOs) entry in the Object Dictionary tree.
  2. Select New Object Dictionary Entry > Receive Message PDO from the context menu.

Receive CAN Messages (PDOs) Window

The window is organized into five tabs:

  • Communication
  • Status
  • Mapping
  • Jobs
  • Logging

Communication

Receive Message Communication Parameter

Select the CAN interface on which the message will be expected.

Available options may vary depending on the configured hardware and device variant.

You can choose between the following CAN protocols:

  • None: for standard CAN messages
  • J1939
  • OBD2

Depending on the selected protocol, different configuration options will be presented.

Timeout and Conditions

Defines whether a timeout check is active and sets the timeout duration in milliseconds.

If this time is exceeded between two consecutive messages, you can respond in one or more of the following ways:

  • Copy the timeout error status to a variable using the Status tab.
  • Assign a timeout replace value to the target variable using the Mapping tab.
  • Use both of the above simultaneously.

Always Active

When enabled, the message is automatically received and evaluated at all times.

When disabled, you can define a separate trigger condition that must be fulfilled before the message is evaluated. For more information, refer to Trigger Conditions.

Channel Configuration

The available options depend on the selected CAN protocol.

Standard Channel

Use this option to receive messages with a maximum length of 8 data bytes.

Full-CAN message objects use hardware filtering to determine whether a message is intended for the device. This is the preferred option for performance. A maximum of 8 activated Full-CAN message objects per channel is supported. This limit can vary depending on the configured active condition - take care to ensure it is never exceeded under any condition, as excess messages will be dropped.

Basic-CAN message objects use software filtering and should be used only when more than 8 receive messages must be active simultaneously. They place more load on the device and reduce performance. When using Basic-CAN, the Configurator displays a color indicator showing the performance impact (green = good, yellow = acceptable, red = performance-degrading). For best results, group Basic-CAN messages whose COB-IDs differ in as few bits as possible.

The following options are only available for Full-CAN message objects:

  • Valid on Change: the message is only processed if its data bytes have changed since the last reception.
  • Down Sample / Suspension Time: the message is processed at most once per configured interval (in milliseconds), regardless of how often it is received on the bus.

Note

If you use both Timeout Control and Down Sample, ensure the Suspension Time is shorter than the Timeout Time. Otherwise a timeout will be triggered even though messages are being received correctly.

Valid on Change and Down Sample can be combined: the message is processed when the suspension time expires, or immediately if the data bytes have changed.

COB-ID Configuration

Enter a fixed COB-ID directly, or derive it from Interface Variable links: - Use Basic Link: Interface Variable used as the base COB-ID value. - Use Offset Link: Optional Interface Variable added to the Basic Link.

A fixed COB-ID can only be changed from the Proemion Configurator. A linked COB-ID can change at runtime but takes effect only after Reset Communication is performed on the device.

In the Mask field, you can define a bit mask to match a range of COB-IDs with a single receive entry.

J1939 Channel

Use this option to receive J1939 messages longer than 8 bytes. The device handles the CMDT and BAM transport protocols automatically.

The CAN message ID is composed of the Parameter Group Number (PGN), the EDP/DP bits, and the source and destination addresses, all configured in this section.

  • PGN of Request: The Parameter Group Number of the J1939 message.
  • Info on Data Page (EDP and DP): Data page bits as defined in the SAE J1939 specification. Consult your J1939 reference and the target device's technical manual for the correct values.
  • Maximum: Maximum number of J1939 channels that can be open simultaneously. Read-only.

Source Address

Specifies the source address of the incoming J1939 message. - Use a fixed Source Address: Enter the address directly. - Link to an Interface Variable or Device Variable to supply the source address dynamically.

Destination Address

Specifies the address at which the device listens for incoming J1939 messages. - Use a fixed Destination Address: Enter the address directly. - Link to an Interface Variable or Device Variable to supply the destination address dynamically.

For more information on variable links, refer to Variable Links.

Status

The device maintains an internal RX status that cannot be read directly. The Status tab allows you to copy this status into an Interface Variable so it can be used elsewhere in the configuration (e.g. to trigger an error indicator).

  • Use Status Link: Enables the Status tab settings.

Source - Data Start-Bit within Data Type: The status bit to start reading from. Valid values are 0, 1, or 2 (e.g. bit 1 for timeout error status, bit 2 for remote frame received).

Destination - Link to Interface Variable: The Interface Variable that receives the status. - Data Start-Bit within Data Type: The bit position in the destination variable to start writing to. - Number of Bits Containing Data: How many bits of status data to copy.

Note

The sum of Data Start-Bit and Number of Bits must not exceed the total bit width of the destination variable's data type.

Mapping

The Mapping tab defines what happens to the data content of each received message. Each mapping entry specifies which bits of the message are copied to which internal variable, and under what condition.

  • Number of Mapping Entries: Read-only. Total number of mapping entries defined for this message.
  • New: Adds a new mapping entry based on the current configuration.
  • Change: Replaces the selected entry with the current configuration.
  • Delete: Removes the selected entry.

The same data from an incoming message can be mapped to multiple variables by creating multiple entries. Bytes can be mapped in any order. There is no requirement to process them sequentially.

Each mapping entry is configured across three sub-tabs:

Active Condition

Determines when this mapping entry is active. Use this to handle multiplexed messages, where the same COB-ID carries different data depending on the value of a multiplexer byte.

  • Active Condition is Always True: The data is mapped unconditionally on every received message.

When not always true, configure the multiplexer comparison: - Data Byte within Receive Message: Which byte of the received message contains the multiplexer value. - Start Bit within Data Type: Starting bit of the multiplexer within that byte. - Number of Bits Containing Data: How many bits of the multiplexer to evaluate. - Comparison operator and value: The entry is active when the multiplexer value satisfies the condition (=, <>, <, >).

For a worked example, see Multiplexer Example below.

Defines the destination variable and which bits of the message are copied into it.

  • Link to Interface Variable / Device Variable / Array Interface Parameter: The variable that receives the mapped data. Ensure the data type of the destination matches the source data to avoid incorrect interpretation.
  • Use Byte Swap: Reverses the byte order of the received data. Use for non-CANopen-compliant devices (e.g. Motorola-based) that transmit bytes in reverse order. Supported types: U16, S16, U32, S32, R32.
  • Data Start Bit within Receive Message: The first bit of the received message to copy.
  • Data Start Bit within Destination Variable: The bit position in the destination variable to start writing to.
  • Number of Bits Containing Data: How many bits to copy from the message into the destination variable.

Note

The sum of Data Start Bit and Number of Bits must not exceed the bit width of the destination data type.

To map a complete string of unknown or variable length into an Array Interface Parameter, enter 65535 in Number of Bits Containing Data. This instructs the device to copy the full string regardless of its actual length.

Replacement on Error

Defines fallback values written to the destination variable when an error occurs.

Action on Timeout - Use Timeout Replace Value: When the timeout defined in the Communication tab is exceeded, write a pre-defined value to the destination variable. - Timeout Replace Value: The decimal value to write on timeout.

Action on Mapping Error - Use Mapping Error Replace Value: If the received message is too short to supply the number of bits defined in the Data Link tab, write a pre-defined value instead. - Mapping Error Replace Value: The decimal value to write on mapping error.

Multiplexer Example

A multiplexer allows one CAN message ID to carry different data depending on the value of a designated byte (the multiplexer byte). The Active Condition tab of each mapping entry is used to filter on the multiplexer value, routing the data to the correct variable.

Scenario: An 8-byte CAN message uses Byte 1 as the multiplexer. Bytes 5 and 6 (bits 40–55) contain wheel temperature data. The destination variable depends on the multiplexer value:

  • Multiplexer = 05h → map bits 40–55 to wheel_temp_front_left
  • Multiplexer = 07h → map bits 40–55 to wheel_temp_rear_right

Mapping entry 1 - Active Condition tab: Set Data Byte = 1, Start Bit = 0, Number of Bits = 8, condition = = 05h.

Mapping entry 1 - Data Link tab: Data Start Bit within Receive Message = 40, Number of Bits = 16, destination = wheel_temp_front_left.

Mapping entry 2 - Active Condition tab: Set Data Byte = 1, Start Bit = 0, Number of Bits = 8, condition = = 07h.

Mapping entry 2 - Data Link tab: Data Start Bit within Receive Message = 40, Number of Bits = 16, destination = wheel_temp_rear_right.

The result is two mapping entries sharing the same COB-ID. Each fires only when the multiplexer byte matches its condition, routing the temperature bytes to the correct variable.

Jobs

This tab allows you to execute specific Jobs when the specified message(s) have been received. For more information, refer to Jobs.

Logging

This tab allows you to configure logging of the data when the specified message(s) have been received.