Programming the digital input/output is carried out in the operation
mode single. The subdevice must have the type ME_TYPE_DI. The
interrupt processing is controlled with the functions
…
Please observe the ME-iDS manual and the ME-iDS help file (*.chm)
for the procedure. You can open both of these documents through
the “ME-iDS Control Center” or through the Windows Start menu.
4.3.1 Bit-Pattern Change
In the bit-pattern change mode, one or more bits that are to be
monito- red for a change of state can be defined (masked). A 32-
bit-wide argument per subdevice contains the mask. For each input
pin both one bit for rising edge and one bit for falling edge is availa-
ble. If the state of at least one bit masked with a "1" changes (0
→
1 or 1
→
0), an interrupt is issued (see picture 21 on page 36).
In what is known as the "extended format" of interrupt handling
(see the ME-iDS manual), two bits are available for the interrupt
status of each pin. One is for the rising edge, and one for the fall-
ing edge. The bits for the falling edges are assigned to the bit
b 15…0, while the bits for the rising edges are assigned to the
bits b 31…16.