Engee documentation

CAN Getstate

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

blockType: EngeeFunction

Path in the library:

/Interfaces/CAN/CAN Getstate

Description

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

Block CAN Getstate It is used to get information about the status of the CAN bus and the number of I/O errors.

Ports

Output

# Status — the current status of the port in the form of a bus consisting of several signals
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 more 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

# Port: — the CAN port whose status is being queried

Details
Default value

"can0"

Program usage name

m_port

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step for receiving CAN data

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes