top of page

Use your probe to measure the surface topology of any part or check tram

Using the Renishaw probing system, you can measure the height of a given feature.  This can be used to measure the surface topology of any regular or irregularly shaped object and use the resulting point cloud for modeling in a CAD package or part inspection.

​

The G code to do this for a HASS machine is in the adjacent box,  Modify it to your machines need.  It takes a measurement then outputs it to a file through the DPRNT command.  You must define where this data will go (setting 262) and is formatted as X position, Y position, Z position relative to G54 zero.  The scan spacing is controlled through variable number #10001 and #10004.  The width and height of the scan is controlled through variables #10010 and #10011.  Change these and #10012 to match the turret location of your probe. MAKE SURE YOU SET G54 FIRST to the bottom left.  The first move to start the scan is unprotected and probe damage can occur if your work coordinate system is off.  If the part has a lot of Z variation then height parameters should be altered as well.  The Z0 on your g54 should be set to the highest point of the item being measured so the probe doesn't crash.  Be very careful using this code without understanding it.

​

In the contour plot below, you can see the elevation plot of the TM1P's table.  The surface units are in thousandths of an inch.  There is an obvious forward to back pitch of the table, that is about 0.0001" per inch in the Y axis.  The X axis is nearly perfectly flat over the 26 inches that were measured.  The grid spacing for this was 1 inch in the X and 2 in the Y.

HASS Table surface height

%
O20001 (Surface probe a part)
(Do not use this code without g54 x/y/z fully defined)

(at the lower left hand corner of part)

​

(user input area)
#10010= 27. (width of part in inches)
#10011= 10. (height of part in inches)
#10001= 1. (scan distance in inches)
#10004= 2. (scan in y distance) 
#10012= 10 (probe is what tool number)

​

(initilize variables)
#10002= 0. (Start postion in x)
#10003= 0. (Spacing in Y)

​

(MOVE TO CORNER TO START SCAN )
G43 G54 H#10012 
G1 G54 X0. Y0. Z1. F300. 

​

G65 P9832 (enable Probe)
G103 P1  (stop look ahead)
G65 P9810 Z.25 F80.

​

WHILE[#10003 LE [ #10011 ] ] DO2

​

WHILE[#10002 LT #10010]  DO1
G65 P9810 X[ #10002 ] F400. 
G65 P9811 Z-0.5 
DPRNT[#5041[24]*#5042[24]*Z#10187[24]] 
#10002=#10002+#10001
END1

​

#10002= 0. 
#10003= #10003 + #10004 
G65 P9810 Y[#10003] X#10002 F400. 
END2

​

​

G65 P9833 (TURN PROBE OFF)
G103 P0. (enable look ahead)

M30
%

© 2025 Novel Parts

bottom of page