Document Reference No.: ES_000008
S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide
Version 1.2
Clearance No.: ES #03
©2009-10 EasySync Ltd.
24
4.1.15
Get Status Flags (F)
Summary
Get CANbus and controller status. A two-byte BCD number is returned to correspond to the 8-
bits of the COMSTAT register of the PIC18F4680.
Definition
F<CR>
Parameters
None
Remarks
Example
F<CR>
Get CANbus status
Return Codes
xx<CR> = OK
xx = CANbus status (A bit set to “1” indicates a true condition):
bit 0 = Flag bit 1 –or– Flag bit 2 is set
bit 1 = Receive Warning: 127 >= Receive Error Counter > 95
bit 2 = Transmit Warning: Transmit Error Counter > 95
bit 3 = Receive Bus Passive: Receive Error Counter > 127
Will cause RED LED to Single Flash
bit 4 = Transmit Bus Passive: Transmit Error Counter > 127
Will cause RED LED to Single Flash
bit 5 = Transmit Bus-OFF: Transmit Error Counter > 255
Will cause RED LED to remain ON
bit 6 = Receive Buffer 1 Overflow
bit 7 = Receive Buffer 0 Overflow
<BELL> = ERROR