Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Overloaded on December 19, 2007, 08:56:56 AM
-
Hi,
This code runs well, 2 tools on a tool plate.
But .... The M30 will not load .
I do not know why. Probably something simple.
Thanks
-
Either press the return key after the last line in your code or get into the habit of putting a % after the last bit as that will let you know you have advanced your code to the line after the last bit of code. As an example of what I am meaning here is your code.
g18 g20 g50 g80 g90 g95
g0 x.46 z0
f.002
g1 x.27
g0 x-.15
g1 z-.04
g0 z.1
g0 x.36 z0
g2 x.4 z-.035 k-.02
g1 x.44 z-.13
g0 x.9 z.5
g0 x-2.15 z-.25
g76 x -2.175 z-.595 q2 p.0208 h.01 i29 c.05 l45 b.002
g0 z.5
g0 x2.6 z1.2
M30
%
Hood
-
You are not on your own - I have also had programs on which M30 did not load. On other programs it seems to work fine. Anybody any ideas.
-
see above ;)
Hood
-
EXCELLENT !
Thanks Hood. Hey, check out my homemade rig in the Machines forum. Then you will see what I'm dealing with.
Jim, that's what threw me also. On several programs... it goes right in. This is the only time it didn't. I did put the M30 at the end of the last G0 line and it worked there. Like this: g0 x2.6 z1.2 M30
Regards
-
That still wouldnt work unless you had pressed the return key after the M30. It could be that you had placed the new M30 on the second last line and deleted it from the next line but in essence that line was still there but blank. Hope you understand what I am meaning LOL but you need to end the last line of code by pressing the return key to move to the next line or have something else in the last line, the usual is the % but equally you could put a ( or something else.
Hood
-
Hood, I understand what you mean.
But this is what I did:
The M30 would not load on it's own line, I clicked edit, highlighted the M30, hit space bar to delete it, typed M30 at end of last g0 line, clicked the red X to close, prompted to save, saved, back to mach screen and M30 is there. I never hit enter/return.
I'll try it a few times to be absolutely sure.
Hood, I did this several times.
As you say.. you must hit "enter/return" after the last line, but you can add to or change the info. in any existing line without having to hit "enter/return".
-
Yes thats correct because there is already a return made, just you dont see it because there is no info in the last line. That is why it is good practice to put something in that last line as you can be sure the return has been done. It might not seem relevant but if for eample your code above with the last line g0 x2.6 z1.2 M30 did not have a return after it Mach would not see that line at all and your last line as far as Mach was concerned would be G0Z.5
Hood
-
GOTCHA.
Sort of like entering values into a DRO, if you don't click enter... you loose it.
Thanks again Hood, you're invaluable.
-
Perhaps ;D on the last line would do !!! :-[
-
Jim, :) would indeed work, try it ;)
Hood