Hello Guest it is June 02, 2020, 10:51:28 AM

Author Topic: Interfacing Mach3 with an external program  (Read 2246 times)

0 Members and 1 Guest are viewing this topic.

Interfacing Mach3 with an external program
« 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
Re: Interfacing Mach3 with an external program
« Reply #1 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
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Interfacing Mach3 with an external program
« Reply #2 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...
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com