Fengli, Take a look at the files in /src/emc/usr_intf. There are a number of interfaces to different systems there. For example emcsh provides the interface for TK/TCL as used by tkemc, emcrsh provides a telnet type interface to EMC and emclcd provides an interface for a 4 line by 20 character LCD display. All three programs reference shcom which provides a number of common EMC functions. This section has changed significantly since the last stable release, so make sure to use "head".
You can view these files on-line here: http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/ Regards, Eric > Hi, all > i have been preparing to use EMC2 to construct myself CNC > system for a 3-axes milling machine. but i don't want to use > the GUIs that EMC2 has provided, such as axis , xemc and so > on. Having learned TrollTech's Qt for ages, so i decide to > programe myself GUI using Qt. now i have completed the > graphic interface , but it's just a graphics without > implementing its cnc functions. my problem is how to combine > it with emc2 functions, having any APIs? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers