I'd think something like a Boxford would have homing switches for both axis.
After which it's just a case of programming the correct offset.