![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367629.webp)
584
Program Example
Section 10-1
Program
01) PROG P010 Q00000001;
02) STOPMODE;
03) #PL0010 = 50000;
04) #IW0B00 = 0;
05) STOPOP #IW0B01 = = 1;
06) MOVEL [J01]#PL0010 F300000;
07) NOPS;
08) #PL0010 = #SL0206;
09) WHILE #IW0B00 <> 1;
10) MOVEL [J01]#PL0010;
11) MOVEL [J01]0;
12) WEND;
13) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The first travel distance (50000) is entered into the position data. (A posi-
tion exceeding the target position)
04) The general input (IW0B00) is set to 0.
05) With STOPOP command, when the general input (IW0B01) becomes 1,
the next block will be interrupted midway and ended.
06) Positioning of [J01] with linear interpolation to the position specified by the
position data (PL0010) is performed.
07) The program waits for completion of the axis movement.
08) The stopping position is assigned to the position data (PL0010).
09) With WHILE command, the process through 09) to 12) is repeated when
the general input (IW0B00) is not 1.
10) Positioning is performed based on the value in the position data (PL0010).
11) The axis returns to the origin.
12) This is the end of WHILE command from 09).
13) The program is completed.
10-1-10 Positioning of Turntable
Explanation of the
operation
• Positioning of a turntable is performed using the unlimited length axis
function and various arithmetic operations.
• In positioning to the target position, the travel direction is determined for
shorter distance.
PL0010
0 X
0
X
X
ON
OFF
General
input
Axis
movement
Origin
return
Positioning
Stopping position X is
assigned to PL0010.
Positioning to the position
X (content of PL0010)
Содержание 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 ...