Hi,
I'm trying to make a fast raster probing macro, but am really struggling to get the main logic loop working.
What I want to do is stop the G31 command running, i.e. stop the machine moving when a certain distance is reached. On its own, the G31 command will keep the machine moving in a straight line until the probe is triggered.
My VB script looks something like this:
code "G31 X10"
While GetParam(XMachine)>10
Sleep 100
Wend
Which isn't doing anything useful
If anybody can see how to stop the machine moving if X position equals or exceeds 10, please let me know!