Program Example
10-1-4 Positioning with Position Data
Explanation of the
operation
Program
Explanation of the
program
Positioning is performed using indirectly specified position data.
Position data
PL0000
1
st
position data of [J01]
PL0001
st
1
position data of [J02]
PL0002
nd
2
position data of [J01]
nd
2
position data of [J02]
PL0003
PL0004
rd
3
position data of [J01]
PL0005
rd
3
position data of [J02]
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 = #PL0102 + 2;
13) #PL0103 = #PL0103 + 2;
14) NEXT;
15) END;
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.
Section 10-1
Position data
specified indirectly
PL0102
PL0103
+2
PL0102
PL0103
+2
PL0102
PL0103
529
Need help?
Do you have a question about the CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 and is the answer not in the manual?
Questions and answers