FX Series Positioning Controllers Program Examples 9
9-15
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.
* When performing operation at multi-step speed in the FX
2N
-20GM, set "O0, N0" then use the
program above as it is.
In actual operation, however, the machine performs continuous pass operation, the speed
change points are different from those shown above, and the composite speed is adopted.
Line No.Instruction Description
Ox0, N0 * FNC02(CALL) P127; Calls the subroutine for return to the zero point.
N1 cod00(DRV) x400 f10000;
N2 cod01(LIN) x900 f15000; Specifies continuous passes, and adopts
operation at multi-step speed.
N3 cod01(LIN) x1700 f8000;
N4 cod01(LIN) x2000 f4000;
N5 cod01(LIN) x2300 f10000;
N6 cod09(CHK); Confirms completion of positioning by the servo
end check, then proceeds to the next operation.
N7 cod00(DRV) x0 f10000;
N8 m02(END);
N9 P127; Subroutine for return to the zero point.
N10 LD M9057;
N11 FNC00(CJ) P126; Jumps to P126 if the zero point return completion
flag M9057 is ON.
N12 cod28(DRVZ); Returns the machine to the zero point
(mechanical zero point address = -130).
N13 cod00(DRV) x0; Moves the machine to the address "0".
N14 cod29(SETR); Sets the electrical zero point.
N15 P126;
N16 FNC03(RET); Subroutine return
(Specifies the end of the subroutine.)