Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Pedio on July 04, 2015, 11:52:09 AM
-
Is there a way I can move the Jog tab to be the first tab on the OperationsTabs window? I would like for this to be the first one to appear when I start the machine.
I have tried moving it in Screen Tree Manager but I have not had any success.
Thanks,
Peter
-
Hi Pedio! Yep...you can do it in the screen tree manager. You have to take the other tabs before jogging and drop them to the end (or below jogging).
-
I tried that and it was very erratic on how it worked. when I finally got it to work (and rebooted Mach4) all of the buttons on the tabs had disappeared??? I had a backup ;D
-
In your screen load script place
function SetJogTab()
local inst = mc.mcGetInstance();
scr.SetProperty('OperationsTabs', 'Current Tab', '3')
end
In your PLC script place
if testcount == 5 then SetJogTab() end
DazTheGas <----- Dont put that ;-)
-
Ahhh, I see. So you set the OperationsTabs to display the jogging tab upon screen load by making the current tab = jogging tab.
Yah, I went back and my stuff was missing too. Sorry Pedio.
Thanx Daz. DazTheGas()
-
well technically, set current tab to 3 on the fifth scan of the PLC; to wit the PLC calls the function defined in the screen load up script....right?
-
yep its just a fallback to make sure the screen has finished loading first, had mixed results without it
DzTheGas
-
Daz - Works! Thanks
;D
-
BTW - will I need to redo this the next time Mach4 is upgraded? I am starting to keep a list.
P
-
if your profile is wxmach then yes this will get overwritten, if you have a custom profile then you will be ok.
DazTheGas