Hi,
sivtek wrote:On my lathe I still get the same notice: Get this message:"Utility not present. - Configured GCode Editor dos not exist on disk----. - Please check GCode Editor utility configuration".
If you want to get the same debug trace for the lathe, you can copy the debug version of the script into
C:\Mach3\ScreenSetMacros\MachStdMillLathe.lset\Masters\Scripts\Common
There are two copies of the script - one for mill and one for lathe. The instructions I provided only changed the mill copy of the script.
That message comes when the script asks windows to see if the Editor FQFN exists - and windows has said "no, that file does not exist on disk". So if you get a debug trace from the lathe, I'll bet that the editor FQFN is not set to a file that exists.
For the mill, the information we need is given in what you posted...
The debug trace shows that the gcode editor path and name is NOT set to notepad.exe.
sivtek wrote:
Wed - 14:48:10 ---Program Startup
On the mill I get the message: "Error on Line - "946-Internal Error.
This happens because the editor path and name (The Fully Qualified File Name or FQFN in programmer speak) is set to a dll file (which we will see in the trace messages below).
When windows is asked to run a dll file as a program, windows returns an error because that is not possible.
Unfortunately I forgot to trap the error in order to give the operator a reasonable text error message - so by default it says error on line number 946. I'll improve that for the next MSM release.
Now we will see that the source problem is:
sivtek wrote:
And the Last Errors- Notisblock reads:
Wed - 14:53:07 ---Program Startup
Wed - 14:53:27 ---MachStdMill Initialized
Wed - 14:54:02 --- Drill1
Wed - 14:54:02 --- T6 : 5.0
Wed - 14:54:12 ---GcodeEdit Debug: Entered GCodeEdit ...
so far things are OK...
sivtek wrote:
Wed - 14:54:12 ---GcodeEdit Debug: loaded gcode FileFQFN:H:\CNC arb. 2013\Burniching attachment.Part1.nc
This line is not the cause of the error, but I wanted to draw your attention to it. While the path node "CNC arb. 2013" is a valid sub directory name for windows, the . and then a space in the directory name could cause trouble for mach. I have seen several cases where Mach does not work correctly when there are unusual characters in directory names. Mach apparently does it's own parsing of file paths inside mach instead of using windows to do that task; so sometimes things that are OK for windows are not OK for mach.
sivtek wrote:
Wed - 14:54:12 ---GcodeEdit Debug: EditorFQFN:C:\Program Files\Microsoft Works\lfbmp13n.dll
This is the problem that is causing the error.
The gcode editor is not set to c:\windows\systme32\notepad.exe as you thought.
The trace message shows that the editor is set to:C:\Program Files\Microsoft Works\lfbmp13n.dll
So the system is asking windows to start a DLL file and that can't be done - hence the error.
If you fix the gcode editor string to be an actual program application file, the error will go away.
On the setting common page, use the "Set Utility Paths" button - the first path it will show is for the GCode Editor - I bet that is set to
C:\Program Files\Microsoft Works\lfbmp13n.dll
sivtek wrote:
Wed - 14:54:12 ---GcodeEdit Debug: Switches were null
Wed - 14:54:13 ---GcodeEdit Debug: CS = "C:\Program Files\Microsoft Works\lfbmp13n.dll" "H:\CNC arb. 2013\Burniching attachment.Part1.nc"
Wed - 14:54:13 ---GcodeEdit Debug: shelling editor...
Wed - 14:54:13 ---Error on line: 946 - Internal error
Regards
Johannes
Dave