6
« on: July 29, 2019, 02:30:06 AM »
Hi
we have the tool changer working again Whoo Hooo but after a lot of testing and playing around with ver 4261
But I believe there is still a bug
mc.mcSignalWait(inst,mc.ISIG_INPUT7 ,1,60)
I now use this and it works if a signal comes within the 60 seconds but the description for use says
Specifying 0 for timeoutSecs will wait indefinitely until the signal changes state. Decimals are allowed. e.g. .5 is half of a second.)
Using mc.mcSignalWait(inst,mc.ISIG_INPUT7 ,1,0) this did work as described in the 3804 ver now it will cause Mach4 to crash even if there is a signal there before call or after the command it does not matter using the command this way it will crash mach4 every time
just another question if I use this
if rc== -40 then
wx.wxMessageBox('Function failed-timed out')
return
end
just where does it return to ? does it just exit the m6 function ?
I would like it to return to a function where I can close tool doors retract they tool etc and exit the tool change nicely
Regard Ray