Welcome, Guest. Please login or register.
Did you miss your activation email?
September 09, 2010, 03:53:11 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  HELP!! I'm about to pull my hair out
Pages: 1   Go Down
Print
Author Topic: HELP!! I'm about to pull my hair out  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
glengeniii
Active Member

Offline Offline

Posts: 26


View Profile
« on: January 30, 2010, 02:33:58 AM »

I made a touch pad to auto zero tools.  I found this script in this forum, but it does not appear to be working properly.

When the auto tool zero button is pushed, the tool comes down and touches the touch off pad  (led lights up) but does not stop, it continues to probe the entire specified distance (.100") , comes to a momentary stop, then continues moving the Z axis down until it triggers the z axis limit switch, instead of going back up the specified retract distance.  It also does not zero the tool when it contacts the touch pad.  Can someone please help?  I attached  my screen set.

ProbeOffset= GetUserDRO(1151) 'probe offset 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
Code "G31Z-.1 F5"  'probing move, can set the feed rate here as  well as how far to move
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, ProbeOffset) 'set  the Z axis DRO to whatever is set as probe offset
Code  "G4 P0.25" 'Pause for Dro to update.
Code  "G0 .1" 'put the Z retract height you want  here
Code "(Z axis is now zeroed)" 'puts  this message in the status bar
Else
Code "(Z-Plate  is grounded, check connection and try again)" 'this  goes in the status bar if aplicable
Exit Sub
End  If


* myscreen1024ii.set (92.97 KB - downloaded 28 times.)
Logged
stirling
Global Moderator
*
Online Online

Posts: 617


View Profile WWW
« Reply #1 on: February 01, 2010, 06:41:38 AM »

what happens if you do a g31 from the MDI or from gcode? - does it stop then?
Logged
zealous
Administrator
*
Offline Offline

Posts: 456



View Profile WWW
« Reply #2 on: February 08, 2010, 08:44:35 AM »

Could you also try to use
Code:
Sleep(250)
rather then
Code:
Code  "G4 P0.25" 'Pause for Dro to update.
Logged

Regards, Jason Blake
Fastest1
Active Member

Offline Offline

Posts: 245


Houston, TX



View Profile
« Reply #3 on: March 30, 2010, 02:49:56 PM »

I wonder if he pulled the skin off with the hair? DID IT WORK?
Logged

I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!