EdingCncapi Netframework

License Info

Requirements:


The CncApi_Net is a code wrapper for the cncapi for EdingCnc controllers see: “http://www.edingcnc.com/products.php” written in C. With the cncapi it is possible to write a completely new GUI. At this moment I am writing a server with the help of WebApi that can be accessed by different devices, such as: Mac, Linux and Mobile devices.
I wrote this wrapper because when I started programming, I mainly programmed in C #. Because of this I decided to write a complete wrapper in C ++ / Clr for the CncApi from Edingcnc. An important requirement that I set myself was that pointers did not have to be used in C #. All pointers are managed by the .Net wrapper, char points are also converted to a System :: String ^. In this way I try to prevent memory leaks.
Recently there is also a CncApi.Net for 64-bit GUIs, for this an example project has been made for Visual Studio 2017. In this project is an example for jogging the axes of a cnc machine, you can also see how to let your program wait until the machine has reached the position.
Let me know if you like the code wrapper and if there are any tips for improvements.

For a complete description of all methods see: C: \ CNC4.03 \ cncapi \ cncapi.h. This describes all methods available in the Edingcnc api.

All methods in the wrapper are divided into groups. the group class name always start with G_ followed by the text above with the methods. The namespace where all classes can be found is: OosterhofDesign.

This group is called G_GetCncServer in the wrapper. (All methods are static)

/ ******************************************************* ************************ /
/ * Connect / Disconnect with CncServer.exe * /
/ ******************************************************* ************************ /

/ *
* Name: CncConnectServer
* In: iniFileName, only file name
* Out: –
* Return: See CNC_RC values
* Descr: Starts CNC server and establish connection with it
* This is the first command that the GUI should be execute.
* /
CNC_RC EXP2DF __stdcall CncConnectServer (char * iniFileName);

/ *
* Name: CncDisConnectServer
* In : –
* Out: –
* Return: See CNC_RC values
* Descr: Stops CNC server, to be called when GUI terminates.
* /
CNC_RC EXP2DF __stdcall CncDisConnectServer (void);