User Tag List

Results 1 to 2 of 2

Thread: interfacing with CNC router - dotnet can't add reference .exe file

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D Module

    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    interfacing with CNC router - dotnet can't add reference .exe file

    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?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D Module

    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For people with mutual interest in an answer.. I have it working now through a different route. I compiled a DLL file with the info i got from the example. I tried to use this DLL in MMF. I found out that the DLL object can't handle it, found somewhere here on the forums (I think LB mentioned) that the DLL object can't make use of DLL files written in C#... If anyone knows more about this please reply in this post, I would like to know the details of this.

    Tried to open it through the .net object and now I can move my CNC router with predefined codes controlled from MMF. I will build out this DLL a bit more and share it if there is interest for it.

    I started to learn making extensions with the SDK's since yesterday but got some compiler issues in visual studio 2015. Luckely Phi is directing me a bit. Would be nice to have some extensions to control electronics in various ways as I only use MMF for this kind of applications. Until now often using darksocket, serial object and DLL object to make it happen but often with bugs which have to be worked around..

Similar Threads

  1. FlashFX example file or reference document?
    By King_Cool in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 1st June 2012, 11:44 PM
  2. Interfacing with Scanners?
    By Dines in forum Extension Development
    Replies: 3
    Last Post: 28th September 2008, 02:29 AM
  3. Interfacing with Google
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th May 2008, 09:35 PM
  4. dotNET object: ? about interfacing MMF objects
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 11th April 2008, 02:35 AM
  5. Moo Servers Through A Router?
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 17th September 2007, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •