![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268896.webp)
857
Interrupt Control Instructions
Section 3-20
Applicable Program Areas
Description
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
.
Flags
Related Flags and Words
The following word is in the Auxiliary Area.
Precautions
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.)
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
Not allowed
Name
Label
Operation
Error Flag
ER
ON if DI(693) is executed from an interrupt task.
OFF in all other cases.
Name
Address
Contents
Disable Setting for Power
OFF Interrupts
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.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...