![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367622.webp)
577
Program Example
Section 10-1
10-1-4 Positioning with Position Data
Explanation of the
operation
Positioning is performed using indirectly specified position data.
Program
01) PROG P004 Q00000003;
02) STOPMODE;
03) #ML0000 = 0;
04) #PL0102 = 0;
05) #PL0103 = 1;
06) FOR W#ML0000 L3 S1;
07) #PL0100 = #PL0102;
08) #PL0101 = #PL0103;
09) IF #IW0B00 = = 0;
10) MOVEL [J01]@PL0100 [J02]@PL0101 F500000;
11) ENDIF;
12) #PL0102 = # 2;
13) #PL0103 = # 2;
14) NEXT;
15) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The task variable for counting (ML0000) is reset.
04) The position data (PL0102) is set to 0. (The first position data read with
indirect specification)
05) The position data (PL0103) is set to 1. (The first position data read with
indirect specification)
06) The process through 06) to 13) is repeated 3 times.
07) The position data (PL0102) is assigned to the position data (PL0100).
08) The position data (PL0103) is assigned to the position data (PL0101).
09) When the general input (IW0B00) is not 0, the program advances to the
next block without any axis operation.
10) Positioning with linear interpolation is performed reading the position data
with indirect specification.
11) This is the end of IF command from 09).
12) The content of the position data (PL0102) is updated.
13) The content of the position data (PL0103) is updated.
PL0000
PL0001
PL0004
PL0003
PL0002
PL0005
PL0102
PL0103
PL0102
PL0103
PL0102
PL0103
+2
+2
Position data
1
st
position data of [J01]
Position data
specified indirectly
1
st
position data of [J02]
2
nd
position data of [J01]
2
nd
position data of [J02]
3
rd
position data of [J01]
3
rd
position data of [J02]
Содержание 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 ...