Hello Guest it is April 19, 2024, 01:53:16 PM

Author Topic: macro when starting mach or after reset  (Read 3413 times)

0 Members and 1 Guest are viewing this topic.

Offline tantan

*
  •  130 130
    • View Profile
macro when starting mach or after reset
« 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: macro when starting mach or after reset
« Reply #1 on: August 16, 2010, 10:32:05 AM »
Reference the macro as a Mcode in the initializaton section in Gen Config.

Offline tantan

*
  •  130 130
    • View Profile
Re: macro when starting mach or after reset
« Reply #2 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: macro when starting mach or after reset
« Reply #3 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"

Offline tantan

*
  •  130 130
    • View Profile
Re: macro when starting mach or after reset
« Reply #4 on: August 16, 2010, 12:15:23 PM »
hi

Thanks, Works Perfect!!!!  :)


Antoine