FX Series Positioning Controllers Program Examples 9
9-22
4) Program
5) Parameter
Set the positioning parameter No. 16 (mechanical zero point address) to "0". For other
parameters, refer to Paragraph 9.2.4.
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) x400;
Moves the machine from the point A to the
point B.
N5 SET Y00;
Turns on Y00.
N6 cod04(TMR) K150;
Sets the operation wait time to "1.5 sec".
N7 FNC08(RPT) K10;
Sets the number of times of repetition to "10".
N8 cod01(LIN) y300 f1200;
Moves the machine from the point B to the
point C.
N9 cod03(CCW) x300 y400 i-100;
The center coordinate "j" is omitted because it
is incremental address.
"f" is omitted because it is equivalent to that in
the cod01.
N10 cod01(LIN) x-300;
Moves the machine from the point D to the
point E.
N11 cod03(CCW) x-400 y300 j-100;
Moves the machine from the point E to the
point F.
N12 cod01(LIN) y-300;
Moves the machine from the point F to the
point G.
N13 cod03(CCW) x-300 y-400 i100;
Moves the machine from the point G to the
point H.
N14 cod01(LIN) x300;
Moves the machine from the point H to the
point I.
N15 cod03(CCW) x400 y-300 j100;
Moves the machine from the point I to the point
J.
N16 cod01(LIN) y0;
Moves the machine from the point J to the
point B. (The machine moves among point s
"J
→
B
→
C" at a constant speed without stop.)
N17 FNC09(RPE);
N18 RST Y00;
Turns off Y00.
N19 cod04(TMR) K150;
Sets the OFF wait time to "1.5 sec".
N20 cod01(LIN) x0 y0;
Returns the machine to the zero point.
N21 m02 (END);
Repetition