hy look for vsio* for lathe, or vwka* & vwkb* for mill (* = x or y), but be carefull, because those don't always return the coordinate from the last block, but the comanded target point, which may be a different thing: is harder to read coordinates from a code that works in compensation, or in interpolation, or a cycle, or to detect if last block did actually triggered a motion among a certain axis, etc
please, what do you wish to achive ? g91 can't deliver ? kindly