![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367623.webp)
578
Program Example
Section 10-1
14) This is the end of FOR command from 06).
15) The program is completed.
10-1-5 Positioning with Workpiece Coordinate System with
Subprograms
Explanation of the
operation
Changing coordinate systems and using subprograms, the same operation is
executed repeatedly in different positions on the machine coordinate system.
Program
Main program
01) PROG P005 Q00000003;
02) OFFPOS C1 [J01]5000 [J02]5000;
03) OFFPOS C2 [J01]15000 [J02]5000;
04) OFFPOS C3 [J01]5000 [J02]15000;
05) MOVEL [J01]0 [J02]0 F300000;
06) WORK C1;
07) GOSUB P500;
08) ORIGIN;
09) MOVEL [J01]0 [J02]0 F500000;
10) NOPS;
11) #OW0BA0 = 1;
12) WAIT #IW0B00 = = 1;
13) #OW0BA0 = 0;
14) WORK C2;
15) GOSUB P500;
16) ORIGIN;
17) MOVEL [J01]0 [J02]0 F500000;
18) NOPS;
19) #OW0BA0 = 1;
20) WAIT #IW0B00 = = 1;
21) #OW0BA0 = 0;
2000
1000
1000
2000
J02
J01
2000
1000
1000
2000
J02
J01
2000
1000
1000
2000
J02
J01
J02
15000
J01
5000
15000
5000
0
Workpiece coordinate system (C3)
Workpiece coordinate
system (C1)
Workpiece coordinate
system (C2)
Содержание 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 ...