im trying to output the probed hole positions to a new program file.

lets imagine that that i have 10 parts in a program with 4 predrilled holes per part that need to be tapped.

my tapping cycle for tapping the holes would look like this:

G71 Z0.2
G95
G84 X0.5 Y4.7879 Z-0.25 R0.2 F0.0179 S1568 M53
X1.8911
Y3.5
X0.5
X1.8911 Y1.7879
X0.5
Y0.5
X1.8911
X4.8911
X3.5
Y1.7879
X4.8911
ETC......

G00 Z0.2


but those hole positions are out by max 0.025 due to fixture imperfections.
so what i would to do is rewrite the program using the position data and have to probe find the center of the hole and output the x and y coordinate data to a new file on our okuma MB56va machine with a p100m control.
mostly what im looking for is a method for outputting probe data and append it to the end of a .MIN file so i can copy and paste the new location data to the tapping cycle. i don't have any renishaw probing software, all i
use is the software okuma ships with their machines. i use the following gcode line to do a hole search: (G114 PD=0.4 PW=1) where PD = approximate hole diameter and PW=work offset.
and here is what the hole finding program could look like....

G40 G80 G90 G94 G17
G20


M09
G116 T32 (probe)
G15 H01 (work offset)
G00 X0.5 Y4.7879 (rapid to first hole)
G56 Z0.85 H32 (Tool offset, rapid to Z position) (is there a way to make protected rapid moves with okuma's built-in software? even though i will try to run this in maybe 1or5% mode)
Z-0.2 (rapid into hole)
G114 PD=0.4 PW=2 (probe hole and send offset to currently unused work offset)
G15 H01 (reselect work offset 1)


(now i need something to save this XY location from workoffset 1 to a new .MIN file.


G00 Z0.85 (rapid out of hole)


G00 X1.8911 Y4.7879 (rapid to second hole)
Z-0.2 (rapid into second hole)
G114 PD=0.4 PW=2 (probe second hole)
G15 h01 (reselect work offset 1)

(update or append second hole data to the .MIN file)

G00 Z0.85 (rapid out of hole)

M09
G90
M02


thanks!