I am trying to interface with a XYZ movement table / CNC router. I could build a hardware interface and send step and direction bits but i prefer to use Mach3 CNC software which already handles this for me as well as endswitches, accelaration of the motors etcetera which i can simply send G codes.
There are some example codes on the web using VB6 and some using C# to remotely control Mach3 from within your application. The one which I can compile in visual studio 2015 is this one: http://www.briandorey.com/post/Mach3...rm-Application
Mach3 turns out to have (or create?) a COM+ interface thus when adding C:\Mach3\Mach3.exe to the references it will get linked to this code (I am not a software expert so I might be off a bit here). In Visual studio this goes well, just as explained in the link. In MMF though when i search the Mach3.exe and add it then upon compiling the dotnet object it will return the error:
Metadata file 'c:\Mach3\Mach3.exe' could not be opened -- 'An attempt was made to load a program with an incorrect format.'
Is there any other way to refer to the Mach3 software in a correct way?