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)
the tire

Details

Signal value 1 in the bus, it means that the corresponding state is active.

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

  • WARNING — fewer errors 128.

  • PASSIVE — the transceiver stops actively correcting erroneous traffic on the line, the number of errors is lower 256.

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

  • STOPPED — the transceiver is stopped.

  • SLEEPING — The transceiver is in sleep mode.

Data types

Bool

Complex numbers support

No

# TxErrors — number of transmission errors
scalar

Details
Data types

UInt32

Complex numbers support

No

# RxErrors — number of reception errors
scalar

Details
Data types

UInt32

Complex numbers support

No

Parameters

Main group

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

Details

The CAN port whose status information needs to be received.

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