Thanks, I am using the CntlGcodeExecuteWait commands on purpose.
The issue is that the commands:
mc.mcSignalSetState(DrawbarOPEN, 1)
c.mcCntlGcodeExecuteWait(0, "G00 G91 Z.5")
need to happen at the same time
after
mc.mcSignalSetState(DrawbarOPEN, 1)
There is about 1/2 second pause, so in this instance the drawbar opening takes about 1 second (mine is pneumatic, set to Columbo's specs at 90psi, pushing the drawbar down .5"). The drawbar pushes down during that 1/2 second pause, then it starts to lift and the pushing stops while the drawbar is still opening, when Z is .5 inches up. I then rapid up to clear the tool holder. I find there is a pause between every command. (I also see this happening when I call a loop, at the end of a loop, in a normal cutting cycle)
I thought this would set the DrawbarOPEN bit, which I assume takes millseconds to do, and as best I can tell by listening to the solenoid click, there is a pause after every step.
So the 3 lines go: move in to tool holder fork, pause, open drawbar, pause, raise spindle, pause
What I want is: move in to tool holder fork, pause, open drawbar while raising spindle, pause
During a cutting cycle everything runs nice and smooth, unless I call a loop where there is a slight pause at the end of the loop.
I need the command:
c.mcCntlGcodeExecuteWait(0, "G00 G91 Z.5", mc.mcSignalSetState(DrawbarOPEN, 1))
But nothing like that exists that I can find