Programming manual.
CNC 8070
22.
STATEMENTS AND INSTRUCTIONS
Programming statements
·420·
(REF: 1709)
The execution of a block can also be repeated with the "NR" command. See
"1.3.1 Programming in ISO code." on page 36.
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
X-20
X10 Y-10
G73 Q180
[END]