
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]
Summary of Contents for CS1W-MCH71 -
Page 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Page 3: ...iv ...
Page 29: ...xxx ...
Page 33: ...xxxiv ...
Page 35: ...xxxvi ...
Page 39: ...xl ...
Page 69: ...24 Performance Section 1 7 ...
Page 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Page 283: ...238 Saving Data Section 5 4 ...
Page 417: ...372 Command Details Section 6 3 ...