(Tool length measure)
(Working cube values are situated in Parameters - )
( 5421 ... 5428) - Minimum point )
( 5431 ... 5438) - Maximum point )
(Position of Tool Sensor is situated in Parameters 5471 ... 5478 )


G28.2 X0 Y0 Z0		(save current XYZ position into Register1.Z)


G53 G0 Z#5433		(move tool up to safe position - Working Cube max Z)
G53 G0 X#5471 Y#5472	(move to XY Tool Sensor Position )
G53 G38.9 Z-10.		(move down to z=-10., stop while the sensor is touched/pressed)
			(While sensor is pressed, tool Z offset is saved for Current Tool) 
G53 G0 Z#5433		(move tool up to safe position - Working Cube max Z)
G28.5 X0. Y0.		(return back to saved XY position in Register1.XY (XY values are))
G28.5 Z0.		(return back to saved Z position in Register1.Z)



