O codes and WHILE/ENDWHILE loops
I have been using WHILE/ENDWHILE loops to plot parabolic curves, with slow but sure success.
New problem with the use of this approach - is it possible to include in the loop a parameter that is a function of the number of times that the loop has run ?
It sounds a bit like the traditional "picking yourself up by your own bootstraps, but I thought I'd ask
Typical line of code is .....
#11=83.5
O103 WHILE [#11 GE 79.970]
g01 x[[#11*#1] y[[-9.6*[[83.5-#11]**0.5]+23.5]*#1] z[-1*[85.175-#11]*#1] F#3
#11=[#11-0.03525]
O103 ENDWHILE
(This will make the v-tool follow a parabolic path, but with one edge circular and the other one straight as it decends into the work piece through 100 steps.)
.......but I want to add in to the x value an additional component that is increasing linearly with each step of the loop, which has the effect of sloping the line, like going from upright to italic lettering.
For example, if I change x[#11*#1] to x[[#11+N/100]*#1] , the change is fixed, and I want the value of N to increase from 0 to 100 during the 100 steps of the loop.
Can anyone help ?
Thanks,
John
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.