113
B.2.7
Monitoring CAN events
When a node’s status changes (live or dead for example), it will generate a CAN message to inform the
network manager of the change. The network manager will then generate a Mint event. The type of
events that are supported on the CAN bus 1 are listed below:
Event Number
Mint Constant
0
_cetNONE
1
_cetBUS_OPERATIONAL
2
_cetBUS_PASSIVE
3
_cetBUS_OFF
4
_cetRECEIVE_OVERRUN
5
_cetDIED
6
_cetLIVE
7
Reserved
8
Reserved
9
Reserved
10
Reserved
11
_cetEMERGENCY
12
_cetUNIOP_COMMS_UPDATE
13
_cetTRANSMIT_OVERRUN
These events are buffered until they are read using the
CANEVENT
keyword. When one or more events
are held in the buffer the Mint CAN event handler (subroutine) for bus 1 will be called (
#CAN1
) if it exists.
The
CANEVENT
and
CANEVENTINFO
keywords should be used in this subroutine to determine which
event has occurred and its associated information.
#CAN1
? ”CAN bus 1 : Event ”,CANEVENT.1,
? ” occurred with info ”,CANEVENTINFO.1,”.”
RETURN
Alternatively, the
VIEW CANEVENT
command can be used at the Mint command line to continuously
monitor the CAN bus for events:
C001>VIEW CANEVENT.1
The act of reading
CANEVENT
and
CANEVENTINFO
will remove the event from the buffer, so the next
time the subroutine is called the following event will be read.
CAN events can also be monitored using the CAN window in Mint WorkBench.
Summary of Contents for MintDrive
Page 2: ...MN1274 06 2001 Installation Manual Installation Manual...
Page 3: ......
Page 13: ...xii...
Page 56: ...43 Figure 22 Auxiliary encoder circuit...
Page 91: ...78...
Page 97: ...84...
Page 109: ...96...
Page 111: ...98 Figure A 1 MintDrive Closed Loop System Motor Speed Filter 16 Sample Filter...
Page 119: ...106...
Page 141: ...128...
Page 147: ...134...
Page 154: ......