ADwin-Gold II
, Manual February 2013
53
System functions
Event_Enable
ADwin
Event_Enable
Event_Enable
selects the event source.
Syntax
#INCLUDE
ADwinGoldII.inc
Event_Enable
(
pattern
)
Parameters
Notes
Only one of the bits should be set.
The instructions
Event_Enable
and
En_CAN_Interrupt
may not be
used in parallel, because both instructions set the used event source.
See also
,
Valid for
Gold II
Example
#INCLUDE
ADwinGoldII.inc
Init:
Rem Set CAN interface 2 as event source
Event_Enable
(
00010b
)
T11
pattern
Bit pattern, where the set bit selects the event
source:
Bit 0: CAN interface 1.
Bit 1: CAN interface 2.
Bit 3: TiCo processr with instruction
Trigger_
Event
.
Bit 4: Event input at the DSub socket DIO 00-15
(IN, see
); default.
All other bits are reserved.
LONG