I am not a big Gcode expert, but I am trying to put together a small program within the Gcode file...

For this I need to know how to store POSITION value of an axis to a parameter.

What I have found in the manual is that I can use parameter value as a coordiante (so computer puts the actual value of the parameter to the given axis position) but I just wan the other way around...

this should be possible from gcode, I just do not know how...

I have quickly put together the math for what i want, but I have this obstacle now...

I want to probe a few points, then record the probed coordiantes, make some calculations (add, subtract, divide, multiply, arctan) and then use the results for coordinate shifting and rotation....