![Fagor CNC 8070 Programming Manual Download Page 499](http://html1.mh-extra.com/html/fagor/cnc-8070/cnc-8070_programming-manual_3212158499.webp)
Programming manual
CNC 8070
STATEMENTS AND
IN
STRUCTI
O
NS
Pr
ogr
am
m
ing st
at
em
ent
s
15.
(S
OFT
V02.0
X
)
465
15.1.23 Block repetition
This instruction may be used to execute a portion of the program
defined between two blocks which will be identified with labels. The
label of the last block must be programmed alone.
Optionally, it is possible to define the number of repetitions of the
execution; if not defined, it will be repeated once.
The number of blocks to be repeated must be defined in the same
program or subroutine from which this instruction is executed. They
may also be after the program (after function M30)
Up to 20 nesting levels are allowed.
#RPT
Block repetition
The programming format is:
#RPT [<blk1>,<blk2>,<n>]
Since the labels to identify the blocks may be of two types (number
and name), the
#RPT
instruction may be programmed as follows:
•
The label is the block number.
In the blocks containing the first and last labels, program the ":"
character after the block number. This is required in every label that
is the target of a jump.
•
The label is the block name.
Once the repetition is done, the execution resumes at the block after
the one containing the #RPT instruction.
Parameter
Meaning
<blk1>
First block.
<blk2>
Last block.
<n>
Optional. Number of repetitions.
N10 #RPT [N50,N70]
N50: G01 G91 X15 F800
(first block)
X-10 Y-10
X20
X-10 Y10
N70: (last
block)
N10 #RPT [[BEGIN],[END]]
[BEGIN] G01 G91 F800
(first block)
X-10 Y-10
X20
X-10 Y10
G90
[END]
(last block)
Summary of Contents for CNC 8070
Page 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Page 2: ......
Page 4: ......
Page 6: ......
Page 12: ......
Page 14: ......
Page 16: ......
Page 22: ......
Page 26: ......
Page 28: ......
Page 30: ......
Page 32: ......
Page 34: ......
Page 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Page 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Page 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Page 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...