1501
Mach4 General Discussion / Re: Mach4 stops responding
« 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
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