Sasa Vilic wrote:

>Hi, I am writing a filter for AXIS in Java, and I need option to
>communication with EMCMOT and option to get status of some pins on parallel
>port. So, I have a few questions:
>  
>
I don't know exactly what you're thinking, but it's probably not 
appropriate for a "filter" for AXIS to need to talk to EMCMOT.  AXIS is 
a machine control HMI (Human Machine Interface).  If you want to extend 
that, I wouldn't define your program as a filter.  To me, a filter is 
something that takes in something and outputs something else.  This 
concept is extended somewhat with AXIS, because you can run a program 
and load the G-code the program outputs, rather than only being able to 
load text files.

>Is there possible to access/communicate with EMCMOT in any other language
>except Python (I prefer Java, and if not Java then C++), so I can jog
>machine and get status from parallel port?
>  
>
It's hard to tell what you really need here.  EMCMOT is "under" the task 
controller.  The task controller is what the UI talks to, via NML.  The 
motion controller also has HAL pins, which are accessed by user code the 
same way as parallel port pins would be, by using hal_lib.  HAL is 
written in C, so you could use it with C or C++ pretty easily.  I think 
Python bindings were the last to be added :)

>Which APIs are available?
>  
>
To talk to the task controller, you use NML.  If you do a CVS checkout, 
the source is in src/libnml/.
To talk to other parts of HAL, you use hal_lib.  This is in src/hal/.

>For which language exist bindings?
>  
>
C, Python, and maybe tcl/Tk, depending on what you're trying to do.

>Is it possible to do UI for EMC in Java?
>  
>
One of the original UIs for EMC was done in Java.  It even ran on 
Windows.  It may still exist somewhere, I think I've seen it in the last 
couple of years.

>Is there any documentation about writing UI and communiction between UI and
>EMCMOT?
>  
>
Err.  Probably some.  Somewhere.
The UI doesn't directly communicate with EMCMOT.  The UI sends NML 
messages to the task controller, which then sends motion and IO commands 
to the motion and IO controllers.

If you could explain a little more about what you're trying to 
accomplish, someone can probably give you better information.

- Steve


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to