Har gjort klar min toolsetter men saknar själva machrot till Mach3, och mycket begränsat med tid att få det att funka, så om någon sitter på ett som funkar bra så tar jag tacksamt emot

Kod: Markera allt
Zmove = 3 'amount the tool will move down to hit the probe
Zpos = GetDRO(2)
Tool = GetDRO (24)
ZOffset = 20 'enter height of probe here
OldZpos = Zpos
ZPos = Zpos - ZMove
Code "G31 Z" & ZPos & " F20.0"
While IsMoving()
Wend
Zpos = GetVar (2002)
If Zpos = OldZpos - ZMove Then
responce = MsgBox ("ERROR! The tool did not hit the probe and DRO was not set" , 4 , "Probe ERROR!" )
Else
SetDRO (2,ZOffset)
End If
Code "G00 G53 Z-1"