Hello Guest it is September 28, 2021, 06:27:51 AM

Author Topic: Mach4 stops responding  (Read 524 times)

0 Members and 1 Guest are viewing this topic.

Offline Laz

*
  •  12 12
    • View Profile
Mach4 stops responding
« on: May 01, 2020, 04:42:48 PM »
HI

Finally got most issues solved by installing latest mach4 version and latest ess build
All seems to work fine but when i run my g code and gets to the end or press stop Mach4 freezes , all buttons are grayed out.
Can't jog , i can turn the spindle on and off but nothing else,
Tried disable and enable again but nothing. Tried reset button nothing. Can't restart the program eater.
The only thing i can do is quit mach and start it again
Can anybody point me in the right direction to sort this out

Thanks  Laz

Ps getting Ess solved all my homing issues thanks guys. 
Re: Mach4 stops responding
« Reply #1 on: May 01, 2020, 09:52:02 PM »
HI LAz,
Are you in Demo mode???
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Laz

*
  •  12 12
    • View Profile
Re: Mach4 stops responding
« Reply #2 on: May 02, 2020, 12:25:16 PM »
Unfortunately it's not that simple
It's a fully licensed version
Re: Mach4 stops responding
« Reply #3 on: May 02, 2020, 05:21:17 PM »
Hi,
it sounds like the Gcode interpreter is gettig hung up.

Does it happen on every Gcode program?

May I suggest running a part program that you know triggers the fault but edit the program such that the last
two lines are:
m30
%

Note that m30 is the last instruction but it must be followed but a LF and/or CR, and it is common practice
to put  a '%' to ensure the m30 is fooled by a LF at a minimum.

Craig
My wife left with my best friend...
     and I miss him!

Offline Laz

*
  •  12 12
    • View Profile
Re: Mach4 stops responding
« Reply #4 on: May 02, 2020, 05:51:12 PM »
This is the last few line of my G code

N700G1X19.000Y516.702Z-0.500
N710G1X19.000Y536.702Z-0.500
N720G1X991.000Y536.702Z-0.500
N730G1X991.000Y556.702Z-0.500
N740G1X19.000Y556.702Z-0.500
N750G00X19.000Y556.702Z5.000
N760G00X15.000Y15.000Z5.000
N770G1X15.000Y15.000Z-0.500F900.0
N780G1X995.000Y15.000Z-0.500F2400.0
N790G1X995.000Y569.000Z-0.500
N800G1X15.000Y569.000Z-0.500
N810G1X15.000Y15.000Z-0.500
N820G00X15.000Y15.000Z5.000
N830G00Z20.000
N840G00X0.000Y0.000
N850M05
N860M30
%

Created by Aspire with the Mach 2/3 ATC  post processor
I will try the Fanuc post processor since i hear it is compatible with Mach 4 ( Is it true?)
and will try Fusion360 as well

The G code looks ok to me  is it?

Thanks
Re: Mach4 stops responding
« Reply #5 on: May 02, 2020, 06:14:23 PM »
Hi,
try making the last M30 into lowercase m30 and try again.

Craig
My wife left with my best friend...
     and I miss him!

Offline Laz

*
  •  12 12
    • View Profile
Re: Mach4 stops responding
« Reply #6 on: May 02, 2020, 08:00:32 PM »
Thanks Craig.

I tried a different G Code file and used the Fanuc post processor . It ran perfect no hangups
You were right the G code must have hung up .
But i noticed something else the m6 tool change script has a message box to tell you to change the tool and that message box sometimes appears under the main window so you can't see it and it makes it appear that mach is not responding
Cant click the ok button if you cant see it . If i minimize the main window it becomes visible , click ok and all is fine again.
Is there a way to make sure it is always on top
Re: Mach4 stops responding
« Reply #7 on: May 02, 2020, 08:30:12 PM »
Hi,
couple of points.

First:Mach4's Gcode interpreter converts all Gcode alphanumerics to lowercase, strips out leading zeros and strips out whitespace.

For example:
G0 X0.09 Y  95.6 Z 0.004 F150    becomes:
g0x.09y95.6z.004f150

and:
M 30    becomes:
m30

In most cases the Gcode you write or is produced by your post will be correctlty interpreted, that is to say leading
zeros, whitespace and capitals don't affect the execution of the code.....but every once and a while they do. Faults like
that are devilishly hard to pick and diagnose. For this reason I would recommend you write all Gcode in lowercase
and without leading zeros. I often leave whitspace in to make Gcode more human readable, but otherwise try to present
Gcode to the inerpreter EXACTLY as the interpreter expects and thereby circumvent any translation faults.

Second: MessageBox is a wxWidgets function and is used typically to display results on your PC. It is not as such
part of Mach4 at all, but rather a whole suite of functionality imported to it. In your situation you have two choices:
1) Go to your m6() macro and remove the wxMessageBox call....or
2) Research the properties of wxMessageBox (wxWidgets is open source) and apply a 'pin to the top' property to it.

The later option is probably best but wxWidgets is for Geeks, written by Geeks and in pure Geekese. Not an easy proposition
for CNCers!

Craig

My wife left with my best friend...
     and I miss him!