Omron SYSMAC CS Series Instruction & Reference Manual page 679

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

EI
Instruction
ENABLE INTERRUPTS
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Flags
Name
Error Flag
Related Auxiliary Area Words and Bits
Name
Disable Setting for Power OFF
Interrupts
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 except the power OFF interrupt (I/O interrupts,
scheduled interrupts, and external interrupts).
• When a CJ2, CS1-H, CJ1-H, CJ1M and CS1D CPU Unit for Single-CPU System Unit is being used
and power OFF interrupt processing has been disabled with DI(693), EI(694) will also release the
hold on power OFF interrupt processing. After DI(593) has been executed, the CPU Unit will not be
reset even if a power interruption is detected. The CPU Unit will be reset after all of the instructions
between DI(693) and EI(694) have been executed. Refer to 3-21-4 DISABLE INTERRUPTS: DI(693)
for details on using DI(693) to disable power OFF interrupt processing.
Precautions
• EI(694) does not require an execution condition. It is always executed with an ON execution
condition.
• 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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
EI
---
Block program areas
Step program areas
OK
OK
Label
ER
• ON if EI(694) is executed from an interrupt task.
• OFF in all other cases.
Address
A530
A5A5 hex:
Enables the Disable Setting for Power OFF Interrupts. Power OFF processing (excluding
execution of the Power OFF interrupt task) is masked between the DI(694) and EI(694)
instructions, so instructions up to EI(694) are executed.
Any other value:
Disables the Power OFF Processing mask.
Function
code
Enables execution of all interrupt tasks that were
694
disabled with DI(693).
EI
EI(694)
Subroutines
Interrupt tasks
OK
Not allowed
Operation
Contents
3. Instructions
Function
SFC action or
transition programs
OK
645
3

Advertisement

Table of Contents
loading

Table of Contents