![Jäger ADwin-Gold II Скачать руководство пользователя страница 154](http://html1.mh-extra.com/html/jager-0/adwin-gold-ii/adwin-gold-ii_manual_3209266154.webp)
CAN interface
En_CAN_Interrupt
ADwin
148
ADwin-Gold II
, Manual February 2013
En_CAN_Interrupt
En_CAN_Interrupt
configures a specified message object of a CAN inter-
face to generate an external event when a message arrives.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
En_CAN_Interrupt
(
can_no
,
msg_no
)
Parameters
Notes
- / -
See also
,
Valid for
Gold II-CAN
Example
Rem Please select the appropriate include for ADbasic /
TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Init:
Init_CAN
(
1
)
'Initialize CAN controller 1
En_Receive
(
1
,
1
,
200
,
0
)
'Initialize message object 1 of
'controller 1
'to receive CAN messages with
'identifier 200
En_CAN_Interrupt
(
1
,
1
)
'Enable triggering of interrupts
'(ext. EVENT) when receiving the
'message object 1
T11 TiCo
can_no
Number (1, 2) of CAN interface.
LONG
msg_no
Number (1…15) of message object.
LONG