Gene,

Here's a hole probe routine I have used with my touch probe. The constant 0.1526 is the effective radius of the probe tip. Due to the lag in sensing the probe, it makes a fairly rapid touch first at F10, backs off, and then does it again, from very close, at F1. It writes out the coordinate offset of the center as well as the diameter in that direction.


g91 g1 F10 X-0.05
g91 G38.2 X0.5
G91 G1 F1 X-0.02
g91 G38.2 X0.1
#1001=#5061
g91 g1 f10 X-0.05
g91 G38.2 X-1.0
G91 G1 F1 X0.02
g91 G38.2 X-0.1
#1002=#5061
#1003=[[#1001+#1002]/2]
#1001=[#1001-#1002+0.1526]
(debug,X center  #1003)
(debug,X width #1001)
G90 G1 F10 X#1003
g91 g1 F10 Y-0.05
g91 G38.2 Y0.5
G91 G1 F1 Y-0.02
g91 G38.2 Y0.1
#1004=#5062
g91 g1 f10 Y-0.05
g91 G38.2 Y-1.0
G91 G1 F1 Y0.02
g91 G38.2 Y-0.1
#1005=#5062
#1006=[[#1004+#1005]/2]
#1004=[#1004-#1005+0.1526]
(debug,Y center  #1006)
(debug,Y width #1004)
G90 G1 F10 Y#1006
G10 L20 P1 X0 Y0
M02


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to