OK I think maybe this is the common problem of folks asking how to implement THEIR solution rather than asking for A solution to a problem. No worries - happens all the time.
Put the following code into the button of your choice...
X = getOEMDRO(800)
If X <> 0 Then 'x has changed
Code "G0 X" & X/2
Else
Y = getOEMDRO(801)
If Y <> 0 Then 'y has changed
Code "G0 Y" & Y/2
End If
End If
and then do this...
1) touch off your first side and zero both X and Y via the buttons next to the axis DROs
2) touch off your other side AND THEN RAISE Z to a SAFE HEIGHT
3) hit the button. The axis will move to the mid-point and show its coordinate of course in the DRO
4) Zero the DRO
Of course this could be automated even more and various safeguards put in place but it's a starter.
My usual terms & conditions - you use this code at your own risk - if it breaks anything including your heart you get to keep the pieces.
If you want to try it BEFORE you stick it in a button just run it from the CB editor.
Ian