Hi TP....Mr. Little here....

I don't know what the big boys do...Had to figure it out by myself...
That's why I want to do the following.

First the setup.
I have a probe permanently mounted on my Z-axis.
The probe can be brought in place when needed by activating an accurate pneumatic actuator.
The offset probe > mill is a fixed value in X and Y.
Say, I want to engrave an acrylic sign.
Acrylic is no way flat. On a 10 mm thick sheet thickness can vary about plus or minus 0.4mm.
When engraving with a v-bit at 0.1 mm depth this means a very thick trace...or no trace at all...
The acrylic sheet already has the size needed for the sign.
Only the engraving has to be done.
What I do is:
- Place the acrylic on the table
- Probe position in X and Y.
- Set G68 rotation and offset
- Z-Probe the surface of the acrylic sheet (Till now with my crappy button script..)
- Pull the Z-probe results and the original g-code for the engraving through my "z-control" program.
- Load the z-adjusted g-code into Mach
- Zero tool
- Start...
It might be an unusual approach...but I like it...can't help it...
I did a dry run with the probing g-code Graham posted, machine offline.
Just lowered the number of points a little, replaced the M1234 and M1235 macro with M40 and M41.
When I probe in G68, 1 degree rotation, offset x10 and y10 I get the following results.
10.00000,10.00000,-5.00000
29.99687,10.34688,-5.00000
49.99375,10.69688,-5.00000
9.65000,29.99687,-5.00000
29.64688,30.34375,-5.00000
49.64375,30.69375,-5.00000
9.30000,49.99375,-5.00000
29.29688,50.34063,-5.00000
49.29375,50.69062,-5.00000
8.95313,69.99062,-5.00000
28.95000,70.34063,-5.00000
48.94687,70.68750,-5.00000
Probe offset can be ignored, this is a dry run (as if the probe is in the centre of the mil/spindle).
Probe (M40) X and Y are not the same as the (red) X Dro and Y Dro.
X and Y Dro show "integers" as probing points, like:
0.000, 0.00
20.000, 0.000
40.000, 0.000
etc
The X and Y values M40 "writes" in G68 mode, in my opinion, really are machine coords.

Offset and rotation are known, so machine coordinates can be "calculated back" to work coordinates.
But for me that will be a lot of work/reading.
So I was looking for a way around...still impressed by the simplicity of M40..!
Rich
Or actually D I C K, but this is ****ed away quite often, on English sites...

(Mr Little is extra funny in this case!)