Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: carmeljc on January 21, 2025, 11:28:49 AM
-
Hello,
I've gotten Mach4 setup and all port/pins & settings pretty well tuned but I keep having a popup come up every time I home that "referencing is complete" when I can already tell that's the case with the green lights.
Unfortunately, I have a good number of toolpaths to move through most days, is there any way to get rid of this pop-up? It would save some serious sanity.
Thank you!
-
In the screen script - There is this function -
function RefAllHome()
mc.mcAxisDerefAll(inst) --Just to turn off all ref leds
mc.mcAxisHomeAll(inst)
coroutine.yield() --yield coroutine so we can do the following after motion stops
----See ref all home button and plc script for coroutine.create and coroutine.resume
wx.wxMessageBox('Referencing is complete')
end
Remove the line wx.wxMessageBox('Referencing is complete')
Let me know if you need help to find the screen script.
-
Hi Massy,
I found that script within the script editor under Screenscript.lua, however, it's an uneditable file that collects all other .luas into one singular un-editable screenscript. Do you by chance know where screenscript.lua compiles the RefAllHome function to edit where screenscript.lua is pulling from? Or is there a way to edit screenscript.lua somehow?
Thanks again
-
In MACH4 -
1. Click Operator - Edit Screen
2. On the left top panel(Screen Tree Manager), select the screen name.
3. On the bottom left panel (Properties) Select the middle icon. Events.
4. The top script there is the screen load script. If you click it - ... appears. Click it to edit the screen script.
5. Do the updates and close the edit.
6. Click on operator - Edit screen to close and save the screen.
-
Found it, went to "open script editor" the first time. Thank you very much for your time and help! It's really appreciated.
-
Pleasure - Glad I could help