Engee documentation

RITM-CANFD TX

Transmission of CAN and CAN FD messages.

blockType: SubSystem

Path in the library:

/RITM/RITM CAN FD/RITM-CANFD TX

Description

To work with the block, install/update the support package RITM blocks.

Block RITM-CANFD TX transmits messages via the selected CAN FD interface. The format of each message is determined by the field ProtocolMode the input bus. The socket opens in the function Start after configuring the interface with the block RITM-CANFD Setup.

For a classic frame, set ProtocolMode = 0, Length ≤ 8, BRS = 0 and ESI = 0. For the CAN FD frame, set ProtocolMode = 1, Length ≤ 64 and Remote = 0.

Ports

Input

# Amount — Number of messages to send
scalar

Details

Sets the number of messages to be sent at the current calculation step. Value 0 disables transmission at the current step.

Data types

UInt32

Complex numbers support

I don’t

# Messages — array of messages to send
bus

Details

Array of tires CAN_FD_MESSAGE_BUS. The length of the array is set by the parameter Максимальное число сообщений:. The Input Amount specifies how many first elements of the array need to be passed in the current step.

Data types

BusSignal

Complex numbers support

I don’t

# Setup — the handle of the configured interface
scalar

Details

Connect this Input to the output of the unit RITM-CANFD Setup which configures the same physical port.

Data types

Float64

Complex numbers support

I don’t

Parameters

Параметры:

# Интерфейс CAN: — the message transfer port
CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8

Details

Select the same port that is specified in the connected unit. RITM-CANFD Setup.

Values

CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8

Default value

CAN 1

Program usage name

m_interfaceCAN

Tunable

No

Evaluatable

Yes

# Максимальное число сообщений: — message limit per step

Details

Sets the length of the bus array at the Messages input and limits the value of the Amount input. The working frame buffer has a fixed size and is not allocated dynamically during the calculation step.

Default value

1

Program usage name

m_maxMsgNum

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — transfer period

Details

Sets the block calculation step in seconds. Meaning −1 means an inherited step.

Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes