Hello Guest it is July 18, 2019, 04:09:11 PM

Author Topic: M30 Doesn't Load  (Read 4600 times)

0 Members and 1 Guest are viewing this topic.

M30 Doesn't Load
« 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

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: M30 Doesn't Load
« Reply #1 on: December 19, 2007, 11:25:48 AM »
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

Offline jimpinder

*
  •  1,233 1,233
  • Wakefield, West Yorks, UK
    • View Profile
Re: M30 Doesn't Load
« Reply #2 on: December 19, 2007, 11:28:48 AM »
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.
Not me driving the engine - I'm better looking.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: M30 Doesn't Load
« Reply #3 on: December 19, 2007, 11:30:34 AM »
see above ;)

Hood
Re: M30 Doesn't Load
« Reply #4 on: December 19, 2007, 11:33:35 AM »
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
« Last Edit: December 19, 2007, 11:39:36 AM by Overloaded »

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: M30 Doesn't Load
« Reply #5 on: December 19, 2007, 11:59:45 AM »
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
Re: M30 Doesn't Load
« Reply #6 on: December 19, 2007, 12:10:37 PM »
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".
« Last Edit: December 19, 2007, 12:30:33 PM by Overloaded »

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: M30 Doesn't Load
« Reply #7 on: December 19, 2007, 12:57:12 PM »
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
Re: M30 Doesn't Load
« Reply #8 on: December 19, 2007, 04:00:38 PM »
GOTCHA.
Sort of like entering values into a DRO, if you don't click enter... you loose it.
Thanks again Hood, you're invaluable.

Offline jimpinder

*
  •  1,233 1,233
  • Wakefield, West Yorks, UK
    • View Profile
Re: M30 Doesn't Load
« Reply #9 on: December 20, 2007, 04:24:18 AM »
Perhaps  ;D on the last line would do !!! :-[
Not me driving the engine - I'm better looking.