News:

  • June 27, 2026, 10:02:02 PM

Login with username, password and session length

Author Topic: stream data to PC  (Read 12083 times)

AngrySparky

  • Newbie
  • *
  • Posts: 9
stream data to PC
« on: September 19, 2024, 03:13:45 PM »
Hoping I can get some guidance on the best option to accomplish something. I currently have a BRX plc doing data collection as part of a larger system at a water treatment plant. We have this set up so it logs data to an SD card then FTPs it once a day over to a computer running XLreporter software to create regulatory reports. This has worked awesome, we couldn't be happier with how this works.

Now I am wondering what the best way would be to send data to the PC more frequently. What I would like to be able to do would be to transfer data to the computer fairly quickly, say every 30 seconds, or once a minute, or even once every 5 minutes, in a way that I could access it with XLreporter, or excel or a similar program to create trends for what you might call a dashboard. I know there are several ways to do this with BRX, I just don't know much about any of them and could use a pointer on what to look at.

Thanks

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: stream data to PC
« Reply #1 on: September 19, 2024, 04:23:22 PM »
Hoping I can get some guidance on the best option to accomplish something. I currently have a BRX plc doing data collection as part of a larger system at a water treatment plant. We have this set up so it logs data to an SD card then FTPs it once a day over to a computer running XLreporter software to create regulatory reports. This has worked awesome, we couldn't be happier with how this works.

Now I am wondering what the best way would be to send data to the PC more frequently. What I would like to be able to do would be to transfer data to the computer fairly quickly, say every 30 seconds, or once a minute, or even once every 5 minutes, in a way that I could access it with XLreporter, or excel or a similar program to create trends for what you might call a dashboard. I know there are several ways to do this with BRX, I just don't know much about any of them and could use a pointer on what to look at.

Thanks

DMLogger

There is a specific message format that directs DMLogger to store the records to a disk file. It can easily handle very fast data. Don't remember the details, but let me see if I find them and I'll post.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: stream data to PC
« Reply #2 on: September 19, 2024, 04:31:43 PM »
DMLogger

There is a specific message format that directs DMLogger to store the records to a disk file. It can easily handle very fast data. Don't remember the details, but let me see if I find them and I'll post.

Smart folks have informed me that topic DMD0283 documents the method.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

AngrySparky

  • Newbie
  • *
  • Posts: 9
Re: stream data to PC
« Reply #3 on: September 19, 2024, 07:03:03 PM »
Thank you for the quick reply. I went and found the help topic and it certainly seems promising and simple enough. Any idea what sort of data rate limitations there might be? The way we have the data collection setup there is a 15min base sample rate but there are also deadband based sample triggers. That way if the values are stable it logs only every 15 minutes, if something spikes it logs as fast as it needs to. It almost seems this could build a string of the log data and stream it out every time it logs to the SD card.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: stream data to PC
« Reply #4 on: September 20, 2024, 06:59:22 AM »
Thank you for the quick reply. I went and found the help topic and it certainly seems promising and simple enough. Any idea what sort of data rate limitations there might be? The way we have the data collection setup there is a 15min base sample rate but there are also deadband based sample triggers. That way if the values are stable it logs only every 15 minutes, if something spikes it logs as fast as it needs to. It almost seems this could build a string of the log data and stream it out every time it logs to the SD card.

Easily sub-second.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Kristjan

  • Sr. Member
  • ****
  • Posts: 82
    • Idnadartaekni ehf
Re: stream data to PC
« Reply #5 on: September 20, 2024, 11:34:35 AM »
If the reporting software can receive UDP data, you could use instruction PACKETOUT to push data to the PC.

For testing purposes, you can use a software utility called UDP Sender/Receiver to see what you are getting from the PLC.