Hello Guest it is July 22, 2025, 05:20:33 PM

Author Topic: How to call tabPositionsExtens "On enter script" when mach 4 starts up  (Read 10014 times)

0 Members and 1 Guest are viewing this topic.

I've added some buttons for my ATC to the 'tabPositionsExtens' tab (the first one shown on startup). It populates the button labels with the tool number. The script works, but when I start mach 4 the script is not called. I need to select a different tab, then go back go back to 'tabPositionsExtens' tab and everything is correct.

Is there a way to make mach 4 call the script when it starts up?

Offline cncmagic

*
  •  110 110
  • what me worry? heck...it ain't my machine anyway
either place the code in the screen startup section or in the plc scripting.. that way it will run at startup.. you may need to change the code a bit so that it doesn't run every 'scan'... unless that doesn't affect the operation of Mach4.. it sounds as if you placed the code in the scripting for the Tab itself. :P
any semblance of information posted to anything remotely  close to accuracy is merely coincidence. Use at you own discretion.. or play the lottery.. same odds