Hello Guest it is April 19, 2024, 01:00:58 AM

Author Topic: HELP!! I'm about to pull my hair out  (Read 3105 times)

0 Members and 1 Guest are viewing this topic.

HELP!! I'm about to pull my hair out
« 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

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: HELP!! I'm about to pull my hair out
« 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?

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: HELP!! I'm about to pull my hair out
« Reply #2 on: February 08, 2010, 08:44:35 AM »
Could you also try to use
Code: [Select]
Sleep(250) rather then
Code: [Select]
Code  "G4 P0.25" 'Pause for Dro to update.

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: HELP!! I'm about to pull my hair out
« Reply #3 on: March 30, 2010, 03:49:56 PM »
I wonder if he pulled the skin off with the hair? DID IT WORK?
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)