Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: cfell on January 21, 2013, 07:05:49 PM
-
I have a question concerning how Mach3 calls the editor. I am using a Tormach build of mill and when I go to [change-g-code] it forgets my program and simply sits with a blank program window. I then have to reload or open the code again. Oddly, on the same computer the Tormach build of Duality lathe works as it should. I checked the config xml and it appears to be the same for both and ok. I don’t have access to a config screen as in the standard build of Mach. Tormach support does not appear to want to go into the inner working of the program. Windows 7 computer, yes I have reinstalled the software.
Any insight would be appreciated. Thank you CF
-
It is probably a permission problem with W7. Have you tried starting the program as ADMIN ? sometimes that helps.
(;-) TP
-
I have struggled a bit more on this issue. I have observed that the Tormach build of Mach3 turn (duality lathe) consistently brings up notepad and works every time. The Tormach build of Mill attempts to bring up Notepad++. Notepad++ is loaded into the PCNC1100 directory structure during installation of the Tormach Mill build. From a cold start of the computer I am able to start notepad++ from that directory or Mach3. Regardless after 1 or 2 instances it no longer works unless I shut completely down and start again. So this is not a Mach issue.
My problem is Tormach does not give you access to a configuration screen so I can change my editor. Does anyone know how I can get around this? The Windows 7 machine is not my controller. I am simply trying to keep the screen sets the same on my development machine as my controller computer.
-
Can you attach your mill xml please.
Hood
-
Hood that is cheating(;-)
(;-) TP
-
Not cheating, just bending the rules a wee bit :)
Hood
-
I have found two xml files each named PCNC1100M3-II. One in the PCNC3 sub directory (along with Mach3), the other in the PCNC3/NotpadPluPlu/Ansi sub directory (along with NotepadPlusPlus). To identify the second file I added “_2009” to the name. There is no <editor> tag in the _2009 file that I can find. I was going to try changing the tag in the first file but couldn’t figure out what to put. I appreciate your help.
-
Place this in your Mach3 folder and use the loader to open it and see if it works.
Hood
-
Thanks but no joy. I exchanged the files. Loaded a program and could see the code and file name on the Mach screen. When I clicked change G-code button the file name immediately changed to "no file loaded". I then had to reload my file.
If I hover near the button when I press it, I see the blue circle (hour glass thing) briefly then it goes away.
-
Ok must be more to it than simply the path changed. Can you attach the lathe xml so I can compare, might manage to work out what they are doing.
Hood
-
Here is the Duality xml. I couldn't even find the editor tag in it.
-
I presume you use a shortcut to open your mill profile? If you do can you right click it and select properties then tell me what the target is, that will let me know which xml is being used.
Hood
-
C:\PCNC3\PCNC1100M3-II Start.BAT
-
Ah ok so they are using a batch file to open things up. Will send you a PM in a few mins.
Hood
-
I want to express many thanks to Hood for his attention yesterday. I am getting further but still unable to change the editor used in the OEM Tormach build.
I have observed that PCNC does actually bring up notepad++ with my code in it one time after a complete cold start. It does not after that first time. I loose my code and have to reload it. I have also noticed I can start notepad++ from the command prompt once after a cold start but I am unable to run it a second time after closing. If I close it then enter the same path command it does not open.
Clearly this is a Windows7/notepad++ issue. It would be so easy to resolve if I could change my editor.
-
Bit of a long shot but what if you copy notepad.exe form the system32 folder and place in your pcnc folder and use the xml that I changed to open notepad?
Hood
-
YOU GOT IT !!!!! that looks like it worked.
Thanks is an understatement.
-
hopefully it will keep working :)
Hood