Skip to main content

coTfsSDOInjectAbortMsg

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE Note: Before using this function you have to call coTfsSetNodeId to set the internal node ID.

Function Syntax

Description

This function inserts a SDO Abort Code message during the following cotfs command. Only one message is supported and the insertion is only possible for the directly following command. The inserted message is sent directly after the x.message, whereas x is defined with transmitCounter. If less messages than expected are sent by the following command (transmitCounter number of sent messages), the insertion of the message is canceled.

Parameters

  • canId: CAN identifier, highest bit for extended and standard CAN identifier message.
  • index: Object index
  • subIndex: Object subindex
  • abortCode: SDO abort code
  • transmitCounter: Specifies the number of necessary sent messages by the CANopen® test module after that the message will be inserted or which message number will be replaced. If not enough messages were sent by the following cotfs command, no message will be inserted/replaced at all (transmitCounter = 1..x).
  • replace:
    • 0: the message to be injected is sent after the regular planned CAN message
    • 1: the regular planned CAN message is replaced with the message to be injected

Return Values

Error code

Example

Used Constants