Hello Guest it is March 29, 2024, 05:06:07 AM

Author Topic: Get Master Output  (Read 2975 times)

0 Members and 1 Guest are viewing this topic.

Get Master Output
« 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

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Get Master Output
« 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 »
fun times
Re: Get Master Output
« 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