Here are misunderstanding I think...
I Know that axis limits are in INI. I wrote that. But how to read that value inside Gcode?
I know that #5061 to #5070 are probe variable.
But how to determine current position (before probe move?)
So let's go trought example.
I jog machine inside some hole. Now I want to find center of that hole.
1. Remember current coordinate (how to do that?)
2. Go slow Y+ from current position until probe hit or soft limit reached (remember position #5061.....)
3. Go rapid to coordinate from step 1 (back to start)
4. Go slow Y- (same as step 2)
5. calculate midpoint from step 2 and 4 and go rapid here
6. do same thing for X axis (this is precise)
7. repeat again for Y axis (now Y is precise too)
show message that's done and show diameter too...
Holecenter program's I found all require to tell hole diameter and position. I'm shure that's not necessary. Just don't know how to deal it.
Slavko.