Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: dandumit on April 12, 2007, 08:13:49 AM

Title: Interfacing Mach3 with an external program
Post by: dandumit on April 12, 2007, 08:13:49 AM
Hi,

Please tell me if there is a way to integrate Mach3 with an external program like is Dinamic Data Exchange ?

I would like to be able to open another program on same machine and to send movement commands to Mach using a protocol like DDE.
I have multiple applications for this functionality. One of them would be an advanced optical edge finder for example...

Regards,
Daniel
Title: Re: Interfacing Mach3 with an external program
Post by: Brian Barker on April 12, 2007, 11:56:02 AM
I know if a few guys that say they have done this but I have no idea how they did it!

I will talk to them and ask them how they did it

thanks
Brian
Title: Re: Interfacing Mach3 with an external program
Post by: Brian Barker on April 12, 2007, 05:16:32 PM

Here is how they are doing it in VB

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim ProcId As String
        ProcId = Shell("C:\Mach3\Mach3.exe /p Mach3Mill", AppWinStyle.NormalFocus)
        Me.TopMost = True
    End Sub

(thank you Dave)

The just send the key commands to Mach3... Or if you are good you could write a DLL that you could talk to that is part of machs SDK...