DoPC alternative

Moderators: TomKerekes, dynomotion

Post Reply
gui_marchioro
Posts: 59
Joined: Sun Aug 21, 2022 11:22 pm

DoPC alternative

Post by gui_marchioro » Sun Dec 31, 2023 2:14 pm

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

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: DoPC alternative

Post by TomKerekes » Sun Dec 31, 2023 9:43 pm

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
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply