Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:29:28 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  How to create a plugin for maintenance info??
Pages: 1   Go Down
Print
Author Topic: How to create a plugin for maintenance info??  (Read 1286 times)
0 Members and 2 Guests are viewing this topic.
adamj12b
Active Member

Offline Offline

Posts: 5


View Profile
« 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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: February 03, 2009, 10:50:21 AM »

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
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
jemmyell
Active Member

Offline Offline

Posts: 106


View Profile WWW
« Reply #2 on: February 03, 2009, 11:05:02 AM »

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
Logged

Swap_File
Active Member

Offline Offline

Posts: 21


View Profile
« Reply #3 on: October 19, 2009, 04:03:13 PM »

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.
« Last Edit: October 20, 2009, 01:59:27 PM by Swap_File » Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!