Page 1 of 1

DoPC alternative

Posted: Sun Dec 31, 2023 2:14 pm
by gui_marchioro
Hi,

I'm considering to create a C# WPF application using the Dynomotion .Net libraries.

In the C programs coded for my machine I rely on the provided KflopToKmotionCNCFunction.c file when there is the need to send a command to be executed by the PC application using the DoPC() function. I use this for example to command ESTOP, HALT, EXECUTE, UPDATE FIXTURE, and to set new values of FRO and RRO.

I'm wondering on how to implement a similar function to communicate with the application I will develop. Do you have any suggestions?

Sincerely,
Guilherme

Re: DoPC alternative

Posted: Sun Dec 31, 2023 9:43 pm
by TomKerekes
Hi Guilherme,

You would need to add functionality to your App to watch for a command request, perform the command, then send a response back to KFLOP.

Basically duplicate the code in KMotionCNC. See the function:

Code: Select all

void CKMotionCNCDlg::ServiceKFLOPCommands()
HTH