EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Page 394

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

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals