This has been the format for the probing cycle before we run a part. Its added to the front of a program so every part gets probed. The problem I just found was you cant start the program mid cycle because of the G91 Z- move. But as long as you run the program from the home position, it works fine. Need help to rewrite so I can start probe from anywhere in the program.
T24 M6
G90 G54 G0 X0 Y0
G91 Z- ( INSERT Z POSITION FROM HOME)
G65 P9995 W54 A11. D0.27 E-0.7
The other thing is the height offset for the probe is a set number. 5.5169 which is from the spindle to the tip of the probe.
Just need to be steered in the right direction.