Shutdown EMC2 after GCode completion?

More
01 Sep 2010 03:15 #3932 by ItsDrone
I am looking for a possible method for EMC to be 'set' to auto close after completion of a ngc file.

The reason for this is so I can have that computer completely shutdown (and auto shutdown the CNC controllers) after a long strenuous cut process.

I have been looking through the source (EMC2 v2.5.0~pre) to see if I could find a method to trigger this via an entry in the hal*.ini file. That way it will not always shutdown after a cut unless I chose the custom setup. (clone the ini file and have it load one or the other depending on if I'm going to be running an all night cut or a short cut)

Is this something that anyone else has thought about or already implemented?

Dan

Please Log in or Create an account to join the conversation.

More
01 Sep 2010 11:14 #3939 by andypugh
ItsDrone wrote:

I am looking for a possible method for EMC to be 'set' to auto close after completion of a ngc file.


I think you could probably do it with a custom M code.
Just call a shell script that shuts everything down..

linuxcnc.org/docs/html/gcode_main.html#sec:M100-to-M199:

Please Log in or Create an account to join the conversation.

More
01 Sep 2010 21:43 #3951 by ItsDrone
Shoot!

I didn't even know there was custom commands that would allow sh to be run!

This wasn't what I was thinking of but it sure will do the job!!

And even do the other half of my issue!

Thanks!

Dan

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum