NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum General General LinuxCNC Questions Shutdown EMC2 after GCode completion?

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Shutdown EMC2 after GCode completion?

Shutdown EMC2 after GCode completion? 31 Aug 2010 20:15 #3932

  • ItsDrone
  • ItsDrone's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

Re:Shutdown EMC2 after GCode completion? 01 Sep 2010 04:14 #3939

  • andypugh
  • andypugh's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 4139
  • Thank you received: 141
  • Karma: 130
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:
The administrator has disabled public write access.

Re:Shutdown EMC2 after GCode completion? 01 Sep 2010 14:43 #3951

  • ItsDrone
  • ItsDrone's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.887 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.