Alan,

In addition to what Stephen said, see if emcrsh does what you want. Take any
one of the sim configurations (tkemc is a good one) and add:
loadusr emcrsh
to one of the hal files (servo_sim.hal for example)

Run EMC, then open a terminal session and enter:
telnet localhost 5007

After it connects, type help.

To establish a session with EMC, enter:
Hello EMC client 1.0

To get rid of the command echo, enter:
Set echo off

To command the machine, enable the session with:
Set enable EMCTOO

Alternatively, you can run from another computer over the network by
entering:
telnet <DNS or IP address> 5007

Your program just needs to send and process the same commands as you type
into the telnet session. So long as you write your application from the
interface specification, i.e. specifically by not borrowing any of the code
from the server side, there should not be any GPL implications. Well on this
specific interface anyway.

You can also find the interface definition here in the source code:
http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/emcrsh.cc?rev=1.10;content
-type=text%2Fplain

Scroll down one page. 

I need to put this into a wiki page.

BTW, I just checked in an update enhancing options that can be specified on
the command line. To use these, you will need to build from source until the
next release.

HTH,
Eric


I want to connect directly to emc from some software I am developing. So far
my software generates G codes but I want to cut out that stage. This is out
of interest and in the spirit of investigation. By the way I would like to
know the easier ways again out of curiosity.
Thanks
Alan



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to