When I worked with CNC mills many many years ago, to set the datum on X and Y we used a wobbler, basically a 0.2 dia ball mounted tip that deflected when very close to datum edge.

What is used now to set the datum on X & Y axes.