Hello Guest it is April 26, 2024, 01:42:50 AM

Author Topic: Probing on new Mach 4 screens  (Read 8151 times)

0 Members and 1 Guest are viewing this topic.

Offline Bx3mE

*
  •  68 68
    • View Profile
Re: Probing on new Mach 4 screens
« Reply #10 on: October 25, 2015, 06:12:09 AM »
Can i not have the autotool script as a module or is it for running in debug i have to move it?

mm -> Master modult = i got it :D
Re: Probing on new Mach 4 screens
« Reply #11 on: January 21, 2016, 01:10:24 PM »
Hello, everyone. I'm tryng to run the "T Lamontagne" script for "auto tool zero" (If I'm not mistaken, is the same script that you are talking. If not, my appologyze -_-!) and following your comments. In the Probing.lua, the command mm.ReturnCode(CA) is used many times but I can't find where is declared. I debugged the script but when arrives at mm.ReturnCode(CA) crashes. Could you give me a clue to find it or to correct it?

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Probing on new Mach 4 screens
« Reply #12 on: January 21, 2016, 02:18:17 PM »
all the modules are loaded in the screen load script, found in the scree editor.

Code: [Select]
    --Master module
    package.loaded.MasterModule = nil
    mm = require "mcMasterModule"
   
    --Probing module
    package.loaded.Probing = nil
    prb = require "mcProbing"
    --mc.mcCntlSetLastError(inst, "Probe Version " .. prb.Version());

    --AutoTool module
    package.loaded.AutoTool = nil
    at = require "mcAutoTool"

DazTheGas
New For 2022 - Instagram: dazthegas
Re: Probing on new Mach 4 screens
« Reply #13 on: February 26, 2016, 02:09:06 PM »
Yep found it! Now i have the script running but no movement. When i run the debugger it says:

Failed reading from the debugger socket. Debugger wxLUASOCKET_DEBUGGEE_EVENT_ERROR
Got a socket error trying to read. Address '172.17.2.159'. Port 62704.
Got a socket error trying to read. Address '172.17.2.159'. Port 62704.

for the mcAutoTool.lua

and

At Breakpoint line: 7 file: C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m7001.mcs
mcLua ERROR: Lua: Error while running chunk
[string "C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m7001..."]:7: attempt to index global 'mm' (a nil value)
stack traceback:
   [string "C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m7001..."]:7: in function 'm7001'
   [string "C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m7001..."]:17: in main chunk


mcLua ERROR: Lua: Error while running chunk

What am i doing wrong?

I have the same problem, but I don't understand what finally needs to be done to get it running. Can anyone explain in detail what needs to be done/changed?

Thanks a lot!
Marc