Omron SYSMAC CP Series Instruction & Reference Manual page 343

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

EI
Instruction
ENABLE INTERRUPTS
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Flags
Name
Error Flag
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
0.00
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
EI
---
Label
P_ER
• ON if EI(694) is executed from an interrupt task.
• OFF in all other cases.
DI
Disables execution of all interrupt tasks.
EI
Enables execution of all disabled interrupt
tasks.
Function
code
Enables execution of all interrupt tasks that were
694
disabled with DI(693).
EI
EI(694)
Subroutines
OK
Operation
2 Instructions
Function
Interrupt tasks
Not allowed
2-307
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents