6 - 131
6 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which jumps the specified sequence No. if the condition is satisfied.
O00201 ;
N200 G91 ;
N210 G01 X100. Y100. F2000. ;
X200. ;
Y200. ;
IF [#@100] GOTO230 ;
N220 G01 Y300. F1500. ;
X300. ;
N230 G02 X50. Y50. I0. J50. F800. ;
N240 G01 X100. Y500. F2000. ;
IF [#@110 EQ 180] GOTO260 ;
N250 G00 X10. ;
Y100. ;
N260 G28 X0. Y0. ;
M02 ;
%
Jump to
N230
Jump to
N260
(If #@100 is true, execution jumps to N230.)
(If #@110 is 180, execution jumps to N260.)
REMARK
Only one comparison instruction may be used in one block.