Hello Guest it is March 28, 2024, 10:11:33 PM

Author Topic: Last line of code (M30) does not load  (Read 2650 times)

0 Members and 1 Guest are viewing this topic.

Last line of code (M30) does not load
« 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Last line of code (M30) does not load
« Reply #1 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
Re: Last line of code (M30) does not load
« Reply #2 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
Re: Last line of code (M30) does not load
« Reply #3 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!
Milton from Tennessee ya'll.