DIY Auto Zero Tool for CNC (Mach3) #shorts

preview_player
Показать описание
DIY Auto zero tool for CNC (Mach3) #shorts
It's easy to make a auto zero tool for CNC, you don't need pay money to buy it.
You only connect 1 wire to mass (zero/GND), remain wire you will connect to in 4 on Mach3 board.
When you push Auto tool zero, don't forget install crocodile clip on CNC mill
And I will share for you the code to install on Mach3:
=============================================
'VB Code Start
'-------------------
CurrentFeed = GetOemDRO(818)
DoSpinStop()
ZMove = 50.00 'Chieu cao ban dau. initial heigh
ZOffset = 42.50 ' Chieu cao cua AutoZ0-de
ZSal = ZOffset + 10.00 'Cao 10mm trên mat AutoZ0-de
StopZmove = 0
If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G4 P2.5"
Code "G31 Z-"& ZMove & "F25"
While IsMoving()
Sleep(200)
Wend
Probepos = GetVar(2002)
If Probepos = - ZMove Then
responce = MsgBox ("**ERROR** " , 4 , "Probe **ERROR**" )
Code "G0 Z10"
StopZmove = 1
Code "F" &CurrentFeed
End If
If StopZmove = 0 Then
Code "G0 Z" & Probepos
While IsMoving ()
Sleep (200)
Wend
Call SetDro (2, ZOffset)
Code "G4 P1"
Code "G0 Z" & ZSal
Code "(Z zeroed)"
Code "F" &CurrentFeed
End If
Else
Code "(kiem tra day dan)"
End If
Exit Sub
'-------------------
'VB Code Stop
Рекомендации по теме
welcome to shbcf.ru