Hi mk00,
Sorry I'm very confused. But yes with Geo Correction the KFLOP raw Coordinates will be a distorted transformation of the GCode CAD Coordinates.
It isn't clear to me how you are measuring the tool.
KFLOP MDI commands can't be used from an M Code called from GCode (The Interpreter is not re-entrant).
There is a function to return the currently commanded position in Geo Corrected CAD Space. I would think that might work for you.
Regards
Code:
int GetMachine(double *Machinex, double *Machiney, double *Machinez, double *Machinea, double *Machineb, double *Machinec)
{
if (DoPCInt(PC_COMM_GET_MACHINE_COORDS,TMP)) return 1; // Var index and Cmd
*Machinex=GetUserDataDouble(TMP);
*Machiney=GetUserDataDouble(TMP+1);
*Machinez=GetUserDataDouble(TMP+2);
*Machinea=GetUserDataDouble(TMP+3);
*Machineb=GetUserDataDouble(TMP+4);
*Machinec=GetUserDataDouble(TMP+5);
}