(calibration cycle) (M105 is beep) (hardcode calibration bore center) #196 = 52.3959 (calibration x machine coord) #197 = 14.6138 (calibration y machine coord) (zero calibration constants) #198 = 0 (probe x offset) #199 = 0 (probe y offset) G90 (force g55 to be at true bore location) G10 L2 P2 X[#196] Y[#197] G53 G00 Z-0.25 G55 G00 X-0.5 Y0 (probe z to locate tip of probe) G91 G38.2 Z-4 F30 M105 G91 G00 Z0.040 G91 G38.2 Z-1 F1 M105 G10 L20 P2 Z0 (z level found. G55 is top center of bore) (now we can do calibration) G00 G90 G55 Z0.25 X0 Y0 Z-.125 (inside bore) (from probeBore File) #69 = 3 (bore diameter) #99 = [[#69/2] + 1] (#100 = upperY) (#101 = lowerY) (#120 = cy) (#5421 current y in current cSystem) (#5062 y val of probe result) (find upper Y) #69 = #5421 G91 G38.2 Y#99 F30 M105 G91 G00 Y-0.040 G91 G38.2 Y#99 F1 M105 #100 = #5062 (yUpper) #80 = [#69-#5062] (original position) G91 G00 Y#80 (find lower Y) G91 G38.2 Y[-1 * #99] F30 M105 G91 G00 Y0.040 G91 G38.2 Y[-1 * #99] F1 M105 #101 = #5062 (yLower) #120 = [[#100 + #101]/2] #80 =[#120 - #101] G91 G00 Y#80 (at y center now) (#121 = cx) (#5420 current x in current cSystem) (#5061 x val of probe result) (#102 = upperX) (#103 = lowerX) (find upper X) #69 = #5420 G91 G38.2 X#99 F30 M105 G91 G00 X-0.040 G91 G38.2 X#99 F1 M105 #102 = #5061 (xUpper) #80 = [#69 - #5061] (original position) G91 G00 X#80 (find lower X) G91 G38.2 X[-1 * #99] F30 M105 G91 G00 X0.040 G91 G38.2 X[-1 * #99] F1 M105 #103 = #5061 (XLower) #121 = [[#102 + #103]/2] #80 =[#121 - #103] G91 G00 X#80 (now at center x and y) (touch off active cSystem to 0,0) (#5220 is active cSystem) G10 L20 P[#5220] X0 Y0 (end from probeBore File) (calculate & store calibration constants) #198 = [#5241 - #196] (xOffset = g55x - calX) #199 = [#5242 - #197] (yOffset = g55y - caly) (DEBUG, xCal #198 yCal #199) g53 g90 g00 Z-0.25 m30