On 11/29/2016 07:34 AM, Andreas Pettersson wrote: > Would there be something that limits one to implement a UI for LinuxCNC > as a restful service > in say Python - that would listen to like port 8080 and take commands like > > /moveXAxis/positive/10/mm > > Why, cuz i want to. And i guess one could bind a zeromq realtime > component into it or something like that > being able to abstrac it to a RTC based UI on a tablet or a phone.
Yep, this is totally doable. The LinuxCNC motion control core talks to the user interfaces via a message passing system called NML. Multiple UIs can be connected to the motion controller at the same time, as is commonly done with (for example) Axis and halui. Your web-based UI would look and act (to the motion controller) just like any other UI, and the motion controller wouldn't know or care that it presents a web interface instead of a graphical user interface on the other side. New UIs can most easily be written in C, C++, or Python. All the UIs live in src/emc/usr_intf/. The simplest C/C++ example is probably halui, though i'd recommend using the shcom library (also in src/emc/usr_intf) for writing new C/C++ UIs. The simplest Python example might actually be some of our test programs, for example tests/abort/feed-rate/test-ui.py. -- Sebastian Kuzminsky ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
