6 - 165
6 MOTION PROGRAMS FOR POSITIONING CONTROL
(9) The end of rol 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.
[Program Example]
(1) GOSUB+GOSUBE
O0110 ; (Control program)
%
GOSUBE JXJY P120 ;
M02 ;
O0120 ; (Axis designation
program)
%
G01 X100. F1000. ;
M02 ;
O0100 ; (Control program)
%
GOSUB P110 ;
M02 ;
Error occurrence
Program end
Program end
Program continuous
from next block of
GOSUB
If an error which program ends will occur in the program No.120, program
"O0110" ends but program "O0100" executes continuously.
(2) GOSUB
O0110 ; (Control program)
%
GOSUB JXJY P120 ;
M02 ;
O0120 ; (Axis designation
program)
%
G01 X100. F1000. ;
M02 ;
O0100 ; (Control program)
%
GOSUBE P110 ;
M02 ;
Error occurrence
Program end
Program continuous
from next block of
GOSUBE
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
O0110 ; (Control program)
%
GOSUBE JXJY P120 ;
M02 ;
O0120 ; (Axis designation
program)
%
G01 X100. F1000. ;
M02 ;
O0100 ; (Control program)
%
GOSUBE P110 ;
M02 ;
Error occurrence
Program end
Program end
Program end
If an error which program ends will occur in the program No.120, program
"O0100" and "O0110" end.
Содержание Q172HCPU
Страница 35: ...2 10 2 POSITIONING CONTROL BY THE MOTION CPU MEMO ...
Страница 79: ...3 44 3 MOTION DEDICATED PLC INSTRUCTION MEMO ...
Страница 373: ...6 186 6 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Страница 453: ...7 80 7 AUXILIARY AND APPLIED FUNCTIONS MEMO ...