Hello Guest it is April 19, 2024, 09:16:46 PM

Author Topic: Mach4 software crash at same point in gcode  (Read 477 times)

0 Members and 1 Guest are viewing this topic.

Mach4 software crash at same point in gcode
« on: March 28, 2023, 06:38:40 PM »
I have a weird problem, where (repeatably) when i run a certain gcode file, the software just exits at the same point and there is no mach present..
Machine just halts but does not stop spindle etc
No errors or warnings

Ant ideas??
Re: Mach4 software crash at same point in gcode
« Reply #1 on: March 28, 2023, 09:56:14 PM »
Hi,
what motion controller?

Also look under Help/About and just check the license status. Its not impossible or unheard of for a PCs PCID to change with a Windows update or similar and then the
PC becomes unlicensed.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 software crash at same point in gcode
« Reply #2 on: March 29, 2023, 05:06:24 AM »
Hi Its an MB2 + ESS for the motion controller...
The licence is good, just checked.
Other thing i noticed just now, is I'm getting a message that says "failed to retrieve file times for c\mach4hobby\profiles....... Macros\M162.mcc'
The system failed to find the file specified"
This appeared from nowhere - i didn't modify anything.
It really frustrates me that Mach4 just cant be stable for a long time...... i use the machine sporadically, so it could be switched off for 2 months and the amount of times it has changed itself is just weird.. i have never had any other software that does this.
Re: Mach4 software crash at same point in gcode
« Reply #3 on: March 29, 2023, 02:28:47 PM »
Hi,

Quote
It really frustrates me that Mach4 just cant be stable for a long time...... i use the machine sporadically, so it could be switched off for 2 months and the amount of times it has changed itself is just weird.. i have never had any other software that does this.

I've been using Mach4 for eight years and my experience is exactly opposite to yours. At one stage  (about a year ago) I had a build 38nn (can't remember now which exact one)
and that had been in place and on my machine for three-four years. I then updated to 4612 about a year ago...an its still trucking along.
I don't turn my machine off unless I'm doing something that requires I isolate the incoming AC supply. It will literally be on for months at a time,
I actually have to turn it off every once in a while or the memory fragments too much.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 software crash at same point in gcode
« Reply #4 on: March 29, 2023, 04:09:31 PM »
i noticed tonight my post processor was mach3, so i changed it to mach4 and no issue since!  so the g code can cause the software to close in my case!
Re: Mach4 software crash at same point in gcode
« Reply #5 on: March 29, 2023, 04:49:28 PM »
Hi,
Mach4 adheres very strictly to the Gcode definition of Fanuc21i, being as close to an industry standard as there is.

A lot of the sloppy Gcode tricks that Mach3 used to accommodate will just not wash with Mach4. Look for any Mach3 shortcut G82 cycles,
they will stop Mach4.

For example this PCB drilling code would work with Mach3:

Code: [Select]
N00340 G82 X-33.4000 Y25.4000 Z-2.2000 F300   R2.0000  P0.100000
N00350 G82 X-35.7750 Y24.1250
N00360 G82 X-38.9500 Y32.9000
N00370 G82 X-40.4750 Y9.5250 
N00380 G82 X-42.1000 Y13.3000
N00390 G82 X-48.3000 Y2.6500 
N00400 G82 X-49.4500 Y18.5000
N00410 G82 X-51.8000 Y33.2500
N00420 G82 X-5.7500 Y10.5000
N00430 G82 X-57.7500 Y34.5500
N00440 G82 X-5.8250 Y17.2750
N00450 G82 X-59.5000 Y13.5000
N00460 G82 X-13.1500 Y33.5000
N00470 G82 X-17.2750 Y27.0250
N00480 G82 X-1.9750 Y32.9750
N00490 G82 X-19.7500 Y26.9500

Whereas this code works with Mach4 and is near identical and was derived from the Mach3 code, but adheres to the stricter definition of G82

Code: [Select]
N00340 G82 X-33.4000 Y25.4000 Z-2.2000 F300   R2.0000  P0.100000
 X-35.7750 Y24.1250
 X-38.9500 Y32.9000
 X-40.4750 Y9.5250 
 X-42.1000 Y13.3000
 X-48.3000 Y2.6500 
 X-49.4500 Y18.5000
 X-51.8000 Y33.2500
 X-5.7500 Y10.5000
 X-57.7500 Y34.5500
 X-5.8250 Y17.2750
 X-59.5000 Y13.5000
 X-13.1500 Y33.5000
 X-17.2750 Y27.0250
 X-1.9750 Y32.9750
 X-19.7500 Y26.9500

While it might appear that the line numbers are the difference, that is a red herring, note how the Mach3 code will accept an abbreviated G82 block like

 G82 X-51.8000 Y33.2500  the Mach4 compliant block is like this:

 X-51.8000 Y33.2500

So in Mach4 the G82 is modal and thus an X,Y coordinate carries on in the same mode and works, where the Mach3 code attempts to use a shortened G82 which is
contrary to the ANSI definition of G82 and such a shortened block is unacceptable in Mach4.

Craig

'I enjoy sex at 73.....I live at 71 so its not too far to walk.'