Hello Guest it is April 26, 2024, 09:49:37 AM

Author Topic: M99, M98 problems...  (Read 14236 times)

0 Members and 1 Guest are viewing this topic.

Offline JJ

*
  •  16 16
    • View Profile
Re: M99, M98 problems...
« Reply #10 on: May 17, 2007, 01:21:44 PM »
Use the Teach feature, It Saves it to C:\Mach3\Gcode, You will have to Edit it anyway to add the M99, Use the File, "Save As" and Save it to the C:\Mach3\SubRoutines\, Folder.

Hi Chip,

Thank you for your reply.  Unfortunately this is the exact thing I'm trying to automate using VB.  Adding the M99 through VB is not a problem, but the mandate that subroutines be in the subroutine folder makes the teach function useless for subroutines as it only teaches to the gcode folder.  This wouldn't be a problem if m98 could call a file from the gcode folder, but that doesn't seem to be the case.  This screen is being made for internal customers and I would really like for them not to have to move a subroutine file every time they "teach" a new one.  Has nobody had the need to do this before?  I would think someone is using the teach function for subroutines as well as main routines, but I could definitely be wrong and probably am. :)

Is this the type of thing we ask Art to implement into his next version?

Thanks again for everyone's help...

JJ

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M99, M98 problems...
« Reply #11 on: May 18, 2007, 05:05:03 PM »
Hi, JJ

I think the Wizards are in VB and can be modified, Look under M<ach3, Addons folder then Teach.

Should be able to modify there ?

Hope this Helps, Chip
Re: M99, M98 problems...
« Reply #12 on: February 21, 2008, 07:32:15 PM »
Chip,
I've just been struggling with these same problems, so found this discussion very helpful. Thank you. The documentation doesn't say that subroutines have to go in a special folder. I'd totally forgotten there is such a folder. Also, it doesn't say whether the subroutine needs to end with M99. Frankly, it seems daft that you need an M99. End of file should have the same effect.
Regards
Chris

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M99, M98 problems...
« Reply #13 on: February 21, 2008, 10:30:11 PM »
Hi, Chris

The M98 & M99 work together M98 (Subfile 1.tap) L10 ,(Calls (Subfile 1.tap), The M99 returns it to M98 till the L10 repeats 10 times then M30 end's it and return to top of the code


G28.1 Z0 Y0 X0
M98 (Subfile 1.tap) L10 (Calls (Subfile.tap) 10 times
M30

The following is in a .tap file called Subfile 1.tap located in c:\mach3\Subroutines\ and is repeated 10 times

G0 G49 G40 G17 G50 G90
G82 X0 Y0 Z-.01 P0 R-.001 F150
X1.53 Y3.1 Z-.42
M99 (Without the M99 the file wouldn't repeat and Just end.)
%

Hope this Helps, Chip