
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
301
Appendix C User Interrupts
For example, to enable EII Event 1 and EII Event 3:
EII Event 1 = 4, EII Event 3 = 16
4 + 16 = 20 (enter this value)
UIF - User Interrupt Flush
The UIF instruction is used to flush (remove pending interrupts from the system) selected user
interrupts. The table below shows the types of interrupts with their corresponding flush bits:
To flush interrupts:
1. Select which interrupts you want to flush.
2. Find the Decimal Value for the interrupt(s) you selected.
3. Add the Decimal Values if you selected more than one type of interrupt.
4. Enter the sum into the UIF instruction.
For example, to disable EII Event 1 and EII Event 3:
EII Event 1 = 4, EII Event 3 = 16
4 + 16 = 20 (enter this value)
Table 75 - Types of Interrupts Disabled by the UIF Instruction
Interrupt Type
Element
Decimal Value
Corresponding Bit
Plug-In Module
UPM4
8388608
bit 23
Plug-In Module
UPM3
4194304
bit 22
Plug-In Module
UPM2
2097152
bit 21
Plug-In Module
UPM1
1048576
bit 20
Plug-In Module
UPM0
524288
bit 19
STI - Selectable Timed Interrupt
STI3
262144
bit 18
STI - Selectable Timed Interrupt
STI2
131072
bit 17
STI - Selectable Timed Interrupt
STI1
65536
bit 16
STI - Selectable Timed Interrupt
STI0
32768
bit 15
EII - Event Input Interrupt
Event 7
16384
bit 14
EII - Event Input Interrupt
Event 6
8192
bit 13
EII - Event Input Interrupt
Event 5
4096
bit 12
EII - Event Input Interrupt
Event 4
2048
bit 11
HSC - High-Speed Counter
HSC5
1024
bit 10
HSC - High-Speed Counter
HSC4
512
bit 9
HSC - High-Speed Counter
HSC3
256
bit 8
HSC - High-Speed Counter
HSC2
128
bit 7
HSC - High-Speed Counter
HSC1
64
bit 6
HSC - High-Speed Counter
HSC0
32
bit 5
EII - Event Input Interrupt
Event 3
16
bit 4
EII - Event Input Interrupt
Event 2
8
bit 3
EII - Event Input Interrupt
Event 1
4
bit 2
EII - Event Input Interrupt
Event 0
2
bit 1
UFR - User Fault Routine Interrupt
UFR
1
bit 0 (reserved)
UIF
UIF
UIF (name or Pin ID)
or ENO(Pin ID)
Enable
IRQType