The Emergent Properties of Meat
Blog
About me
Bigger projects: emc2 & AXIS
Friends' pages:
Alex
Bill
Chris
Jon
Michael


Tag cloud
Photostream

« Tcl as a g-code preprocessor | Newest entries | PyVCP: A Virtual Control Panel that integrates with AXIS »

Tags:
cnc emc2
jdi.py is an example of controlling emc with a simple Python program that sends NML messages. It will turn off estop, turn the machine on, enter "AUTO" mode, open the named file, and then run it.

While the program is running, it prints the line number and machine position about once a second.

When it finishes, it turns on estop and exits.

By using it as your DISPLAY=, you can make emc run one .ngc file and then exit:

emc configs/..../your.ini /full/path/to/your/gcode.ngc

Files currently attached to this page:

jdi.py2.0kB


(originally posted on the AXIS blog)

Entry first conceived on 29 December 2006, 19:15 UTC, last modified on 31 March 2009, 14:18 UTC



Powered by the Emergent Properties of Meat. Copyright © 2004-2010 Jeff Epler
[æ]