(Surface measure)
(Tool is placed somewhere above the surface sensor)
(Surface Sensor Width is placed into Parameter #5490)

G28.2 Z0.		(save current z position into Register1.Z (value with Z doesn't matter))
G53 G38.2 Z-10.	F20	(move down to z=-10., stop while sensor is pressed)
G10 L70 P1 Z#5490	(set current work position as Z=0 (with offset depends on tool sensor width))
G28.5 Z0.		(return back to saved Z position in Register1.Z (value with Z doesn't matter))


