Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Yianni - VJ - Glaux on February 26, 2011, 05:20:52 PM

Title: switch of the motors off after end of G-code
Post by: Yianni - VJ - Glaux on February 26, 2011, 05:20:52 PM
Hello everybody,

I Dont know if this is the correct area to post my question, moderators feel free to move the thread.

I basically would like to have the ability to go offline after M05, is there any way to do it with macros or brains?
Title: Re: switch of the motors off after end of G-code
Post by: Hood on February 26, 2011, 08:15:09 PM
What do you mean by offline? Are you meaning the offline button on the screen?
Hood
Title: Re: switch of the motors off after end of G-code
Post by: Yianni - VJ - Glaux on February 26, 2011, 09:11:33 PM
Hello Hood,

Yes, that's the idea.
I m running g-codes that take about 5 hours to complete, I would like to leave the machine run unattended during the night and turn off after finish.

Forgot to mention I m using a smooth stepper with G540.

Thanks
Title: Re: switch of the motors off after end of G-code
Post by: Hood on February 26, 2011, 09:37:35 PM
Well what you  would do is make a macro up and place it in your profiles macro folder. What you would have in the macro is
DoOemButton(178)

Name the macro something like m111.m1s and then at the end of your code(before m30) have m111 and it should toggle the offline button.
Hood
Title: Re: switch of the motors off after end of G-code
Post by: Yianni - VJ - Glaux on February 26, 2011, 10:07:56 PM
Ah good !
Thanks Hood, Ill get right on it :) !