Re: [Emc-users] How does axis communicate with emc?

2008-10-05 Thread Stephen Wille Padnos
alan wrote:

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.
  

The NML libraries are relatively independent from the rest of EMC2.  You 
could just make a header/class interface/whatever the C# equivalent is 
for the NML library - more or less a c# implementation of 
emc/nml_intf/emc.{cc,hh}.  Where you may get into trouble is with the 
emc.hh file - that's where the specific NML messages are defined, and 
that's GPL - not LGPL.  Anything based on it would have to be GPL as 
well (hopefully not a problem :) ).

I suspect that the easier methods are based on using one or more of the 
existing programs that already have NML implementations:  emcsh or 
emcrsh.  And maybe HALUI or similar.  Then there's the python library, 
which can be pretty easily used for various functions (see jdi.py for a 
simple example).

You may also want to think about going straight to HAL, if you want to 
bypass the interpreter anyway.  (the trajectory planner is still quite 
useful though)

- Steve


-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How does axis communicate with emc?

2008-10-05 Thread Eric H. Johnson
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] How does axis communicate with emc?

2008-10-04 Thread alan
I am interested in understanding how Axis communicates with emc because
I want to try sending NML messages to emc from a c# application running
under mono (we all have strange interests of one sort or another!!). Can
someone suggest a starting point for me. I am new to linux but have been
a programmer for many years.

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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How does axis communicate with emc?

2008-10-04 Thread Eric H. Johnson
Alan,

Are you trying to directly send motion commands to EMC or just want to write
your own .NET based custom user interface? If the latter, there are much
easier ways than going through NML.

Regards,
Eric

I am interested in understanding how Axis communicates with emc because I
want to try sending NML messages to emc from a c# application running under
mono (we all have strange interests of one sort or another!!). Can someone
suggest a starting point for me. I am new to linux but have been a
programmer for many years.



-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users