CAN Getstate
Getting information about the status of the CAN interface and the number of I/O errors.
blockType: EngeeFunction
|
Path in the library:
|
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 |
|
| 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 |
