Hello Guest it is October 24, 2021, 10:31:58 AM

Author Topic: Mach3: Expose APIs from Mach4.Document  (Read 1722 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach3: Expose APIs from Mach4.Document
« Reply #10 on: April 10, 2019, 12:29:39 PM »
It's been many years since I developed my Mach3 COM wrapper.  I was using Delphi which is object pascal.

https://www.machsupport.com/forum/index.php?topic=32144.0

 I have attached another pascal file (renamed .txt for upload).  I think you could rewrite it to C++ fairly easily.


HTH

RT
Re: Mach3: Expose APIs from Mach4.Document
« Reply #11 on: April 10, 2019, 09:47:07 PM »
Hi RT

Thanks for the example.  I give up looking for official Mach3 COM programming manual,
but your example is more than enough !! That's big help.

Thanks a lot
KC

It's been many years since I developed my Mach3 COM wrapper.  I was using Delphi which is object pascal.

https://www.machsupport.com/forum/index.php?topic=32144.0

 I have attached another pascal file (renamed .txt for upload).  I think you could rewrite it to C++ fairly easily.


HTH

RT
Die hard vi lover ;-)

Offline TPS

*
  •  2,202 2,202
    • View Profile
Re: Mach3: Expose APIs from Mach4.Document
« Reply #12 on: April 11, 2019, 02:53:47 PM »
i think CMyScriptObject.h file from machremote example is also a good reference

anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Mach3: Expose APIs from Mach4.Document
« Reply #13 on: August 17, 2020, 07:55:18 PM »
I can run MachRemote now, but I don't know which APIs or commands I can use ?? From source code of MachRemote, I can find

hi kccheng, did you ever find a list of usable functions?
i'm creating a python connector, I've got the following functions to work. I cant get doOEMbutton or GetOEMLed to work.

LoadGCodeFile('C:\Mach3\GCode\cross.tap')
cyclestart()
closefile()
shutdown()
SetFRO(100) #feedrate override, send percent