I have a Haas mill and a Renishaw 40-2 wireless probe.
I would like to incorporate code into a program to probe the surface of a part and then modify that value to establish the G54 Z offset. Specifically, I want the Z plane to be 0.015 below the probed surface. Can anyone show me how to do this?
Here's the code I use to probe the surface:
T10 M6
G00 G90 G55 X0. Y0. (GETS THE PROBE TO THE CENTER OF THE PART)
G43 H10 Z0.5 (GETS THE PROBE ABOUT 0.5 ABOVE THE PART)
G65 P9359 W54. Z-0.7 (PROBES AND ASSIGNS THE RESULT TO THE G54 Z REGISTER)
G65 P9833 (TURNS OFF THE PROBE)
G53 Z0. (RETRACTS TO THE TOOL CHANGE POSITION)
Thanks!