Auto Tool Zero Script Z axis


CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' two second delay
Code "G31 Z-1.0 F5" 'Z goes down a max of 1.0 at 5IPM
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z1.0" 'retract Z to 1.0 inch
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If


Wyszukiwarka

Podobne podstrony:
Auto Tool Zero Script center button DRO report
Auto Tool Zero Script X button hoss
Auto Tool Zero Script X button hoss
Auto Tool Zero Script Y button hoss
Auto Tool Zero Script OD button DRO report
original c68 retail diy auto diagnostic tool manual
Demystifying Auto Zero Amps
AUTO TRANS DIAGNOSIS AG4
TD 53x INPA Script
Tool changer service functions (SK40 Chain)
mniej niz zero
Volkswagen Temporary Auto Pilot
Auto alarm Digital Tytan DS200 instr obslugi
instructions for php scripts
Hull Zero Three

więcej podobnych podstron