Hello Guest it is March 28, 2024, 07:37:44 PM

Author Topic: another sub-routine problem  (Read 2884 times)

0 Members and 1 Guest are viewing this topic.

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
another sub-routine problem
« on: July 21, 2007, 07:57:45 AM »
I am running up a g-code program, which involves cutting a shape out of steel, and then machine various rebates in it. The rebates are mostly all the same.

The g-code for the shape is in a subroutine which I call with M98 - and it closes on M99 and returns - the program carries on.
The second rountine is called with the M98 - but when it show up in the g-code box on Mach3 mill, the M99 return code is missing and so the program stops when it gets to there.

M99 is present on all the subroutines in the subroutines folder - but when this one is loaded, it disappears.

Can anybody help, please - I am at a loss to understand this.
Not me driving the engine - I'm better looking.

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: another sub-routine problem
« Reply #1 on: July 21, 2007, 08:18:50 AM »
Hi, Jimpinder

Check your second M99 has a Line feed or % sighn after it.

M99
%

Hope this is It, Chip

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: another sub-routine problem
« Reply #2 on: July 21, 2007, 10:34:33 AM »
I put a % sign after it and it worked a treat - thanks a lot

Jim
Not me driving the engine - I'm better looking.