Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Maniac on September 29, 2009, 08:34:09 PM

Title: for using 'CustomMacro1~10'
Post by: Maniac on September 29, 2009, 08:34:09 PM
Hello everyone!

Please teach the method of using'CustomMacro1~10'.

What kind of number should be written on the 'CustomMacro1'BOX of Dialog on config shuttle.

(http://homepage3.nifty.com/rockhill/bbs11img/941.jpg)
Title: Re: for using 'CustomMacro1~10'
Post by: HimyKabibble on September 29, 2009, 09:49:29 PM
You write a VB macro, as a custom M-code.   You do this by creating a file Mnnn.m1s in the Mach3\macros\Mach3Mill directory. nnn is the M-code number.  So, if you create M123.m1s, then you can put an "M123" in your G-code, and that macro will execute.  To use that same macro as a Custom Macro in the ShuttlePro, just put the number, 123 in this case, in the configuration dialog.

Regards,
Ray L.
Title: Re: for using 'CustomMacro1~10'
Post by: Maniac on September 30, 2009, 02:32:42 AM
Thank you for a prompt explanation.

Was it M code number?
I will try it.
Title: Re: for using 'CustomMacro1~10'
Post by: Maniac on September 30, 2009, 03:36:18 AM
Hi !  Ray L.

It went well. Thank you.