Hi Steve and others, now when you know about what I have been working on, do you have any additional advice or maybe a few code line showing how to use task controller and get parallel port status?
Thanks, Sasa 2009/2/7 Sasa Vilic <[email protected]> > Thank you Steve, you helped me a lot. > > What I am trying to do is next thing: > > I have a plasma cutter and the filter is used for: > > 1. Takes input from dxf files > 2. Recognize (closed) profiles > 3. It has option of adding cutter radius compensation > 4. You can take a couple of profiles and group them. Then you can make > clone of group, move it, rotate, etc. > 5. Select material thickness and tool diameter and other options > > AND the last step is to do next thing: > > I need that my machine (the X axis) goes to the start, and then to end, and > then to the last position. In that process, my "filter" should read status > of parallel port, because the sensor board is connected to parallel port. > Sensor is used to recognize plates on plasma table. After that, the plates > are draw in my software, operator moves and rotate drawings to match the > plate, clicks next and the G code is produced. > > So, I was using bad words. Forgive me for my bad English. I need that my > "filter" communicate with task controller and do following: > * move machine along X axis > * read status of parallel port. > > > > 2009/2/7 Stephen Wille Padnos <[email protected]> > > 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 >> > > ------------------------------------------------------------------------------ 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
