Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Bertho on February 19, 2023, 11:31:50 AM

Title: Keyboard short cuts & editing current Gcode
Post by: Bertho on February 19, 2023, 11:31:50 AM
In Mach3 it was very convenient: Click "Edit" make the changes, save. and run again.
Mach4 is a pain: close the file, switch to an editor, find the file, edit, save, switch to Mach4, click on file open, find the file, and finally run again.

I realize that custom buttons can be added but I am surprised that one is missing.
I have searched high and low for keyboard shortcuts but no luck.
There are so many great features in Mach4 that I might be overlooking the obvious.
Bertho
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 03:10:10 PM
Hi,
I'm not quite sure what you mean. If I want to edit the Gcode which is already loaded into Mach4 I use the <EditGcode> button.
The Gcode file is opened in the editor of your choice, as programmed in Machs General settings, do the required edit, then close the editor
and the edited Gcode is now in Machs Gcode window per normal.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: Bertho on February 19, 2023, 03:17:56 PM
Thank you for replying.
Yes, That works great in Mach3.
It is horrible in Mach4 without that option (at least I have knot found it).
Bertho
Title: Re: Keyboard short cuts & editing current Gcode
Post by: Steve Stallings on February 19, 2023, 03:37:30 PM
Did you look at the screen shot that Craig provided?

It shows the desired button in the standard screen sets. If you have a customized screen set it may not be there, but it works fine in the standard ones.
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 03:44:14 PM
Hi,
Steve is right, this is a standard wx4.set from build 4839, but that button has been in every standard screen set for the last eight years
I've been using Mach4.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 03:51:02 PM
Hi,
So what screen set are you using? Look at the very lowest right-hand conrner and the current screen set is listed.

The only thing I can think of is that you are using wxMach....which is a very stripped down screen set used for testing, and only ever in the early days at that.
If that is the case may I ask if you are using a XHC motion controller?. If I'm not mistaken XHC motion controllers do not support Machs standard screens (with built-in
GUI editor) and must perforce use wxMach.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 03:57:54 PM
Hi,
I just tried loading wxMach.set....and it does not list the screen set in use at the lower right-hand corner as do wx4.set and others.

Can you post a screen shot of your screen......I suspect it will be wxMach, but a screen shot will confirm it.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: Bertho on February 19, 2023, 05:05:16 PM
Thanks for all the replies.
I am just switching from Mach3 to four and the first implementation is a laser cutter.  The Mach4 & ESS installation came with four screens.
I saw an error message on the plasma screen so I switched to the supplied router screen to get it up and running and I planned to later find or create a laser screen.
The installation screen is wxRouter.set so that explains my problem. 
Why would Mach4 installation include a limited function screen?
I previously received a copy of laser screen but it will not load, apparently it is corrupted or missing some support files.

What screen set should I use?
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 07:01:57 PM
Hi,
I've just tried wxRouter.set and wxPlasma.set and both have the <EditGcode> button.

Typically wx4.set and wx6.set are the 'all inclusive' screen sets. You would take one of those as a basis and delete those things that you don't need for your machine.
Other screensets like wxRouter.set tend to be a subset of the 'full house' but with perhaps one or two features added specifically for that type of machine.

Take a copy of whatever screenset most closely matches your machine and give it a unique name. Then you edit/add whatever you detremine you want.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: Bertho on February 19, 2023, 08:34:23 PM
I am sorry for all the confusion on my part.  I am used to Mach3 with the edit button always there.
On Mach4 I was in the jog mode and did not remember to switch to the file option to edit.
Thanks again for great support.
Bertho
Title: Re: Keyboard short cuts & editing current Gcode
Post by: joeaverage on February 19, 2023, 08:46:11 PM
Hi,
yes that Window has tabs, if you are not on FileOps tab then you wont see <GcodeEdit>

One of the things I disliked about Mach3 was that so much was squeezed into every screen, it was cluttered an confusing. Mach4 is still pretty jam-packed
but you can delete or supress anything that you don't want and de-clutter the screen considerably.

You probably have not tried it yet but you can make your own tab, like those along the top, like ProgramRun, MachineDiagnostics, etc. When you do you will find you can have
entirely your own screen, just as a tab within a bigger screen set. So when you do yet another of your bread & butter water pump jobs or whatever you just click on the tab
and all the relevant data, WCS, tool data and everything you need for that job is all on one tab....great.

Craig
Title: Re: Keyboard short cuts & editing current Gcode
Post by: Bertho on February 19, 2023, 09:09:13 PM
Thanks!
Once I get things working properly I will be modifying the screen.
I am surprised that there are so few screens available.
The Newfangled site has a manual lathe, a manual mill,  and a CNC coil winder screen.
Presumably I am looking in the wrong area.
Bertho