Hello Guest it is March 29, 2024, 03:32:04 AM

Author Topic: G Code to set Mach into reset at end of program/cycle  (Read 2365 times)

0 Members and 1 Guest are viewing this topic.

G Code to set Mach into reset at end of program/cycle
« on: October 15, 2010, 10:57:02 AM »
Hi

I am after a G code that I can put at the end of a program to set Mach into the reset mode.
The reasoning behind the request is when in reset my drive boards power down and will keep the motors cool while sat doing nothing
I can then press reset when I run the next program to bring the boards back on line ready to run

I have also posted this request under the other G code page??

Thanks in anticipation

Ex Apprentice

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G Code to set Mach into reset at end of program/cycle
« Reply #1 on: October 15, 2010, 06:34:01 PM »
The is no Gcode to do that BUT you could use a macro to do it. Just rmember when you go into reset you loose any reference to position that you had before the reset .

Just a thought (;-) TP
Re: G Code to set Mach into reset at end of program/cycle
« Reply #2 on: October 15, 2010, 06:59:12 PM »
Hi BR549

Thanks for the reply, I had a reply from tweakie on this question but on another board:

Under 'Config / General Config' check the box 'E-Stop the system' on 'Pgm End or M30...'
Then make sure your programs all end with M30 (most do anyway).

Tweakie.

It works a treat but I do take on board your comment regarding loosing any references,
maybe when I use this function I should do a ref all at the start as well