Omron CS1W-MCH71 Operation Manual page 620

Sysmac cs/cj-series
Hide thumbs Also See for CS1W-MCH71:
Table of Contents

Advertisement

Program Example
10-1-2 Positioning with Linear Interpolation
Explanation of the
operation
Program
Explanation of the
program
15) The program is completed.
• 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.
J02
50000
50000
0
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;
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.
10000
10000
Section 10-1
J01
575

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents