Hello Guest it is May 08, 2021, 06:32:30 AM

Author Topic: auto zero and touch plate  (Read 7528 times)

0 Members and 1 Guest are viewing this topic.

Offline Chaoticone

  • *
  •  5,626 5,626
  • Precision Chaos
    • View Profile
Re: auto zero and touch plate
« Reply #10 on: September 19, 2009, 10:32:30 AM »
I'm sorry, I left the first few lines out that are critical.  ::) Please paste this in and see how it does.


CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness =0.059
ProbeFeed = 5

Code "G90 F" &ProbeFeed

If GetOemLed (825)=0 Then
Code "G4 P2" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
Code "G4 P0.25"
While IsMoving()
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Call SetDro (2, PlateThickness)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z0.25" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed
Code "(Z-Plate is grounded, check connection and try again)"
Exit Sub
End If
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!