Plotting this program it seems to think variable #32 is always zero.
If I replace the three uses of #32 with #27, thru #31 it works the same way.
But if I replace them with #26 or #25 it works as expected.
I did not check all the numbers less then #27 but I expect they would also work.
Variable #99 does not work but #100 does so I expect any global would work but only locals less then #27 would work.
I have not tried running on a actual machine yet either.
Code:
O9110
#6=0.125(INSIDE CORNER RADIUS)
#7=1.100(SMALL ROUGH OD)
#8=1.000(SMALL FINISHED OD)
#9=0.062(CHAMFER SIZE)
#10=0.006(END FACE MATERIAL)
#11=0.888(LENGTH OF SHOULDER)
#12=0.520(ID FOR FACE CUT)
#13=0.0156(TOOL NOSE RADIUS)
#14=0.0000(TAPER COMP)
#15=0.0010(SECOND FINISH PASS)
()
#33=FUP[[#7-#8]/0.020](TEMP,NUMBER,OF,PASSES)
(****)
#32=0.010
(****)
G0Z[#10+0.100]
G0X[#7+2*[#6]+0.200]
G73U[#7-#8]W[#33*0.0001]R#33(MATERIAL,AND,PASSES)
G73P31Q32U0.0010W0.0000S350F0.0030
N31G0X[#8+#15]Z[#10+0.010]S450F0.0010
G1X[#8+#14+#15]Z[-#11+#6-#13]
G2X[#8+#14+#15+2*[#6-#13]]Z[-#11]R[#6-#13]
N32G1X[#32+#8+#14+#15+2*[#6-#13]]
G70P31Q32(FINISH,PASS)
#15=0.0
#32=2.000-[#8+[2*#6]](CLEANUP,FULL,FACE)
G70P31Q32(FINISH,PASS)
G0Z0.200