Machsupport Forum
Mach Discussion => Mach SDK plugin questions and answers. => Topic started by: adamj12b on February 03, 2009, 10:17:43 AM
-
I need to create a plugin for Mach3 that can access the Maintenance Hours information and pro-form actions based on the data. I believe that you need C or C++ to program a plugin?? I do not know either language, but I do know VB.net and Some C#. I have access to VS 2003, 2005, and 2008. So whatever is needed I can use. The part that I am the most unsure about is how to access the information in mach and activate outputs and scripts. Hope someone can get me going.
-Adam
-
Look in this Thread where their is a request for people to help with docmentating the 4 main files used in plug ins for mach3.
Look at those files especially the Engine.h and Trajectory.h and the Biggie is the "Plugin Writters bible" that Art did, I think it is in the downloads section of this website.
there are several source code plugin you can use to see how stuff is done.
James on this site has also written a really good "tutorial" that will help get you started.
scott
-
Hi,
here is my tutorial that Scott refers to:
http://www.machsupport.com/forum/index.php/topic,4884.0.html
and here is the Plugin Writers Bible also:
http://groups.yahoo.com/group/mach1mach2cnc/files/
The file is 'Mach3Mysteries.pdf'.
You will need to use VS2003 and C++ for technical reasons.
-James
-
I am trying to do the same thing. It looks like the data I want is listed in Maintenance.h, but I am not sure how to get it out. I was planning on just shoving a set DRO in the 10hz update loop of the blank plugin.
Edit: I did eventually get the plugin to compile ( #include "Maintenance.h" extern Maintenance *MyMaintenance; "SetDRO(1900, MyMaintenance->m_Hours);"), but when Mach3 loads it crashes with Error 9988 and then 9991. I will continue to mess around with it.