Programming manual
486
CNC 8070
15.
STATEMENTS AND INSTRUCTIONS
Programming statements
(SOFT V02.0X)
466
Considerations
The labels of the first and last blocks must be different. To repeat the
execution of a single block, program as follows:
The execution of a block can also be repeated with the "NR"
command. Ver "Programming in ISO code" en la página 5.
It is not possible to repeat a group of blocks that close a control loop
if the opening of the control loop is not within the instructions being
repeated.
N10 #RPT [N10,N20,4]
N10: G01 G91 F800 (first block)
N20: (last block)
N10 #RPT [N10,N20]
N10: $FOR P1=1,10,1
G0 XP1
$ENDFOR
G01 G91 F800
N20:
%PROGRAM
G00 X-25 Y-5
N10: G91 G01 F800 (Definition of profile "a")
X10
Y10
X -10
Y -10
G90
N20:
G00 X15
#RPT [N10, N20] (Block repetition. Profile "b")
#RPT [[INIT], [END], 2] (Block repetition. Profiles "c" and "d")
M30
[INIT]
G1 G90 X0 Y10
G1 G91 X10 Y10