3.5 SJA1000 CAN Status
Users can use the Modbus command to get the CAN status of the
SJA1000 CAN controller which is applied in GW-7433D. The meaning of each
bit of the CAN status is as follow table 3-1. About how to get the CAN status
please refer to the section 4.2.2 (Special Data Addressing).
Bit
Name
Bus Status
Bit. 7
Error Status
Bit. 6
Transmit Status
Bit. 5
Receive Status
Bit. 4
Transmission
Complete Status
Bit. 3
Transmit Buffer
Bit. 2
Status
Data Overrun
Status
Bit. 1
Receive Buffer
Bit. 0
Status
Table 3-1 Bit interpretation of the CAN status
GW-7433D MODBUS TCP/RTU to CANopen Gateway User Manual
(Version 2.1.0, Aug/2019)
Value
bus-off; the SJA1000 is not allowed to access the CANopen
1
network
0
bus-on; the SJA1000 is ready to access the CANopen network.
error; at least one of the error counters has reached or exceeded
1
the CPU warning limit
0
ok; both error counters are under the warning limit
1
transmit; the SJA1000 is transmitting a message
0
idle; no transmit message is in progress
1
receive; the SJA1000 is receiving a message
0
idle; no receive message is in progress
complete; the last requested transmission has been successfully
1
completed
incomplete; the previously requested transmission is not yet
0
completed
1
released; the CPU may write a message into the transmit buffer
locked; the CPU cannot access the transmit buffer; a message is
0
waiting for transmission or is already in process
overrun; a message was lost because there was not enough
1
space for that message in the RXFIFO
absent; no data overrun has occurred since the last clear data
0
overrun command was given
1
full; one or more messages are available in the RXFIFO
0
empty; no message is available
Function
24