FX Series Positioning Controllers Program Examples 9
9-18
9.4.2 Linear interpolation (FX
2N
-20GM)
1) Outline of positioning
The machine moves to the target address in a linear route, waits until an auxiliary unit fin-
ishes its work, then returns to the zero point.
2) Operating procedure
c
The machine returns to the zero point by the start command only at the first time.
d
The machine moves to the target address in a linear route.
e
The output Y0 turns on and off.
f
The machine returns to the zero point (0, 0).
3) Operation chart
4) Program
5) Parameter
Set the positioning parameter No. 16 (mechanical zero point address) to "0" for both the X
and Y axes. For other parameters, refer to Paragraph 9.2.4.
Mechanical
zero point
Y axis
X axis
Target address (1000, 800)
The output Y0 turns on and off.
Line No. Instruction Description
O0, N0 LD M9057;
N1 FNC00(CJ) P254; Jumps to P254 if the zero point return
completion flag M9057 is ON.
N2 cod28(DRVZ); Returns the machine to the zero point
(mechanical zero point address = 0, 0).
N3 P254;
N4 cod01(LIN) x1000 y800 f1200; Moves the machine to the target address
(1,000, 800) in a linear route.
N5 SET Y0; Turns on Y0.
N6 cod04(TMR) K150; Sets the operation wait time to "1.5 sec".
N7 RST Y0; Turns off Y0.
N8 cod04(TMR) K150; Sets the OFF wait time to "1.5 sec".
N9 cod01(LIN) x0 y0 f1200; Moves the machine to the zero point in a
linear route.
N10 m02(END);