5
« on: July 12, 2011, 10:30:01 PM »
I'm new to CNC routing and have a problem I'm trying to resolve.
I added a Zero plate setup to my machine and can't get it to work properly. Here is what is going on.
I set up the auto zero plate (thickness 0.04" which shows in the plate thickness window) and hit the probe over plate DRO. The spindle slowly lowers until it hits the plate then raises to 0.5 and stops. I then hit the ZO DRO and the spindle lowers to 0.0001. When I then hit start cycle the spindle raises and travels to the start point and then lowers but stays above the work surface by a very very small amount and does not route the wood. The toolpath I'm trying to carve is 0.2" deep.
I can't figure out what I'm doing wrong and I'm hoping someone can guide me in the right direction.
The script for the plate thickness DRO is as follows:
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = GetOemDRO(1151)
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" ' this delay gives me time to get from computer to hold probe in place
Code "G31Z-1 F4" '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, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z.5" 'put the Z retract height you want here
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)" 'this goes in the status bar if aplicable
Exit Sub
End If
LAMEIII