
575
Program Example
Section 10-1
15) The program is completed.
10-1-2 Positioning with Linear Interpolation
Explanation of the
operation
• At the rise of the general input (IW0B00), positioning with linear interpola-
tion is performed from the present position to the position [J01]10000,
[J02]50000.
• The positioning will be repeated up to 10 times till the content of the gen-
eral input (IW0B01) becomes 1.
Program
01) PROG P002 Q00000003;
02) FOR W#ML0000 L10 S1;
03) IF #IW0B00 <> 1;
04) WAIT #IW0B01 = = 1;
05) INC MOVEL [J01]10000 [J02]50000 F500000;
06) ENDIF;
07) NEXT;
08) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) With FOR (Repeat) command, the process through 02) to 07) is repeated
10 times.
03) When the general input (IW0B00) is not 1, the program executes the axis
operation. When it is 1, the program advances to the next block without
any axis operation.
04) The program will wait until the general input (IW0B01) becomes 1.
05) Positioning with linear interpolation is performed from the present position
to the position [J01]10000, [J02]50000.
06) This is the end of IF command from 03).
07) This is the end of FOR command from 02).
08) The program is completed.
50000
50000
10000
10000
J02
J01
0
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...