7 - 167
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.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 ;
P
R
[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)
Summary of Contents for Q172CPU
Page 229: ...5 88 5 POSITIONING DEDICATED SIGNALS MEMO ...
Page 447: ...7 186 7 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Page 535: ...8 88 8 AUXILIARY AND APPLIED FUNCTIONS MEMO ...
Page 557: ...11 10 11 COMMUNICATIONS VIA NETWORK MEMO ...
Page 559: ...12 2 12 MONITOR FUNCTION OF THE MAIN CYCLE MEMO ...