Engee documentation

RITM-CAN TX

Issuing CAN messages.

blockType: CFunction

Path in the library:

/RITM/RITM CAN/RITM-CAN TX

Description

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

Block RITM-CAN TX it is used for issuing CAN messages.

Ports

Input

# Number of messages — number of CAN messages to be transmitted from the input array Messages
scalar

Details

Sets the number of messages , which must be transmitted at the current calculation step from the input array Messages.

The block sends the first array elements Messages. Value must not exceed the length of the input array and the value of the parameter Максимальное число сообщений:. When messages are not transmitted.

Data types

UInt32

Complex numbers support

I don’t

# Messages — array of CAN messages to send
bus

Details

Input array of messages of the type CAN_MESSAGE_BUS intended for transmission to the CAN network. The type of each element is the CAN message bus (ID, format/remote flags, etc., length and data bytes).

Data types

BusSignal

Complex numbers support

I don’t

# RITM-CAN Setup — descriptor of the configured CAN interface
scalar

Details

The input port accepts the handle of the CAN interface configured by the unit RITM-CAN Setup. Connect this Input to the RITM-CAN RX/TX output of the corresponding unit RITM-CAN Setup, which configures the desired physical port.

Data types

Float64

Complex numbers support

I don’t

Parameters

Параметры:

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

Details

The port numbers are indicated on the case of the KPM "RITM".

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

# Максимальное число сообщений: — maximum possible number of messages

Details

The maximum possible value for the input port is the Number of messages and the length of the Message vector.

Default value

1

Program usage name

m_maxMsgNum

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds for sending CAN messages from a real-time application

Details
Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes