this 3 works fine...
8.- But.. if i mix the 3 into one large script.....
the machine works erratic..
IMHO your script's have some minor "leaks".
first read about GetVar(2000) to GetVar(2002), here are the values stored, where the the probe was hit,
because you will allways get an overrun of the axis caused by the decceleration during stop. so the usage
of this values is elementary (for me) for precise probing.
i personaly put allways after a movement instruction caused by script (G0 / G1) a
While IsMoving()
Sleep(10)
Wend
if you add this While IsMoving() to your code, you will see that the code will be a lot more
than you exepect.
you can also read about a Little bit here:
http://www.machsupport.com/forum/index.php/topic,36784.msg252331.html#msg252331