Helical interpolation loop calculation
% N400 (LOOP FUNCTION) (FOR EXAMPLE CROSSHOLE HELICAL MILLING) G28U0.V0. G30W0. T0505 G19 #110=5.(STARTPOINT IN X) #111=4.625(ENDPOINT IN X) #112=.15(BACK OFF FROM BOTTOM FOR REDUCED FEED) #113=.05(FEED PER HELICAL REVOLUTION) #114=.02(FEED PER HELICAL REVOLUTION AT BOTTOM) #115=.75(TOOL DIAMETER) #116=1.(DIAMETER OF HOLE) #117=20.(FEEDRATE) #118=10.(REDUCED FEEDRATE AT BOTTOM) (#119 = ENDPOINT IN X WITH OR WITHOUT BACKING OFF AT BOTTOM) IF[#112EQ0]THEN#119=#111 IF[#112GT0]THEN#119=[#111+2*#112] #120=FUP[[#110-#119]/2/#113](NO. OF LOOPS) #121=[#110-#119]/2/#120(CALCULATED FEED PER HELICAL REVOLUTION) (#122 ROUNDING MIGHT NOT BE NECESSARY) #122=[[ROUND[#121*10000]]/10000](ROUNDED CALCULATED FEED PER HELICAL REVOLUTION) #123=FUP[#112/#114](NO. OF LOOPS) #124=#112/#123(CALCULATED FEED PER HELICAL REVOLUTION) (#125 ROUNDING MIGHT NOT BE NECESSARY) #125=[[ROUND[#124*10000]]/10000](ROUN...