Hello Guest it is May 16, 2025, 06:49:57 PM

Author Topic: "Reference is Complete" when Homing  (Read 2367 times)

0 Members and 1 Guest are viewing this topic.

"Reference is Complete" when Homing
« 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!
« Last Edit: January 21, 2025, 11:40:55 AM by carmeljc »
Re: "Reference is Complete" when Homing
« Reply #1 on: January 22, 2025, 01:35:25 PM »
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.
Re: "Reference is Complete" when Homing
« Reply #2 on: January 22, 2025, 02:19:41 PM »
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

Re: "Reference is Complete" when Homing
« Reply #3 on: January 22, 2025, 02:23:33 PM »
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.
Re: "Reference is Complete" when Homing
« Reply #4 on: January 22, 2025, 03:10:34 PM »
Found it, went to "open script editor" the first time. Thank you very much for your time and help! It's really appreciated.
Re: "Reference is Complete" when Homing
« Reply #5 on: January 23, 2025, 12:19:34 AM »
Pleasure - Glad I could help