Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Yianni - VJ - Glaux on April 04, 2011, 12:35:18 AM
-
What about these do options on general config?
do they do anything fun?
-
If fun consist of a few bottles of cheap wine, loud music, and good times....then no.
-
http://www.machsupport.com/docs/Mach3Turn_1.84.pdf
Chapter 5.6.7 "configure other logic items"
-
If fun consist of a few bottles of cheap wine, loud music, and good times....then no.
So by allow waves it doesn't mean that surf 's up ?
What Am I gonna do now with all the surf gear I bought?
-
Allow wave files: Allows a macro to play a wave file for audible warning
Allow speech: Allows the speech synthesiser for initialisation and Help system messages
Yeah i got that far before I post, and I did search the forum for examples etc but no luck.
One of the machines I run does not have a relay to turn spindle off, It would be nice to have a notification sound to alert that milling is over.
How would one go to write a macro to play a Wav file ?
-
Create a text file with the following line (but change the path to the file you want)
PlayWave(“C:\WINDOWS\Media\Windows XP Startup.wav”)
Save it as M999.m1s in your macros\yourprofile\ folder
Call M999 to play the wave.
You can use any available M code that you want.
-
Gerry I followed your instructions to the letter but when I call the macro on MDI i get: scripter compile error...
Any idea what I m doing wrong?
-
Try this. I copied the text from the manual, but the quotes (") were not the correct characters.
PlayWave("C:\WINDOWS\Media\Windows XP Startup.wav")
-
Yeap, that did it,
Thank you very much Gerry ! !
-
Just a side note IF you create the files as a M1030 macro it will auto run the macro at the end of the Gcode file after the M30. That way you dont have to remember to add the macro call at the end of each file.
Just a thought, (;-) TP
-
Excellent advice !
Thank you !