How to Edit program from cnc milling program

More
27 Jul 2022 23:44 #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
28 Jul 2022 14:13 #248539 by Todd Zuercher
Replied by Todd Zuercher on topic How to Edit program from cnc milling program
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
28 Jul 2022 15:00 #248546 by Routerworks
Replied by Routerworks on topic How to Edit program from cnc milling program
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
28 Jul 2022 15:32 #248551 by Todd Zuercher
Replied by Todd Zuercher on topic How to Edit program from cnc milling program
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
28 Jul 2022 15:36 #248554 by Routerworks
Replied by Routerworks on topic How to Edit program from cnc milling program
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
28 Jul 2022 15:36 #248555 by Todd Zuercher
Replied by Todd Zuercher on topic How to Edit program from cnc milling program
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.

More
28 Jul 2022 15:41 #248557 by Routerworks
Replied by Routerworks on topic How to Edit program from cnc milling program
I see that. I started by opening up an "axis" configuration then used the wizzard for a couple of set ups. I then erased them all and hope to start fresh. I'm not sure what exactly the file tree is that shows up when you click on Linuxcnc in the drop down. Are they all different configuration that have previously been defined. how do they differ from what you get when you use the wizard?

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

More
28 Jul 2022 15:56 #248558 by Todd Zuercher
Replied by Todd Zuercher on topic How to Edit program from cnc milling program
They are example sample configs. Most are simulations that would not run real hardware. But there are a few samples that are set up for real hardware, most real hardware example configs may not open without that hardware installed on your system. They are included so the configuration files can be looked at to see how setting up a particular hardware might be done. All of the sample configurations in the config picker tree are saved elsewhere in the linuxcnc install, but they are copied over to your /linuxcnc/configs/ directory when you try to open them with he config picker. After you open (or try to open) a sample config then you can view/modify/copy their files in your /linuxcnc/configs/ dir. (Don't worry about wrecking the sample files as the originals are backed up elsewhere and will be reinstalled if you remove the config dir.)

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

More
28 Jul 2022 16:11 #248559 by Todd Zuercher
Replied by Todd Zuercher on topic How to Edit program from cnc milling program
For example there are a ton of different GUI example simulations, Some are different user interfaces that you can load and see what each user interface looks like and how they work. There are also a number of examples of how individual user interfaces might be modified by adding "virtual control panels" or VCPs. and different types of VCPs and examples to see how to program them. There are sample configs for setting up ClassicLadder (a software PLC included with Linuxcnc) to demonstrate how to integrate it into your config.
The following user(s) said Thank You: tommylight

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

More
28 Jul 2022 18:14 #248567 by Routerworks
Replied by Routerworks on topic How to Edit program from cnc milling program
Excellent road map for anyone migrating from windows based programs. It gives you a concept of where things are and what to expect.
Not sure how you convert one of the sample files to a working one.

Thanks again

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

Time to create page: 0.077 seconds
Powered by Kunena Forum