As each channel of the HLI module can be configured independently, any mix of the three modes High Speed Input, Latch Input and Interrupt may exist.
If the module is configured in a split mode, where there are interrupts and latched inputs, note that the latched input data is read and cleared at the interrupt service time and may not be valid at the end of the scan. This results in different values of the input signal within the interrupt routine and in the rest of the program. The following diagram illustrates this situation.
Value of a latched input signal as read by the interrupt routine and at the end of the scan during the normal I/O routine: