Thanks for that Greg,
though there could still be cause for concern..
I've been testing these scripts just letting the G31 run to the end and of course it still thinks its done its job, I think some more scripting needs putting in there..
Another thing is that if your dro is reading a large number then G31 Z-20 is a long way before it stops - if it can get there, so that needs to be incremental. If it's not incremantal and your dro is reading smaller than -20 i.e, -100 then it goes up
here's what I put..
>
If GetOemLed (825)=0 Then
Code "G91"
Code "(Put Plate in Position)"
Code "G4 P5" 'Time to get to the z-plate
Code "G31Z-20 F" &ProbeFeed
Code "G90"
While IsMoving()
But this assumes that the machine was in G90 state before hand and wants to go back to being G90
Is there a list of variables in Mach that hold the current active G codes? That way it can be collected before the start of the macro & put back after the macro
There's gonna be that day when you're not using abs and it's bound to be an expensive tool/job
Shoving different numbers in the dro and trying out the macro usually works
I can't put my finger on what exactly how to replicate it but stepping through the macro I found that when it goes haywire it hasn't updated the ZProbePos variable, I'll try some more to make it repeatable but early tests seem to indicate that it screws up if I don't jog the Z axis after changing the dro..... oh ver 3.0 arts last
Has anybody else had this?
Steve