![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367633.webp)
588
Program Example
Section 10-1
Explanation of the
program
01) A program No. and axes to be used are specified.
02) The axes return to the origin.
03) to 05) The general outputs (OW0BA0 to OW0BA2) are reset to 0.
06) The program will wait until the general input (IW0B00) becomes 1.
07) Positioning with linear interpolation is performed to the position
[J01]10000, [J02]10000.
08) to 09) When [J01] reaches 2500, 1 will be output to the general output
(OW0BA0).
10) to 11) When [J01] reaches 5000, 1 will be output to the general output
(OW0BA1).
12) to 13) When [J01] reaches 7500, 1 will be output to the general output
(OW0BA2).
14) The program is completed.
10-1-13 High-speed Positioning
Explanation of the
operation
• The CPU Unit reads the present position of a work from a visual sensor
and writes the compensated value into the MC Unit after calculation. After
receiving the value, the MC Unit performs positioning to the position cor-
responding to the value.
• The CPU Unit transmits 2 of position data to the MC Unit using IOWR
instruction and starts the MC Unit immediately.
• In this case, the data transfer to the MC Unit and the command for posi-
tioning can be executed within 1 scan.
Program
01) PROG P014 Q00000003;
02) WHILE #IW0B00 <> 1;
03) MOVEL [J01]0 [J02]0 F300000;
04) NOPS;
05) #OW0BA0 = 1;
06) WAIT #IW0B01 = = 1;
07) #OW0BA0 = 0;
08) MOVEL [J01]#PL0000 [J02]#PL0001;
09) NOPS;
10) #OW0BA1 = 1;
11) WAIT #IW0B02 = = 1;
12) #OW0BA1 = 0;
13) WEND;
14) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) With WHILE command, the process through 02) to 13) is repeated when
the general input (IW0B00) is not 1.
03) The axes return to the origin.
04) to 05) After completion of positioning in 03), 1 is output to the general out-
put (OW0BA0).
06) The program advance will be held until the general input (IW0B01)
becomes 1.
07) The general output (OW0BA0) is cleared to 0.
08) The axes move to the position read from the CPU Unit using IOWR
instruction.
09) to 10) After completion of positioning in 08), 1 is output to the general out-
put (OW0BA1).
Содержание 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 ...