RITM-CANFD Setup
Configuring the CAN port of the FD module.
blockType: CFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package RITM blocks. |
Block RITM-CANFD Setup configures the selected interface in CAN FD mode: sets the nominal speed, data phase speed, and automatic recovery time after the Bus-off state, then switches the interface to the UP state. The setting is performed in the function Start before sockets are opened by receiving and transmitting blocks. When the model is completed, the block disables the interface.
Use one block for one physical port. RITM-CANFD Setup. Its output can be branched into several blocks. RITM-CANFD TX and RITM-CANFD RX, working with the same port.
Ports
Output
#
RITM-CAN Setup
—
descriptor of the configured CAN FD interface
scalar
Details
The output generates a service descriptor of the selected interface. It provides the dependency of the blocks RITM-CANFD TX and RITM-CANFD RX it depends on the port pre-configuration and does not contain CAN data. Do not change its value or use it in calculations.
| Data types |
|
| Complex numbers support |
No |
Parameters
Main group
#
Интерфейс CAN: —
CAN FD port
CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8
Details
The port numbers correspond to the markings on the KPM case «RITM».
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Скорость передачи: —
Rated speed
10 кбит/с | 20 кбит/с | 50 кбит/с | 100 кбит/с | 125 кбит/с | 250 кбит/с | 500 кбит/с | 800 кбит/с | 1 Мбит/с
Details
The speed of the arbitration phase. All network nodes must use the same rated speed.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Скорость фазы данных: —
data rate CAN FD
10 кбит/с | 20 кбит/с | 50 кбит/с | 100 кбит/с | 125 кбит/с | 250 кбит/с | 500 кбит/с | 800 кбит/с | 1 Мбит/с | 2 Мбит/с | 4 Мбит/с | 5 Мбит/с | 8 Мбит/с
Details
The data phase rate is used in frames with BRS = 1. For frames with BRS = 0 speed switching is not performed.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Время восстановления, мс: — automatic recovery after Bus-off
Details
Sets the delay for automatically restarting the interface after switching to the Bus-off state. Meaning 0 disables automatic recovery.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
