Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 167
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.24 Control program end (CLEAR)
Code CLEAR
Function Control program end
The specified control program is ended.
Format
L
Motion program No. (1 to 1024)
(Indirect setting is possible)
A
C
E
p
;PR
[Explanation]
(1) The CLEAR is ended if it is executing it specifying the number of the control
program from the control program.
(2) The axis designation program cannot be stopped.
(3) The CLEAR at a program start is as following operation.
O0100 ; (Control program)
A
%
CALL JXJY P200 ;
M02 ;
O0200 ; (Axis designation program)
%
G01 X100. Y100. ;
M02 ;
O0100 ; (Control program)
B
%
CALL P200 ;
M02 ;
O0200 ; (Control program)
%
;
M02 ;
(a) If the main program (O0100) ends regardless of the started program or
subprogram (O0200), the main program (O0100) ends and the subprogram
(O0200) does not end. (Figure A, B)
(b) When the started program is the control program, if the subprogram (O0200)
ends, the subprogram (O0200) ends and the main program (O0100) does not
end. (Figure B)
(c) When the started program is the axis designation program, turn the stop
command or rapid stop command of applicable axis ON to stop the
subprogram (O0200).
In this case, the subprogram (O0200) ends and the main program (O0100)
does not end. (Figure A)