Hi, everyone

Last post I mentioned to make my own GUI by using TrollTech's Qt. And  i
had  completed
the graphic interface, but it's just a graphics without implementing its CNC
functions. my problem is how to join it with emc2 functions, having any
APIs?

Then Eric gave me an suggestion--take a look at "/src/emc/usr_intf" where
the shcom file provide a number of common EMC functions.

So I followed the advice and looked through the file. I found that it
provided many functions named like this "send#####(*****)", such as
"sendMachineOn()", "sendMachineOff()" and so on. The implementation of these
functions is writing the relevant commands to NML command buffers.
Then an idea came to my mind. These functions are just the APIs I need. For
example, when I trigger a pushbutton named "Machine On"in toolbar of my GUI,
then it will callback the function "sendMachineON()", and send the relevant
command to the NML command buffer which will be read by EMCMOT model. Yes or
not?
Thank you for your favor in advance.
Regards
Fengli Zhang
-------------------------------------------------------------------------
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

Reply via email to