10 Interrupts
10-2
CP2E CPU Unit Software User’s Manual(W614)
10-1 Interrupts
CP2E CPU Units normally repeat processes in the following order: overseeing processes, program exe-
cution, I/O refreshing, peripheral servicing. During the program execution stage, cyclic tasks (ladder
programs) are executed.
The interrupt function, on the other hand, allows a specified condition to interrupt a cycle and execute a
specified program.
Interrupts can thus be used to perform high-speed processing that is not restricted by the cycle time.
The CP2E performs the following processing when an interrupt occurs.
(1)When an interrupt occurs, execution of the ladder programs in cyclic tasks is interrupted.
(2)The ladder program in the interrupt task is executed.
(
3
)When the interrupt task is finished, the ladder program that was being executed is returned to.
Interrupts are classified by the interrupt factor. There are the following three types of interrupts.
•
Changes in status of built-in inputs on the CPU Unit
→
•
Specified intervals measured by internal timers
→
•
PVs of high-speed counter
→
10-1-1 Overview
Interrupt Factors and Types of Interrupts
E
N
D
E
N
D
Cycle
Cyclic tasks
(ladder programs)
I/O refreshing
(1)Interr
u
pt occ
u
rs
(2)Interr
u
pt task exec
u
ted
(3)
W
hen the interr
u
pt task is finished,
the ladder diagram that
w
as
b
eing
exec
u
ted is ret
u
rned to.
Ladder program
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......