![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367647.webp)
602
Program Example
Section 10-1
Explanation of the
program
01) A program No. and axes to be used are specified.
02) The axis moves to the position 50000 with linear interpolation.
03) TORQUE command operation is started with 50% of the maximum motor
torque.
04) 1 is output to the general output (OW0BA0).
05) The program will wait until the present position exceeds 150000.
06) TORQUE command operation is completed.
07) The general output (OW0BA0) is reset to 0.
08) The axis moves to the position 200000 with linear interpolation.
09) The program is held for 5 seconds.
10) The axis returns to the origin.
11) The program is completed.
10-1-25 Target Position Change (MOVEMODI)
Explanation of the
operation
• A target position is changed during positioning.
• In this example, the axis is moving to the position 20000 with linear inter-
polation. The target position (20000) will be changed to the position
40000 if the general input is ON when the axis reaches the position
10000. If the general input is OFF, the target position will remain the same
(20000).
Note
Target positions can be changed only on the axes operated with MOVE com-
mand, or MOVEL command of single axis specification in Stop Mode. (MOVE-
MODI during execution of commands other than the ones mentioned above,
or for axes not operating is ignored.)
Program
01) PROG P029 Q00000001;
02) STOPMODE;
03) MOVEL [J01]20000 F500000;
04) WAIT #SL0204 > = 10000;
05) IF #IW0B00 = = 1;
06) MOVEMODI [J01]40000;
07) ENDIF;
08) DWELL T3000;
09) MOVE [J01]0;
10) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The axis moves to the position 20000 with linear interpolation.
0
20000
10000
40000
0
20000
10000
40000
With general input ON
General input
Axis
movement
Target position
changed
With general input OFF
General input
Axis
movement
Target position not
changed
Содержание 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 ...