FX Series Positioning Controllers Program Examples 9
9-9
9.3.3 Repetitious operation (FX
2N
-10GM, FX
2N
-20GM)
1) Outline of positioning
The machine performs positioning operation by repeating constant-quantity positioning sev-
eral times.
2) Operating procedure
c
The machine returns to the zero point by the start command only at the first time.
d
The machine repeats constant-quantity feed 10 times, then returns to the electrical zero point.
3) Operation chart
4) Program
5) Parameter
Set the positioning parameter No. 16 (mechanical zero point address) to "-130". For other
parameters, refer to Paragraph 9.2.4.
Speed
Y0 ON
0-130
(Return to the zero point)
Movement distance
: Mechanical zero point
: Electrical zero point
Line No. Instruction Description
Ox0, N0 FNC02(CALL) P127; Calls a subroutine for return to the zero point.
N1 cod91(INC); Specifies the incremental address.
N2 FNC08(RPT) K10; Sets the number of times of repetition to "10".
N3 cod00(DRV) x100; Moves the machine to the target position "100".
N4 SET Y0; Turns on Y0.
N5 cod04(TMR) K150; Sets the wait time to "1.5 sec".
N6 RST Y0; Turns off Y0.
N7 cod04(TMR) K150; Sets the OFF wait time to "1.5 sec".
N8 FNC09(RPE); Finishes repetitious motion.
N9 cod30(DRVR); Returns the machine to the electrical zero point.
N10 m02(END);
N11 P127; Subroutine for return to the zero point.
N12 LD M9057;
N13 FNC 00(CJ) P126; Jumps to P126 if the zero point return completion
flag M9057 is ON.
N14 cod28(DRVZ); Returns the machine to the zero point
(mechanical zero point address = -130).
N15 cod00(DRV) x0; Moves the machine to the address "0".
(Adopts the absolute drive methods because the
drive method is not specified.)
N16 cod29(SETR); Sets the electrical zero point.
N17 P126;
N18 FNC03(RET); Subroutine return
(Specifies the end of the subroutine.)