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.
Содержание MintDrive
Страница 2: ...MN1274 06 2001 Installation Manual Installation Manual...
Страница 3: ......
Страница 13: ...xii...
Страница 56: ...43 Figure 22 Auxiliary encoder circuit...
Страница 91: ...78...
Страница 97: ...84...
Страница 109: ...96...
Страница 111: ...98 Figure A 1 MintDrive Closed Loop System Motor Speed Filter 16 Sample Filter...
Страница 119: ...106...
Страница 141: ...128...
Страница 147: ...134...
Страница 154: ......