Hello Guest it is April 20, 2024, 11:25:22 AM

Author Topic: Monitor Mach3 and transmit over LAN - VB HELP PLEASE!  (Read 3516 times)

0 Members and 1 Guest are viewing this topic.

Monitor Mach3 and transmit over LAN - VB HELP PLEASE!
« on: February 21, 2012, 03:24:32 PM »
Good evening,

I want to to able to monitor, through a network, when the mach3 software starts and stops its operation. I also want to be able to extract data such as motor speeds and positions to send to the SCADA software on the master station.
I have been looking at the VB script editor and macro's, but I can only seem to extract data when calling from g-code program. The problem is that the data will only be monitored when I call the macro.

Is there any way that I can continuously monitor the status of the mach3 software and transmit it to SCADA software over a local network?

Regards

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Monitor Mach3 and transmit over LAN - VB HELP PLEASE!
« Reply #1 on: February 23, 2012, 08:11:07 PM »
Yes, there are two ways:

1). You can pull your data, from DRO and other functions, in a Brain and send it over TCP Modbus (RTU Modbus protocol).
2). If you want more than if mach3 running or not, axis positions, Feed rates, spindle speed (or other standard OEM data that has DRO's or LED's),
then you would need a plugin. But, from VB you can pull some data that the Brains "doesn't see", and then put it into a holding register like a DRO,
and grab-send with Brains over TCP modbus.

   If you want deeper functions than the standard OEM user stuff (buttons, leds, dros, tickers, labels), and VB driven other functions/status/parameters,
then you will have to get to that data with a plugin hybrid with Brains/Modbus.

Further, if your SCADA does't do Standard RTU TCP Modbus, but does communication bus(s) like: (Profi-bus, CAN-bus, Device-Net, Blue-Hose, K-sequence, Direct-net...etc.)
then you would need to have a hardware COM card of that type, that allows developers to access its DLL so you can send Mach3 data over your COM card.

scott
fun times
Re: Monitor Mach3 and transmit over LAN - VB HELP PLEASE!
« Reply #2 on: March 08, 2012, 07:18:46 AM »
Hey Scott,

Thank you very much. Which port does it output to? I've been trying to use port 502 defined by the Modbus protocol, but it does not communicate with my SCADA software.

Tremaine