CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness =0.76

If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G4 P1" 'Time to get to the z-plate, 3 seconds
Code "G90 G31 Z-1 F4" ' probing move, can set the feed rate here as well as how far to move

Code "F" &CurrentFeed 'returns to prior feedrate
Else
Code "(Z-Plate is grounded, check connection and try again)"
End If
Exit Sub       
