6F3B0250
226 T1/T1S User’s Manual
7. Instructions

FUN 140 EI Enable interrupt

Expression
Input -[ EI ]- Output
Function
When the input is ON, this instruction enables the execution of user designated interrupt operation, i.e.
timer interrupt program and I/O interrupt programs.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution ON
Operand
No operand is req u ir ed.
Example
In the above example, the DI instruction disables the interrupt. Then the EI instruction enables the
interrupt again. As a result, the rung 2 instr uct ions can be executed without int er r upt ion between
each instructions.
Note
· Refer to the DI inst r uction (FUN 141).
· If an interrupt factor is occurred during the interrupt disabled state, the interrupt is kept waiting and
it will be executed just af t er the EI instruct ion is executed.
· The EI inst r uction can be used only in the main progr am .
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net