81
General Mach Discussion / Re: Z Zero touchplate oddity...
« on: June 03, 2010, 09:54:12 AM »
I don't use them, so I shouldn't have, but I'll check when I get back. Thanks
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Code "G0 Z" &ZProbePos 'go back to that point
PlayWave ("SOUNDS\AUTOZZERO.WAV")
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = 2.40 'GetUserDRO(2.40) '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-80 F100" 'Z goes down a max of 20mm at 100mm/min
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the exact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point
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 Z4" 'retract Z to 4 mm
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)"
Exit Sub
End If
that looks like one axis just quits for a while then starts back.you might want to check your wires from the motors back to the drivers.
everything might be ok except for one motor is not getting the signal all the time.