Mitsubishi Electric Q172CPU Programming Manual page 396

Melsecq series motion controller sv43
Hide thumbs Also See for Q172CPU:
Table of Contents

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(4) The GOTO statement cannot cause execution to go into or come out of the DO
statement.
The program for which jumps to the specified line if the condition is satisfied.
O0110 ;
N1 #@0=0 ;
N2 G91 G00 X25. Y50. ;
N3 WHILE [#@0 LT3] D01 ;
N4 G03 X0. Y0. I25. J0. F100. ;
.................
N5 #@0=#@0+1 ;
N6 END1 ;
N7 G28 X0. Y0. ;
N8 M02 ;
%
Y
50
25
0
25
50
75
(Note-1) : N3 to N6 are repeated while variable #@0 < 3 holds.
(Note-2) : Every time this block is executed once, 1 is added to variable #@0.
The above program ends after drawing a circle three times.
(Note) : Note that if the sequence No. (N
the block No. changes as indicated below.
Program
O0110 ;
#@0=0 ;
G91 G00 X25. Y50. ;
WHILE [#@0 LT3] DO1 ;
G03 X0. Y0. I25. J0. F100. ;
#@0=#@0+1 ;
END1 ;
G28 X0. Y0. ;
M02 ;
%
(Note-1)
(Note-2)
X
) is omitted in the above program,
Execution block No.
0
1
2
3
4
5
4
5
7 - 135

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents