Hello Guest it is March 28, 2024, 10:33:29 AM

Author Topic: What does "Allow Wave Files" do?  (Read 8859 times)

0 Members and 1 Guest are viewing this topic.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: What does "Allow Wave Files" do?
« Reply #10 on: July 03, 2010, 07:32:42 AM »
Thanks Dave, I looked all over and couldn't find it.

Al. Just name your macros something like M345.m1s, and put them in the macro folder in the correct proflie (C:\Mach3\yourprofile\macros\) and you can call M345 in your g-code.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: What does "Allow Wave Files" do?
« Reply #11 on: July 03, 2010, 12:40:07 PM »
Actually IF you really wanted to do it (;-)

M98 (Namedfile)



AND make "SUB"   call the Macro you want.

************************
(sub)
NamedFile.txt
M777
M99

**********************
'M777
Speak" WELL, now you have done it"
end

Offline alenz

*
  •  137 137
    • View Profile
Re: What does "Allow Wave Files" do?
« Reply #12 on: July 04, 2010, 05:30:38 AM »
Ger21, thanks for the response. I was hoping to use something more descriptive than integers, but I see (RTFM) that it isn’t allowed  :).

BR529, I never would have thought of using a sub, but that does indeed do what I asked for.  Thank you. In fact I will probably use it for some macros that I’m sure I won’t remember six months from now, (CRS comes with age >:(). I agree tho (as I think you implied), it’s not a practicable substitute for a simple catalog.

BUT in the course of testing I ran into an apparent anomaly.

I found that a sub called from a separate file doesn’t respond (for me) the same as one called from within the same file. If the sub is in a separate file then the flow returns TWO lines after the M98 calling line. That is, it skips over the line following the M98. The fix is to stuff a comment or other filler after the M98 but that shouldn’t be required.

This is my test code:

(TestSub.tap)
G00 X0 Y0 Z0 F20
M98 (SpeakHello.txt)
G01 X.25 Y0 (Skips this line)
G01 X.25 Y.25
M98 P10
G01 X0 Y.25 (Reads this line)
G01 X0 Y0
M30

O10
M777
M99
%

(SpeakHello.txt)
M777
M99

(Macro M777)
Speak "Hello"
End

Any ideas? What am I overlooking? Can anyone else duplicate it?

Thanks, Al Lenz

P.S. I’m using .042.027
al
« Last Edit: July 04, 2010, 05:34:56 AM by alenz »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: What does "Allow Wave Files" do?
« Reply #13 on: July 04, 2010, 09:29:00 AM »
There was an udate version that cured the skipped line on sub return

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: What does "Allow Wave Files" do?
« Reply #14 on: July 04, 2010, 09:51:06 AM »
I think I read that version 4 will allow named macros? Can anyone confirm this?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: What does "Allow Wave Files" do?
« Reply #15 on: July 04, 2010, 10:00:18 AM »
HIYA AL, Just retested here V.040 and it works fine.   Gerry As I understand it the named macros is for VB in Ver4 not Gcode

****Gcode File:

(TestSub.tap)
F20
G00 X0 Y0 Z0 F20
M98 (SpeakHello.txt)
G01 X5.000 Y5.000 (DOES NOT Skip this line)
G01 X0.000 Y0.000
M98 P10
G01 X3.000 Y3.000 (Reads this line)
G01 X0 Y0
M30

O10
M777
M99
%


********Named Sub goes into sub directory:

(Testspeak.txt)
M777
M99
%


********Macro goes into macro\profile directory:

'Macro M777
Speak "Now you have done it"
end
Re: What does "Allow Wave Files" do?
« Reply #16 on: July 04, 2010, 10:31:31 AM »
Hi,
Named macros are supported on v3 as of 3.43.6 - I'm making a lot of use of them for the new screen set.
A significant number of new APIs were added to 3.43.6 many of which utilize or support the use of named scripts.

I'll start another thread with a summary of the new APIs that are available as this is probably of general interest and I suspect that few have yet to dive into the new abilities in mach.

Dave
I think I read that version 4 will allow named macros? Can anyone confirm this?
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: What does "Allow Wave Files" do?
« Reply #17 on: July 04, 2010, 10:58:29 AM »
DAVE is that just for VB or does that include Gcode calls???

AND I will be the first to ask WHAT IS an API???
Re: What does "Allow Wave Files" do?
« Reply #18 on: July 04, 2010, 11:04:14 AM »
I put the info about named scripts in the VB board section.
http://www.machsupport.com/forum/index.php/topic,15272.0.html

Dave
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Re: What does "Allow Wave Files" do?
« Reply #19 on: July 04, 2010, 11:06:22 AM »
Terry,
These are all VB things.
API = "Application Programming Interface" - sorry, after 40 years of messing with computers, I forget that the jargon is not really common English.

Essentially, I removed any line of script I had that was "Code M*********" and replaced it with "RunScript filename" - much nicer.


Dave

DAVE is that just for VB or does that include Gcode calls???

AND I will be the first to ask WHAT IS an API???
« Last Edit: July 04, 2010, 11:09:56 AM by DaveCVI »
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com