The document contains code to perform a probing cycle to determine the height of a plate. It moves the probe down at a fast feedrate and checks if it makes contact, stopping the cycle if an error occurs. If contact is detected, it sets the z-offset and moves to a safe height above the plate.
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
0 ratings0% found this document useful (0 votes)
240 views1 page
Probe Mach3
The document contains code to perform a probing cycle to determine the height of a plate. It moves the probe down at a fast feedrate and checks if it makes contact, stopping the cycle if an error occurs. If contact is detected, it sets the z-offset and moves to a safe height above the plate.
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 1
CurrentFeed = GetOemDRO(818)
DoSpinStop()
ZMove = 20.00 'Total lenght of Probe to move before Stop or no Contact Made. ZOffset = 20.00 ' Plate Hight ZSal = ZOffset + 2.00 '+ Free Hight, Will possition the Proble 2 MM over the Material. StopZmove = 0
If GetOemLed (825)=0 Then
DoOEMButton (1010) Code "G4 P2.5" Code "G31 Z-"& ZMove & "F50" 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 "(Check Ground Probe)" End If Exit Sub