Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Richard Evans on August 06, 2012, 02:46:44 PM

Title: Last line of code (M30) does not load
Post by: Richard Evans on August 06, 2012, 02:46:44 PM

I'm writing a number of short simple routines, typically about 60-70 lines. I'm writing by hand in Notepad. They all end M5, M30 ( on consecutive lines). When I load them into Mach (turn), the M30 is always missing. However other routines I have written load normally, the only difference I can see is that the new routines have quite a few comments in brackets to remind me what I'm doing.
This happens on the work machine (win2k) and on the laptop (win7) I use for reference in the house.

Anybody got any ideas?
Thanks
Richard
Title: Re: Last line of code (M30) does not load
Post by: Hood on August 06, 2012, 03:00:25 PM

The reason you are not seeing the M30 is you have not ended the block, in other words you have not hit the return key after you typed the M30.
It is good practice to have a % on the line after the M30 as that assures you have ended the lind the M30 is on.
Hood
Title: Re: Last line of code (M30) does not load
Post by: Richard Evans on August 06, 2012, 03:33:22 PM

Thanks (again) Hood!
I knew it would be some detail like that, been driving me crazy!
Cheers
Richard
Title: Re: Last line of code (M30) does not load
Post by: DICKEYBIRD on December 06, 2015, 01:04:59 PM

Thanks (again) Hood!
I knew it would be some detail like that, been driving me crazy!
Cheers
Richard
Me too!  I can't believe I fought this issue on & off for 2 days before I finally did a search & found this old thread.  Hood to the rescue!