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
DoPC alternative
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: DoPC alternative
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:
HTH
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()
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.