I have just spent the better part of a day examining the probing wizard and the mcProbing.lua file. I have monitored and searched the many posts regarding both probing, g31 calls and locked GUIs. I have used coroutines in a homing button script because there was a mcAxisHomeComplete that I could loop on.
With regards to g31 calls, there seems to be no equivalent api function, ISIG, register or poundvar that you can poll to find out if it has finished moving. There is a thread by Smurph that talks about using a plc script to monitor a register variable that seems viable.
Did I miss an API, ISIG or some other method of determinig that a g31 call has completed, not whether it struck but whether it has completed its move? isStill and isInCycle don't work during a probe.
After going through the probing wizard buttons, the mcProbing.lua and mcMasterModule.lua functions I found no coroutines, no use of the PLC wait nor any reading or setting of registers. Just successive calls to mcCntlGcodeExecuteWait...and it does not lock up the screen.
When I call a 'substantially' similar routine in a module I created, I get a locked screen until the module function finishes its mcCntlGcodeExecuteWait.
Any help?
TIA
RT