Hey, My auto zero use to work and now it doesn't . Below is the script I am uesing. The changes I have made are; I went from USB SS to ESS ,Windows xp to Windows 7, And upgraded to the latest ver. of Mach3. The status bar message reads " Scripter Compile Error.in: " .I'm probably missing something simple. Thanks,Tommy
CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness = .375 'You could put your z-plate thickness here instead
ProbeFeed = 5 'You could put a probing feedrate here instead.
Code "G90 F" &ProbeFeed
If GetOemLed (825)=0 Then
Code "G4 P5" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
While IsMoving()
Wend
Code "G4 P0.25"
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z2.0" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed
Else