8-37
8 Pulse Outputs
CJ2M CPU Unit Pulse I/O Module User’s Manual
8-4 Implementing Interrupt Feeding
8
8-4-4 INTERRUPT FEEDING Instruction:
IFEED(892)
z Setting the Interrupt Input to Use
A specified combination of pulse output and interrupt input must be used for the IFEED(892) instruc-
tion. You cannot change the combinations. The pulse output and interrupt input are specified with
operand P (port specifier) of the IFEED(892) instruction.
Precautions for Correct UsePrecautions for Correct Use
• Before executing the IFEED(892) instruction, use the MSKS(690) instruction to disable the
specified interrupt if it is currently not masked. An instruction error will occur if the IFEED(892)
instruction is executed when the interrupt is not masked.
• Interrupt inputs 0, 1, 4, and 5 are used with the IFEED(892) instruction. The terminals used for
interrupt inputs 0 and 1 are also used for the origin and origin proximity inputs for pulse output
0. The terminals used for interrupt inputs 4 and 5 are also used for the origin and origin prox-
imity inputs for pulse output 2. If the IFEED(892) instruction is used for pulse output 0 or 2, do
not use the origin search function.
8-4-4 INTERRUPT FEEDING Instruction: IFEED(892)
P Pulse output Interrupt input
#0000 Pulse output 0 Interrupt input 0
#0001 Pulse output 1 Interrupt input 1
#0002 Pulse output 2 Interrupt input 4
#0003 Pulse output 3 Interrupt input 5
Deceleration rate
IFEED executed
Time
Pulse frequency
Speed
control
Position
control
Specified number of pulses
Target
frequency
Acceleration
rate
Interrupt input occurs.
S: First word of
setting table
@IFEED
#0100
D0
D0
D1
D2
D3
D4
D5
Acceleration rate:
50 pps/4 ms
Deceleration rate:
20 pps/4 ms
Target frequency:
500 pps
Number of output pulses:
100 pulses
P: Port specifier, Example: Interrupt input 0 and pulse output 0
C: Control data, CW/CCW outputs and CW direction
500 pps
20 pps/4 ms
50 pps/4 ms
#0000
#0032
#0014
#01F4
#0000
#0064
#0000
Execution condition
IFEED executed
Time
Pulse frequency
Speed
control
Position
control
100 pulses
Interrupt input 0 occurs.
S:
S+1:
S+2:
S+3:
S+4:
S+5: