Mitsubishi Electric Q172CPU Programming Manual page 394

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

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
N1
N2
N3
N4
N5
N6
N7
N8
N9
N10 G01 X100. Y500. F2000 ;
N11 IF [#@110] THEN2 ;
N12 G00 X10. ;
N13 Y100. ;
N14 ELSE2 ;
N15 G28 X0. Y0. ;
N16 END2 ;
N17 M02 ;
Program
O1 ;
G91 ;
G01 X100. Y100. F2000 ;
X200. ;
Y200. ;
IF [#@100 EQ0] THEN1 ;
G01 Y300. F1500 ;
X300. ;
END1 ;
G02 X50. Y50. I0. J50. F800 ;
G01 X100. Y500. F2000 ;
IF [#@110] THEN2 ;
G00 X10. ;
Y100. ;
ELSE2 ;
G28 X0. Y0. ;
END2 ;
M02 ;
%
(A) indicates that #@100 = 0 and #@110 is true.
(C) indicates that #@100 = 0 and #@110 is false.
O0001 ;
G91 ;
G01 X100. Y100. F2000 ;
X200. ;
Y200. ;
IF [#@100 EQ0] THEN1 ;
G01 Y300. F1500 ;
X300. ;
END1 ;
G02 X50. Y50. I0. J50. F800 ;
%
(Note) : Note that if the sequence No. (N
block No. changes as indicated below.
Execution block No. (A) Execution block No. (B) Execution block No. (C) Execution block No. (D)
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(B) indicates that #@100
(D) indicates that #@100
When #@100=0, THEN1 to END1 are executed.
When #@110 is true, THEN2 to ELSE2 are executed.
When #@110 is false, ELSE2 to END2 are executed.
) is omitted in the above program, the
0
1
2
3
4
5
6
7
8
9
10
11
12
0 and #@110 is true.
0 and #@110 is false.
7 - 133
0
0
1
1
2
2
3
3
4
4
5
5
6
7
8
9
6
10
7
11
8
12
9
13
10
14
11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents