Ger21, CarveOne, Restless1
I made some changes to verify what was going on with this macro
Code:
PlateThickness = .1045 '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 P5" ' this delay gives me time to get from computer to hold probe in place
Code "G31 Z -0.5 F5" 'probing move, can set the feed rate here as well as how far to move
Code "(past probe)" 'verify that it passed the above code
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, 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 0.75" '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
When I run the macro it basically skips this
Code:
Code "G31 Z -0.5 F5" 'probing move, can set the feed rate here as well as how far to move
I change the retract height to .75 to make sure that it was doing that and not moving in the wrong direction. For giggles I changed the code to a G1 command and the probe unit did go down, now it obviously didn't stop when it reached the plate, but it did move.
Any ideas on why it would skip that line of code with a G31 command? Or any ideas on why the plate would show it's grounded when I set the pin to Active Low?
Thanks for all of your help.