3. Instructions
DI
Instruction
DISABLE 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
DI(693) is executed from the main program to temporarily disable all interrupt tasks except the power
OFF interrupt (I/O interrupts, scheduled interrupts, and external interrupts).
All interrupt tasks will be disabled until they are enabled again by execution of EI(694).
When a CJ2, CS1-H, CJ1-H, CJ1M and CS1D (for Single-CPU System) CPU Unit is being used, power
OFF interrupt processing can be disabled simultaneously when A503 (the Disable Setting for Power
OFF Interrupts) is set to A5A5 hex. Even if a power interruption is detected after DI(693) has been
executed, the CPU Unit will be reset after the program's instructions have been executed in order up to
EI(694) or the END(001) instruction in the last task.
If the power OFF interrupt task is enabled, the CPU Unit will be reset after execution of the power OFF
interrupt task. For details, refer to information on the power OFF interrupt task in the CS/CJ Series
Programming Manual or the CJ2 CPU Unit Software Operation Manual (W473).
Precautions
All interrupt tasks will remain disabled until EI(694) is executed.
DI(693) cannot be executed from an interrupt task.
716
Mnemonic
Variations
DI
@DI
Block program areas
Step program areas
OK
OK
Label
ER
• ON if DI(693) 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 instruc-
tions up to EI(694) are executed.
• Other than hex #A5A5: Disable power OFF interrupt processing
Function
code
Disables execution of all interrupt tasks except the
693
power OFF interrupt.
DI
DI(693)
Subroutines
Interrupt tasks
OK
Not allowed
Operation
Contents
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?