Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 896

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Interrupt Control Instructions
Applicable Program Areas
Description
Flags
Related Flags and Words
Precautions
Block program areas
OK
OK
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).
CS1-H, CJ1-H, and CJ1M CPU Units and Power OFF Interrupts
When a CS1-H, CJ1-H, and CJ1M CPU Unit is being used, power OFF inter-
rupt processing can be disabled simultaneously when A503 (the Disable Set-
ting 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.
Name
Label
Error Flag
ER
The following word is in the Auxiliary Area.
Name
Disable Setting for Power
OFF Interrupts
All interrupt tasks will remain disabled until EI(694) is executed.
DI(693) cannot be executed from an interrupt task.
DI(693) cannot be executed for more than one cyclic task. To disable more
than one cycle execution task, insert DI(693) in each cyclic task. Any inter-
rupts that occur while one cycle execution task is being executed will be exe-
cuted after the cycle execution task has been completed unless they are
disabled by CLI(691) as shown in the following example.
When using DI(693) to disable Power OFF Interrupt Processing in a CS1-H,
CJ1-H, and CJ1M CPU Unit, it is possible to disable the processing through
the cyclic tasks. (The disabled condition is released after the completion of all
tasks that were started.)
Step program areas
Subroutines
OK
Operation
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
instructions up to EI(694) are exe-
cuted.
Section 3-20
Interrupt tasks
Not allowed
Contents
857

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents