Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: tantan on August 16, 2010, 07:13:24 AM

Title: macro when starting mach or after reset
Post by: tantan on August 16, 2010, 07:13:24 AM
hi all.

i want to run a macro after mach has been started. how should that be done,

thanks for your answer.

antoine

the neterlands
Title: Re: macro when starting mach or after reset
Post by: BR549 on August 16, 2010, 10:32:05 AM
Reference the macro as a Mcode in the initializaton section in Gen Config.
Title: Re: macro when starting mach or after reset
Post by: tantan on August 16, 2010, 10:44:48 AM
hi,

thanks for your reply, but can you give me an example: my initialisation string now only has "G80" in it.  the name of the macro is test.m1s, should i make my initialisation string "G80 test.m1s"

thanks,
antoine
Title: Re: macro when starting mach or after reset
Post by: BR549 on August 16, 2010, 11:12:11 AM
You need to rename your Macro AS say M300 and place it in the macro directory. Then the string would read "G80 M300"
Title: Re: macro when starting mach or after reset
Post by: tantan on August 16, 2010, 12:15:23 PM
hi

Thanks, Works Perfect!!!!  :)


Antoine