Technical description Chapter 9
APCI-/CPCI-1500
75
IMPORTANT!
If you use the APCI1500_OR_PRIORITY logic, you cannot use
edge events. If you use the APCI1500_AND logic, you can only use
one edge event.
Task:
An event can be generated for each port.
The first event is related to the first 8 input channels (port 1).
The second event is related to the next 6 input channels (port 2).
An interrupt is generated when one or both events have happened.
An event is a change of state (ex. Low
Æ
high) on one or several input channels
if an AND/OR/OR_PRIORITY logic has been defined.
Examples:
Example
1:
b_PortNbr
=
1
b_Logik
= APCI1500_AND
pc_EventMask
=
"3X100101"
An event is generated:
- when the input channels 2, 4 and 5 are on "0".
- when the input channels 1, 3 and 6 are on "1"
- and when a rising edge has been detected at input 8.
T
Input 8
Input 7
Input 6
Input 5
Input 4
Input 3
Input 2
Input 1
Event
Example
2:
b_PortNbr
=
1
b_Logik
=
APCI1500_OR_PRIORITY
pc_EventMask
=
"1X100101"
An event is generated :
- when the input channels 2, 4 or 5 are on "0"
- or when the input channels 1, 6 or 8 are on "1".