There are several buttons/ops that will jam up the works if hit while the file is runnung.
I guess they could all be stacked like this ?
--From Craig to isolate G28 button, and others
if (mc.mcCntlIsInCycle(inst) == 1) then
scr.SetProperty('btnG28', 'Enabled', '0');
scr.SetProperty('btnGotoZero', 'Enabled', '0');
scr.SetProperty('tabFileOps', 'Enabled', '0');
else
scr.SetProperty('btnG28', 'Enabled', '1');
scr.SetProperty('btnGotoZero', 'Enabled', '1');
scr.SetProperty('tabFileOps', 'Enabled', '1');
end
I wanted to try.... if ((mc.mcCntlIsInCycle(inst) == 1) or (mc.mc Call for Enabled or Disabled (inst) == 1(or0)) then .....
but could not determine what would go here --------------------------------------^
IsInCycle, IsStill, State .... I found. Is there one appropriate for this ?
Turns out, the axis' are disabled when in reset anyway, so that part is OK, just wondering what to call in tha case above.
Cool, thanks again Craig,
Russ