How to Edit program from cnc milling program

More
4 years 3 months ago #248489 by Routerworks
Hello,
I'm new to Linuxcnc and was used to using Mach3.  I have set up a control page in "axis" and can open a g code file to run.  However when in there I am not able to change any of the g code in the program.  Is there a way to do it I am just not aware of?

Thanks in advance
 

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #248539 by Todd Zuercher
In the Axis ui, under the "File" pull down menu click "Edit". This will open the g-code file you have currently loaded using the text editor you have specified in you're config's ini file. This would be in your ini file in the section [DISPLAY], the line EDITOR =. Simply type the command to open your text editor of choice after the = sign. (Usually the name of the text editor.)

Often this used to default to the Gedit, text editor which is usually not included with the desktop environments that have been standard with most Linuxcnc installs for the past 6 or 7 years. Resulting in nothing happening when you click Edit in the File menu. (This is an artifact of days gone by when Linuxcnc used to come with the Gnome DE and Gedit came with that DE. I would not recommend installing Gedit (unless you're using Gnome) because it comes with a host of dependencies that end up installing a significant chunk of Gnome. If you don't like the text editor you have, and would like to install something else, I'd recommend Geany. It is much lighter than Gedit with all it's Gnome dependencies, has a similar look and feel, but is much more capable.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #248546 by Routerworks
Thanks a lot for answering. My dumb mistake to begin with. I tried "edit" under file and nothing happened. Then after some reading I realized I had to do a configuration. Long and short of it I tried several configurations and none of them allow me to use edit (which is just what I was looking for). When I create configurations using the wizard (not so sure it is) I get an error when I try to open it up from the desktop shortcut.
I'm missing something in the setup. All I want is a basic editable 3 or 4 axis control panel.
Many thanks

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #248551 by Todd Zuercher
Many of the sample configurations are quite old and were never updated to reflect available installed text editors when new releases were made. You can open the ini file with a text editor and change the setting.

There are a myriad of possible reasons a new config might not open. I can't begin to venture a guess as to why yours are failing. The answer would be contained in the error message. However there can easily be multiple errors in your config, and only the 1st one found at start up would be listed in the error message. It could take multiple attempts to find and correct all the problems to get your config running. Don't get too disheartened. We all went through the same teething problems learning how with our first tries. If you need help deciphering the error message copy it in it's entirety and save as a text file and post it here, and someone can help suggest corrections.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #248554 by Routerworks
Understood, thanks. I'm determined to stick with this. Reading and looking at some tutorials, set up, HAL etc. Won't bother anyone with the error message now as I clearly have more basics to learn first.
Thanks again.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #248555 by Todd Zuercher
PS: The configuration files are saved in your home folder under /linuxcnc/configs/config_name/

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum