Mitsubishi Electric Q172CPU Programming Manual page 426

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

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
O0100 ; (Control program)
GOSUB P110 ;
M02 ;
%
Program continuous
from next block of
GOSUB
O0100 ; (Control program)
GOSUBE P110 ;
M02 ;
%
Program continuous
from next block of
GOSUBE
O0100 ; (Control program)
GOSUBE P110 ;
M02 ;
%
Program end
(9) The end of control program by CLEAR instruction in the control program or the
CLEAR request control program No. setting register (D707) are normal. Call
source program is not ended.
Refer to the explanation of "Program start" for the difference between the program start
and program call.
(1) GOSUB+GOSUBE
O0110 ; (Control program)
GOSUBE JXJY P120 ;
M02 ;
%
Program end
If an error which program ends will occur in the program No.120, program
"O0110" ends but program "O0100" executes continuously.
(2) GOSUBE+GOSUB
O0110 ; (Control program)
GOSUB JXJY P120 ;
M02 ;
%
Program continuous
from next block of
GOSUB
If an error which program ends will occur in the program No.120, program
"O0100" and "O0110" execute continuously.
(3) GOSUBE+GOSUBE
O0110 ; (Control program)
GOSUBE JXJY P120 ;
M02 ;
%
Program end
If an error which program ends will occur in the program No.120, program
"O0100" and "O0110" end.
O0120 ; (Axis designation
program)
G01 X100. F1000. ;
M02 ;
%
Program end
O0120 ; (Axis designation
program)
G01 X100. F1000. ;
M02 ;
%
Program end
O0120 ; (Axis designation
program)
G01 X100. F1000. ;
M02 ;
%
Program end
7 - 165
Error occurrence
Error occurrence
Error occurrence

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents