Programming manual.
CNC 8070
22.
STATEMENTS AN
D INSTRUCTIONS
F
low control
ling
i
n
stru
ctio
ns
·438·
(R
EF
: 1709)
22.2.5
Conditional block repetition ($WHILE)
$WHILE <CONDITIONN> ... $ENDWHILE
The following parameter is defined in this instruction:
While the condition is true, it executes the blocks contained between $WHILE and
$ENDWHILE. The condition is analyzed at the beginning of each new repetition.
The $BREAK instruction lets ending block repetition even if the stop condition is not met.
The execution of the program will continue at the block after $ENDWHILE.
The $CONTINUE instruction starts the next repetition even when the current one has not
finished. The blocks programmed after $CONTINUE up to $ENDWHILE 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 $WHILE P1<= 10
N30 P1=P1+1
N40...
N50...
N60 $ENDWHILE
...
While P1 is smaller than or equal to 10, it executes blocks N30 through N50.
...
N20 $WHILE P1<= 10
N30...
N40 $IF P2==2
N50 $BREAK
N60 $ENDIF
N70...
N80 $ENDWHILE
...
Block repetition stops if P1 is greater than 10, or if P2 = 2.
...
N20 $WHILE P1<= 10
N30...
N40 $IF P0==2
N50 $CONTINUE
N60 $ENDIF
N70...
N80...
N80 $ENDWHILE
...
If P0=2, it ignores blocks N70 through N80 and it starts a new repetition at N20.
Содержание 8070 BL
Страница 1: ... Ref 1709 8070 CNC Programming manual ...
Страница 8: ...BLANK PAGE 8 ...
Страница 12: ...BLANK PAGE 12 ...
Страница 14: ...BLANK PAGE 14 ...
Страница 26: ...BLANK PAGE 26 ...
Страница 28: ...BLANK PAGE 28 ...
Страница 30: ...BLANK PAGE 30 ...
Страница 60: ...Programming manual CNC 8070 2 MACHINE OVERVIEW Home search 60 REF 1709 ...
Страница 72: ...Programming manual CNC 8070 3 COORDINATE SYSTEM Coordinate programming 72 REF 1709 ...
Страница 80: ...Programming manual CNC 8070 4 WORK PLANES Select the longitudinal axis of the tool 80 REF 1709 ...
Страница 96: ...Programming manual CNC 8070 5 ORIGIN SELECTION Polar origin preset G30 96 REF 1709 ...
Страница 178: ...Programming manual CNC 8070 9 TOOL PATH CONTROL MANUAL INTERVENTION Variables 178 REF 1709 ...
Страница 304: ...Programming manual CNC 8070 16 C AXIS Machining of the turning side of the part 304 REF 1709 ...
Страница 440: ...Programming manual CNC 8070 22 STATEMENTS AND INSTRUCTIONS Flow controlling instructions 440 REF 1709 ...
Страница 442: ...Programming manual CNC 8070 23 CNC VARIABLES 442 REF 1709 ...
Страница 443: ...Programming manual CNC 8070 443 User notes REF 1709 ...