ger21 wrote:On a related note, does adding an
exec.Wait(200);
after the
while(exec.IsMoving()){}
Have any effect on probing?
In the default M31 macro, the probe moves are followed by an exec.Wait(200);
My probing and auto zero macro's do not have the exec.Wait(200);
Someone using them said he got better repeatability after adding exec.Wait(200);? I didn't get any details, but is this required, and why?
I think we've placed that Wait there to make sure the probing and so the Moving starts before the code execution gets to the while ismoving check.
However how it works now is that the G31 internal probing routine waits until the probing ongoing and does not gives the handle back to the macro until the probe bit goes off, so the wait is not required.
The while ismoving is still required though if you want to wait until the movement totally ends, because the probing routine gives the handle back as soon as probing ends and the probing ends when the probe triggers (or the endpoint is reached) and that does not include the decceleration movement.