Omron CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 Manual page 556

Motion control unit
Hide thumbs Also See for CS1W-MCH71 MOTION CONTROL UNIT - 09-2004:
Table of Contents

Advertisement

Program Example
10-1-7 Positioning with Position Data Calculation
Explanation of the
operation
J02
30000
25000
20000
15000
10000
0
Program
Explanation of the
program
• After positioning based on the initial values of position data was per-
formed, positioning is repeated 10 times adding 1000 to the position data
of [J01] each time. After that, positioning is repeated 5 times adding 5000
to the position data of [J02] each time.
• This positioning operation should look as shown below.
2000
1000
3000
Main program
01) PROG P007 Q00000003;
02) STOPMODE;
03) #DL0000 = 0;
04) #PL0011 = 10000;
05) FOR W#DL0000 L5 S1;
06) #PL0010 = 1000;
07) GOSUB P0501;
08) #PL0011 = #PL0011 + 5000;
09) NEXT;
10) END;
Subprogram
01) PROG P501 Q00000003;
02) #DL0002 = 0;
03) FOR W#DL0002 L10 S1;
04) MOVEL [J01]#PL0010 [J02]#PL0011 F300000;
05) MOVEL [J01]0 [J02]0;
06) #PL0010 = #PL0010 +1000;
07) NEXT;
08) RETURN;
Main program
01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The task variable for counting (DL0000) is reset. (For [J02])
04) The first travel distance of [J02] is entered into the position data (PL0011).
05) With FOR command, the process through 05) to 09) is repeated 5 times.
06) The first travel distance of [J01] is entered into the position data (PL0010).
07) The subprogram (P0501) is called and executed.
08) 5000 is added to the position data (PL0011) of [J02].
09) This is the end of FOR command from 05).
10) The program is completed.
Section 10-1
J01
533

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Sysmac cs-series

Table of Contents