Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 735

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Interrupt Control Instructions
3-19-4 DISABLE INTERRUPTS: DI(693)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Description
Flags
Precautions
702
Scheduled Interrupts
When W0.01 turns ON in the following example, CLI(691) sets the time to the
first schedule interrupt 10.5 ms (0069 hex = 105 decimal) assuming that the
schedule interrupt interval unit is set to 0.1 ms in the PLC Setup.
W0.01
CLI
N
4
S
D1100
High-speed Counter Interrupts
When W0.02 turns ON in the following example, CLI(691) clears all interrupts
stored for high-speed counter interrupt 0.
W0.02
CLI
N
10
S
#0001
Disables execution of all interrupt tasks.
DI(693)
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
DI(693) is executed from the main program to temporarily disable all interrupt
tasks (input interrupts, scheduled interrupts, high-speed counter interrupts,
and external interrupts).
All interrupt tasks will be disabled until they are enabled again by execution of
EI(694).
Name
Label
Error Flag
ER
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 at a time. To disable
more than one cycle execution task, insert DI(693) in each cyclic task. Any
interrupts that occur while one cycle execution task is being executed will be
executed after the cycle execution task has been completed as shown in the
following example unless they are disabled by CLI(691).
15
D1100
0
Step program areas
Subroutines
OK
Operation
ON if DI(693) is executed from an interrupt task.
OFF in all other cases.
Section 3-19
0
0
6
9
DI(693)
@DI(693)
Not supported
Interrupt tasks
Not allowed

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents