Controlling EMC from command line or python?
- mechatronicsguy
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
08 Feb 2011 05:22 #7064
by mechatronicsguy
Controlling EMC from command line or python? was created by mechatronicsguy
Hi All,
I'm a new user to EMC, although I've used MACH3 a bit. Just got a 3040 CNC off eBay, and I've succesfully got it jogging around nicely.
What's the easiest way to send motion commands to EMC via command line or python? I've got some interactive applications in mind, (such as automated resistance checking) so I'm not just wanting to preload a .NC file.
Cheers,
Gavin
I'm a new user to EMC, although I've used MACH3 a bit. Just got a 3040 CNC off eBay, and I've succesfully got it jogging around nicely.
What's the easiest way to send motion commands to EMC via command line or python? I've got some interactive applications in mind, (such as automated resistance checking) so I'm not just wanting to preload a .NC file.
Cheers,
Gavin
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 4
09 Feb 2011 02:48 #7086
by Kirk_Wallace
Replied by Kirk_Wallace on topic Re:Controlling EMC from command line or python?
This might get you started in the right direction (or not):
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Emcrsh
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Halrmt
www.linuxcnc.org/docview/html/gui_halui.html
AXIS is in python. The source might shed some light:
git.linuxcnc.org/gitweb?p=emc2.git;a=tre...axis/scripts;hb=HEAD
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Emcrsh
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Halrmt
www.linuxcnc.org/docview/html/gui_halui.html
AXIS is in python. The source might shed some light:
git.linuxcnc.org/gitweb?p=emc2.git;a=tre...axis/scripts;hb=HEAD
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
Please Log in or Create an account to join the conversation.
- mechatronicsguy
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
09 Feb 2011 05:09 #7089
by mechatronicsguy
Replied by mechatronicsguy on topic Re:Controlling EMC from command line or python?
Thanks, Kirk.
Looks like EMCrsh is the way to go.
For anyone else who's looking at doing the same thing, this page has some demo python code in the comments,
tim.cexx.org/?page_id=704
Looks like EMCrsh is the way to go.
For anyone else who's looking at doing the same thing, this page has some demo python code in the comments,
tim.cexx.org/?page_id=704
Please Log in or Create an account to join the conversation.
Time to create page: 0.105 seconds