> From: andy pugh [mailto:bodge...@gmail.com] > On Thu, 3 Sep 2020 at 20:40, John Dammeyer <jo...@autoartisans.com> wrote: > > > I have not yet written any sort of tool touch of macros or functions in > > LinuxCNC. No idea where to start with that. > > G38.2 > G10 >
Here's what I've got on the MACH3 system. The probe must be within 3" of the surface. The DRO for Z is then adjusted for the thickness of the touch plate. For Wood routing this has been more than adequate. Write-up on this G-Code is here: https://machmotion.com/cnc-info/g-code.html#G31_Straight_Probe response = MsgBox( "Auto Zeroing, Put Ground Clip on Tool bit", 1 ) If IsSuchSignal (22) Then code "G31 Z-3 F20" While IsMoving() Wend Call SetDRO( 2, 0.0625 ) code "G1 Z1" While IsMoving() Wend response = MsgBox( "Auto Zeroing Complete. Remove Ground Clip", 1 ) End If _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users