Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 03:35:18 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.
| | |-+  Get Master Output
Pages: 1   Go Down
Print
Author Topic: Get Master Output  (Read 565 times)
0 Members and 1 Guest are viewing this topic.
aamirlat
Active Member

Offline Offline

Posts: 2


View Profile
« on: January 16, 2010, 01:44:54 PM »

Hi every body.

I was wondering if there is a way to replicate VB script function (GetMasterOutput) in a plugin? Or if it is not possible, is there anyway that I can access an output value through my plugin?

Your responses is highly appreciated.

Cheers,
Amin
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: January 16, 2010, 02:28:57 PM »

the GetMasterOutput was/is for the "Older" modbus module, (not the serial plugin or TCP).

to get to that data:

MainPlanner->ModOutputs
  • ;  
//x = your index on the outputs 0-127

MainPlanner->ModInputs[y];  
//y = your index on the inputs 0-127

to get to the newer stuff for the plugin serial and tcp the data structors are different, AND, the newer
Modbus stuff, is not linked at current time to the VB scripter functions.

scott

« Last Edit: January 16, 2010, 02:36:08 PM by poppabear » 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/
aamirlat
Active Member

Offline Offline

Posts: 2


View Profile
« Reply #2 on: January 16, 2010, 02:47:06 PM »

Scott,

Thank you very much for your quick response. Unfortunately I am not very much familiar with Mach3. I am assigned to developing a plugin for Mach3, which I have done already, but it has to monitor an output signal, but I am stuck at this point.

Outputs are mapped to DC3IOb and I need to monitor 63.

The plug in is in VS2008.

I was looking for something similar to GetLED for GetOutput, but I have not had any luck.

I saw that you have done a plugin that monitors outputs (TestIO).

Can you please let me know how this can be done, or otherwise how much do you charge for making a plugin that monitors the output (I will need the source code so that I can integrate it with my work).

Many thanks
Amin
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!