EasyManua.ls Logo

Fagor CNC 8070 - Conditional Block Repetition ($DO)

Fagor CNC 8070
556 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...



Programming manual
486
CNC 8070
15.
STATEMENTS AND INSTRUCTIONS
Flow controlling instructions
(SOFT V02.0X)
486
15.2.6 Conditional block repetition ($DO)
$DO ... $ENDDO <condition>
The following parameter is defined in this instruction:
While the condition is true, it repeats the execution of the blocks
contained between $DO and $ENDDO. The condition is analyzed at
the end of each repetition, therefore the group of blocks is executed
at least once.
The $BREAK instruction lets ending block repetition even if the stop
condition is not met. The execution of the program continues at the
block after $ENDDO.
The $CONTINUE instruction starts the next repetition even when the
current one has not finished. The blocks programmed after
$CONTINUE up to $ENDDO will be ignored in this repetition.
<condition> It may be a comparison between two numbers,
parameters or arithmetic expressions whose result is a
number.
...
N20 $DO
N30 P1=P1+1
N40...
N50...
N60 $ENDDO P1<=10
N70...
Blocks N30 through N50 are executed while P1 is smaller than or equal 10.
...
N20 $DO
N30...
N40 $IF P2==2
N50 $BREAK
N60 $ENDIF
N70...
N80 $ENDDO P1<= 10
...
Block repetition stops if P1 is greater than 10, or if P2 = 2.
...
N20 $DO
N30...
N40 $IF P0==2
N50 $CONTINUE
N60 $ENDIF
N70...
N80...
N80 $ENDDO P1<= 10
...
If P0=2, it ignores blocks N70 through N80 and it starts a new repetition at
N20.

Table of Contents

Other manuals for Fagor CNC 8070

Related product manuals