I've got a jack in the box style tool probe on our Okuma MB4000H horizontal mill. I know how to use it to measure tools and check for broken tools. I'm using a generic subprogram to measure tools that are measured at the spindle centerline, like drills. The machine has commands that offset in x and y and for spindle angle, so I can get the insert lined up correctly for each tool. But I need to write a separate sub program for each tool that is not measured at the centerline. Or I can skip the subs and just add the code for the probe to the part program for each tool. How is this usually handled?

Thanks in advance