2-307
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Interrupt Control Instructions
2
EI
EI
Applicable Program Areas
Flags
Function
EI(694) is executed from the main program to temporarily enable all interrupt tasks that were disabled
by DI(693). DI(693) disables all interrupts (I/O interrupts, scheduled interrupts).
Precautions
EI(694) does not require an execution condition. It is always executed with an ON execution condi-
tion.
EI(694) enables the interrupt tasks that were disabled by DI(693). It cannot unmask I/O interrupts that
have not been unmasked by MSKS(690) or set scheduled interrupts that have not been set by
MSKS(690).
EI(694) cannot be executed in an interrupt task.
Sample program
Instruction Mnemonic Variations Function
code Function
ENABLE INTERRUPTS EI --- 694 Enables execution of all interrupt tasks that were
disabled with DI(693).
Symbol
EI
Area Step program areas Subroutines Interrupt tasks
Usage OK OK Not allowed
Name Label Operation
Error Flag P_ER ON if EI(694) is executed from an interrupt task.
OFF in all other cases.
EI(694)
Disables execution of all interrupt tasks.
Enables execution of all disabled interrupt
tasks.
0.00
EI
DI