EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 735

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
702
Interrupt Control Instructions Section 3-19
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.
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.
3-19-4 DISABLE INTERRUPTS: DI(693)
Purpose Disables execution of all interrupt tasks.
Ladder Symbol
Variations
Applicable Program Areas
Description 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).
Flags
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 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).
CLI
4
D1100
W0.01
N
S
D1100
0
15
9006
CLI
10
#0001
W0.02
N
S
DI(693)
Variations Executed Each Cycle for ON Condition DI(693)
Executed Once for Upward Differentiation @DI(693)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
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.

Table of Contents

Related product manuals