My machine already has home switches.
I found this script online that I tested in Mach3 (demo).
But I only want to use it in metric. So do not know where I change the value for it to suit me.
Dim Zprobe, Zretract, ZfeedRate
Dim PlateX, PlateY
'Note: TouchPlateHeight represents the actual height of the
' Auto Z Touch Plate from the work surface.
' Minor adjustments can be made for calibration purposes (use caution)
TouchPlateHeight = .089
<<--- values in metric??Message( "Auto Tool Zeroing..." )
If IsSuchSignal (22) Then
isMetric = GetOEMLED(801)
Zprobe = -3
Zretract = 1.5
ZfeedRate = 10
PlateX = 10
<<-- I guess this value needs to be changed to fit my machine?PlateY = 10
<<-- I guess this value needs to be changed to fit my machine??If isMetric = 0 Then
Zprobe = Zprobe * 25.4
Zretract = Zretract * 25.4
ZfeedRate = ZfeedRate *25.4
TouchPlateHeight = TouchPlateHeight * 25.4
PlateX = PlateX * 25.4
PlateY = PlateY * 25.4
End If
Code "G53 G0 X" & PlateX & " Y" & PlateY
Call SetDRO( 2, 0.00 )
code "G31 Z" & Zprobe & " F" & ZfeedRate
While IsMoving()
Wend
Call SetDRO( 2, TouchPlateHeight )
code "G1 Z" & Zretract
End If
Is there any other script, g-code that is more suitable for me?
Don't know anything about programming otherwise I could have figured this out