Hello Guest it is April 26, 2024, 05:39:19 AM

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

0 Members and 1 Guest are viewing this topic.

Offline JJ

*
  •  16 16
    • View Profile
M99, M98 problems...
« on: May 11, 2007, 02:58:23 PM »
Hello,

After searching every post with "M99" in it, I still can't find an answer to my problem.

I'm having trouble calling a .tap file with the M99 command.

The following is in a .tap file called Main.tap located in c:\mach3\gcode:

G28.1 Z0 Y0 X0
M99 (Sub.tap) L1
M30

The following is in a .tap file called Sub.tap located in c:\mach3\gcode:

G0 G49 G40 G17 G50 G90
G82 X0 Y0 Z-.01 P0 R-.001 F150
X1.53 Y3.1 Z-.42
M99
%



When I try and load Main.tap, it doesn't load and the GCode display doesn't change.

Please help!

Thanks,

JJ
« Last Edit: May 11, 2007, 03:00:13 PM by JJ »

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: M99, M98 problems...
« Reply #1 on: May 11, 2007, 05:01:37 PM »
To call a sub you use M98

e.g. M98 P1001

M98 (sub.tap)

Graham.
Without engineers the world stops

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: M99, M98 problems...
« Reply #2 on: May 11, 2007, 05:04:32 PM »
Have a look at this post, its important to use wordpad to create the subs.

http://www.artsoftcontrols.com/forum/index.php?topic=2540.0

Graham.
Without engineers the world stops

Offline JJ

*
  •  16 16
    • View Profile
Re: M99, M98 problems...
« Reply #3 on: May 12, 2007, 12:24:08 PM »
Thanks Graham,

The M99 was a typo in my post... I was using M98 to initiate the canned scenario.

I'll try using wordpad when I get back to work on Monday.  I'll post the results.

Thanks again,

JJ

Offline JJ

*
  •  16 16
    • View Profile
Re: M99, M98 problems...
« Reply #4 on: May 15, 2007, 03:04:25 PM »
OK...

I tried saving the sub.tap file and the main.tap file from Wordpad using the "Text Document - MS-DOS Format" option in the save-as function as per the link above.

I still see no G-Code in the G-Code display of the program when I do File - Load G-Code - Main.tap from the C:\mach3\gcode folder.

I did find an additional problem that could be an indicator to the cause of this.  When I try and edit a newly taught file via a Button defined as "Edit File" in the OEM drop down list, it does not launch my text editor.  I did a search through the forums and found people with similar issues having the wrong setting in the General Config options.  I verified that my path in that setting is c:\program files\windows nt\wordpad which I defined using the "Browse" button.  It still doesn't work.  I also tried defining the path to notepad from here and it didn't work either.  Do I have a system variables issue in Windows?

Any help is greatly appreciated.

Thanks,

JJ
« Last Edit: May 15, 2007, 03:06:03 PM by JJ »

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: M99, M98 problems...
« Reply #5 on: May 15, 2007, 04:55:26 PM »
Hi JJ,

email me your files and I will try to load them on my setup.

Graham.
Without engineers the world stops

Offline JJ

*
  •  16 16
    • View Profile
Re: M99, M98 problems...
« Reply #6 on: May 15, 2007, 05:48:18 PM »
Files sent... thanks again.

JJ

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M99, M98 problems...
« Reply #7 on: May 15, 2007, 06:43:10 PM »
Hi, JJ

I think your Sub files need to be in " C:\Mach3\Subroutines\ " Folder.

The following is in a .tap file called Main.tap located in c:\mach3\gcode\

G28.1 Z0 Y0 X0
M98 (Sub.tap) L1
M30

The following is in a .tap file called Sub.tap located in c:\mach3\Subroutines\

G0 G49 G40 G17 G50 G90
G82 X0 Y0 Z-.01 P0 R-.001 F150
X1.53 Y3.1 Z-.42
M99
%

Works Hear !

Hope this Helps, Chip





 
« Last Edit: May 15, 2007, 09:16:19 PM by afn09556 »

Offline JJ

*
  •  16 16
    • View Profile
Re: M99, M98 problems...
« Reply #8 on: May 16, 2007, 01:45:20 PM »
Thanks to all that have helped so far... I'm still not out of the woods though.

I was able to get the file to load by placing the sub.tap file in c:\mach3\subroutines.  However this creates a new problem.

How can I teach and endteach a file in the subroutines folder?  I've tried the following to no avail.

OpenTeachFile "c:\mach3\subroutines\sub.tap"

and

OpenTeachFile ("c:\mach3\subroutines\sub.tap")

and

OpenTeachFile (c:\mach3\subroutines\sub.tap)


After failing at this, I figured I'd teach it to the default c:\mach3\gcode folder using OpenTeachFile "sub.tap" and try Graham's email suggestion to M98 (c:\mach3\gcode\sub.tap) L1 but of course that fails to load the file giving me the same indications as above.

I guess that brings me back to how I can teach a file to the subroutines folder.

Thanks for all your help so far guys... I am at my wits end here. :)

JJ

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M99, M98 problems...
« Reply #9 on: May 16, 2007, 09:29:56 PM »
Hi, JJ

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.

On the Edit Problem, Try this "C:\WINDOWS\notepad.exe", Works Hear for Me.

Hope this Helps, Chip