10 Interrupts
10-8
CP2E CPU Unit Software User’s Manual(W614)
In this example, bent parts are detected in a moving workpiece, such as an IC component. When the
sensor input (terminal 02 on terminal block 0CH = CIO 0.02) changes from OFF to ON, the interrupt
task is executed.
1
PLC Setup
Set IN2 to
Interrupt
in the interrupt input settings on the Built-in Input Tab Page.
2
Connecting Interrupt Input Terminals
Terminal 2 on terminal block 0CH is interrupt input IN2.
Interrupt task 2 corresponds to interrupt input 2.
10-2-3 Application Example
Sensor inp
u
t (interr
u
pt)
W
orkpiece
Sensor inp
u
t 1
Sensor inp
u
t 2
Sensor inp
u
t 3
Sensor inp
u
t (interr
u
pt inp
u
t 2)
CIO 0.02
Sensor inp
u
t
Sensor inp
u
t
Sensor inp
u
t
CIO 0.00
CIO 0.01
CIO 0.03
Reset inp
u
t
CIO 0.04
OK o
u
tp
u
t
CIO 100.00
N
G o
u
tp
u
t 1
CIO 100.01
N
G o
u
tp
u
t 2
CIO 100.02
N
G o
u
tp
u
t 3
CIO 100.03
N
G o
u
tp
u
t 4
CIO 100.04
Interr
u
pt task
exec
u
tion
Interr
u
pt task
exec
u
tion
Interr
u
pt task
exec
u
tion
S
en
s
or inp
u
t 3: CIO 0.03
S
en
s
or inp
u
t 2: CIO 0.01
S
en
s
or inp
u
t 1: CIO 0.00
Interr
u
pt inp
u
t (
s
en
s
or inp
u
t):
CIO 0.02
Re
s
et inp
u
t: CIO 0.04
NG o
u
tp
u
t 2: CIO 100.04
NG o
u
tp
u
t 3: CIO 100.03
NG o
u
tp
u
t 4: CIO 100.02
OK o
u
tp
u
t: CIO 100.00
NG o
u
tp
u
t 1: CIO 100.01
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: ......