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:
|
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 |
|
| Complex numbers support |
No |
#
TxErrors
—
number of transmission errors
scalar
Details
| Data types |
|
| Complex numbers support |
No |
#
RxErrors
—
number of reception errors
scalar
Details
| Data types |
|
| 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 |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — calculation step in seconds for polling the status from a real-time application
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
