EasyManua.ls Logo

Mitsubishi Electric Q173CPUN - Page 407

Mitsubishi Electric Q173CPUN
634 pages
Print Icon
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 - 146
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program which executes the next block at the completion of condition.
1) 00001 WAITON #X10 ;
00002 N1 G01 X100. Y200. F1000. ;
2) 00003 WAITOFF #X11 ;
00004 N2 #2010 = 5 ;
00005 G00 X0. Y-10. ;
3) 00006 WAITON #X12 ;
00007 GOTO 10 ;
:
:
00015 N10 G00 X0. Y0. ;
:
:
00020 #2000 = 5 ;
4) 00021 WAITOFF #XFF ;
00022 IF [#2000 EQ 5] GOTO 20 ;
00023 N15 G01 X200. Y200. F2000. ;
:
:
00027 N20 G01 X100. Y100. F2000. ;
00028 M02 ;
00029 %
The above program is executed as described below.
1) Line 1 When device X10 turns ON, line 2 is executed.
2) Line 3 When device X11 turns OFF, line 5 is executed.
(Line 4 is being executed.)
3) Line 6 When device X12 turns ON, N10 is executed.
4) Line 21 When device XFF turns OFF, #2000=5 to line 27 are executed. Because
of preread processing, N15 is not executed and execution jumps to N20 if the
#2000 (D2000) value is changed from sequence program while execution waits
for XFF to turn from ON to OFF in the WAITOFF statement.

Table of Contents

Other manuals for Mitsubishi Electric Q173CPUN

Related product manuals