Publication 1763-RM001C-EN-P - October 2009
266
Using Interrupts
UIE - User Interrupt
Enable
Instruction Type: output
The UIE instruction is used to enable selected user interrupts. The table
below shows the types of interrupts with their corresponding enable bits:
To enable interrupt(s):
1.
Select which interrupts you want to enable.
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 UIE instruction.
For example, to enable EII Event 1 and EII Event 3:
EII Event 1 = 32, EII Event 3 = 4
32 + 4 = 36 (enter this value)
UIE
User Interrupt Enable
Interrupt Types
4
UIE
Execution Time for the UIE Instruction
Controller
When Rung Is:
True
False
MicroLogix 1100
9.28
μ
s
0.87
μ
s
Types of Interrupts Disabled by the UIE Instruction
Interrupt
Element
Decimal
Value
Corresponding
Bit
EII - Event Input Interrupts
Event 0
64
bit 6
EII - Event Input Interrupts
Event 1
32
bit 5
HSC - High-Speed Counter
HSC0
16
bit 4
EII - Event Input Interrupts
Event 2
8
bit 3
EII - Event Input Interrupts
Event 3
4
bit 2
Reserved
Reserved
2
bit 1
STI - Selectable Timed Interrupts
STI
1
bit 0
Note: Bits 7 to 15 must be set to zero.
ATTENTION
If you enable interrupts during the program scan via an
OTL, OTE, or UIE, this instruction
must
be the
last
instruction executed on the rung (last instruction on last
branch). It is recommended this be the only output
instruction on the rung.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive