12-25
12 Pulse Outputs
CP2E CPU Unit Software User’s Manual(W614)
12-4 Imp
leme
n
tin
g
In
terrup
t F
eedin
g
12
12
-4-
3
A
p
plica
tion Example
The IFEED instruction is executed after turning interrupt input 6 to OFF with the MSKS instruction.
Precautions for Correct Use
Precautions for Correct Use
• Before executing the IFEED instruction, use the MSKS instruction to disable the specified
interrupt if it is currently not masked. An instruction error will occur if the IFEED instruction is
executed when the interrupt is not masked.
• Interrupt inputs 6, 7,
8
, and 9 are used with the IFEED instruction. The terminals used for inter-
rupt inputs 6, 7,
8
and 9 are also used for the origin and origin proximity inputs for pulse out-
puts. If the IFEED instruction is used for pulse output, do not use the origin search function.
z
Checking Status during Interrupt Feeding
The interrupt feeding status can be read from the following bits.
Ladder Program
Name
Pulse
output 0
Pulse
output 1
Pulse
output 2
Pulse
output 3
Refresh timing
Interrupt
Feeding In-
progress Flag
A2
8
0.0
8
A2
8
1.0
8
A56.0
8
A57.0
8
• Cleared when power is turned ON.
• Cleared when starting/stopping operation.
• Cleared after completing interrupt feeding.
• Turned ON when interrupt input is received
after starting pulse output with IFEED instruc-
tion
Interrupt
Feeding Error
Flag
A2
8
0.09
A2
8
1.09
A56.09
A57.09
• Cleared when power is turned ON.
• Cleared when operation starts.
• Cleared when IFEED instruction processing is
started.
• Turned ON if an overflow or underflow occurs
when an interrupt input is received, or if an
overflow or underflow occurs while the speci-
fied number of pulses is being moved, after
operation is started with the IFEED instruction
with the origin defined.
Fir
s
t word of
s
etting t
ab
le
@IFEED
#0100
D0
D0
D1
D2
D3
D4
D5
Acceler
a
tion r
a
te:
50 Hz/4 m
s
Deceler
a
tion r
a
te:
20 Hz/4 m
s
T
a
rget fre
qu
ency:
500 Hz
N
u
m
b
er of o
u
tp
u
t p
u
l
s
e
s
:
100 p
u
l
s
e
s
Interr
u
pt inp
u
t 6
a
nd p
u
l
s
e o
u
tp
u
t 0
P
u
l
s
e + direction
a
nd CW direction
500 Hz
20 Hz/4 m
s
50 Hz/4 m
s
#0000
#0032
#0014
#01F4
#0000
#0064
#0000
Exec
u
tion condition
IFEED exec
u
ted
Time
P
u
l
s
e fre
qu
ency
S
peed
control
Po
s
ition
control
100 p
u
l
s
e
s
Interr
u
pt inp
u
t 6 occ
u
r
s
.
S
:
S
+1:
S
+2:
S
+3:
S
+4:
S
+5:
@M
S
K
S
116
#0001
Interr
u
ptinp
u
t 6
Inp
u
t
s
ign
a
l OFF detection
W0.00
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: ......