Programming manual
CNC 8070
STATEMENTS AND
IN
STRUCTI
O
NS
Fl
ow c
ont
ro
lli
n
g
i
n
st
ru
ct
io
n
s
15.
(S
OFT
V02.0
X
)
485
15.2.5 Conditional block repetition ($WHILE)
$WHILE <condition>... $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 program med after
$CONTINUE up to $ENDWHILE will be ignored in this repetition.
<condition>
I t m ay b e a c o m p a r i s o n b e t w e e n t wo n u m b e r s ,
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.
Содержание CNC 8070
Страница 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 12: ......
Страница 14: ......
Страница 16: ......
Страница 22: ......
Страница 26: ......
Страница 28: ......
Страница 30: ......
Страница 32: ......
Страница 34: ......
Страница 54: ...Programming manual 20 CNC 8070 1 CREATING A PROGRAM Parameters constants and expressions SOFT V02 0X 20...
Страница 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Страница 154: ...Programming manual 120 CNC 8070 6 TOOL PATH CONTROL Manual intervention G200 G201 G202 SOFT V02 0X 120...
Страница 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Страница 188: ...Programming manual 154 CNC 8070 8 ADDITIONAL PREPARATORY FUNCTIONS Probing G100 SOFT V02 0X 154...
Страница 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Страница 446: ...Programming manual 412 CNC 8070 14 CNC VARIABLES Alphabetical listing of variables SOFT V02 0X 412...
Страница 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...