Engee documentation

RITM-CAN GetState

Getting information about the status of the CAN interface and the number of I/O errors.

blockType: SubSystem

Path in the library:

/RITM/RITM CAN/RITM-CAN GetState

Description

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

Block RITM-CAN GetState It is used to get information about the status of the CAN interface and the number of I/O errors.

Ports

Output

# Status — current status of the port (multi-signal bus)
vector

Details

The value of the 1 signal in the bus means that the corresponding state is active.

  • ACTIVE — the transceiver is working properly, the number of errors is less than 96.

  • WARNING — the number of errors is less than 128.

  • PASSIVE — the transceiver stops actively correcting erroneous traffic on the line if the error count is less than 256.

  • BUS_OFF — the transceiver stops participating in the exchange, the number of errors is greater than 256.

  • STOPPED — the transceiver is stopped.

  • SLEEPING — the transceiver is in sleep mode.

Data types

Float64

Complex numbers support

No

# TxErrors — number of transmission errors
scalar

Details
Data types

Float64

Complex numbers support

No

# RxErrors — number of reception errors
scalar

Details
Data types

Float64

Complex numbers support

No

Parameters

Main group

# Интерфейс CAN: — the CAN port whose status is being queried
CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8

Details
Values

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

Default value

CAN 1

Program usage name

ss_interfaceCAN

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds for polling the status from a real-time application

Details
Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes