News:

  • June 28, 2026, 06:00:18 PM

Login with username, password and session length

Author Topic: Data Acquisition From Do-More  (Read 40418 times)

Maxwell

  • Jr. Member
  • **
  • Posts: 18
Data Acquisition From Do-More
« on: March 15, 2013, 12:47:39 PM »
I don't have a lot of experience with PLC's, but I've just finished my first "Real" plc application using a Do-more.  (Portable field controller for remote equipment.)  The hardware is deployed, the system works, everybody is happy.  For my own purposes, I set up a table of user defined memory blocks, many of which are Date/Time Structures.  One of the end user's customers discovered that I was recording this data and now they are asking for weekly downloads of the data directly to an electronic file format like Excel. 

Since I have zero experience doing this, I was hoping that someone here could suggest an approach that had worked for them in getting data off a Do-more.  I know that there are software packages like DataWorx for data collection from a PLC, but with Do-more being so new, I wasn't sure if any of them work well with it.  If there is a way that I can have the PLC somehow write the file out using ladder commands, I'd love that, but I am not sure how to go about it.

The hardware has a USB connection port used to update the program on the PLC, but there is no network connectivity.  If at all possible, I'd really prefer to access the data via the USB so that I don't have to modify the hardware to add ethernet connectivity.  I don't need continous, real time data acquisition, just weekly data dumps when a technician comes by with a laptop.

Any suggestions for products to look at or approaches to consider would be appreciated.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Data Acquisition From Do-More
« Reply #1 on: March 15, 2013, 03:40:37 PM »
Check out http://www.bizwaredirect.com/dataworx_pro.htm
Especially their Dataworx Professional.
The online information covers DL type PLCs but it uses UDP communication packets from the PLC, a communication method easily available from the Do-More. Ask them about it.
An output is a PLC's way of getting its inputs to change.

Maxwell

  • Jr. Member
  • **
  • Posts: 18
Re: Data Acquisition From Do-More
« Reply #2 on: March 16, 2013, 05:24:29 PM »
I'll call DataWorx Monday, but that appears to be geared more toward continuous datalogging on a network. 

As a cheap solution, I tried looking at chuncks of the data on the PLC today using DataView and then exporting it to a csv file.  I can see the values in DataView, but when I export, the file that gets created is of size 0 and doesn't appear to contain any data.  In addition, I noticed that if I try to open the file while Do-more Designer is still open, Excel tells me the file is locked for editing and asks if I want to view as read only.  If I say yes, or if I open the file after closing Do-more Designer, the file appears to be empty.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Data Acquisition From Do-More
« Reply #3 on: March 16, 2013, 08:28:36 PM »
Any suggestions for products to look at or approaches to consider would be appreciated.

You could use a discrete input to trigger a program with a STRPRINT in a FOR/NEXT loop, to pack all the data into a string on the DoMore, and then use STREAMOUT to a serial port with a laptop connected using a simple com port capturing program. Then just click save and you have a .csv of all the data... For Free!

I could throw a sample together for you next week of it would help.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

Maxwell

  • Jr. Member
  • **
  • Posts: 18
Re: Data Acquisition From Do-More
« Reply #4 on: March 16, 2013, 09:36:49 PM »
Any suggestions for products to look at or approaches to consider would be appreciated.

You could use a discrete input to trigger a program with a STRPRINT in a FOR/NEXT loop, to pack all the data into a string on the DoMore, and then use STREAMOUT to a serial port with a laptop connected using a simple com port capturing program. Then just click save and you have a .csv of all the data... For Free!

I could throw a sample together for you next week of it would help.

I'd hate to put you to that kind of trouble unless you just happened to have a sample around from when you've done this in the past, but I would be interested in knowing if there is a capture program that you've used and recommend.  Also, would there be a program/way to capture via the USB port?  (The serial port is currently connected to a c-more plus there isn't currently a serial access port available externally.  There is an external USB port used for programming the Do-More & C-More.  Also, since the equipment is field deployed and all connections have to be IP67 qualified, I'd really like to be able to pull the data off via the USB connection.)

I'll try Googling USB port capture programs Monday myself and see if anything pops up.  Thanks again for the helpful suggestion.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Data Acquisition From Do-More
« Reply #5 on: March 16, 2013, 11:52:57 PM »
Do-more is a super easy platform to get dats out of. Tell me more of what you are needing. I'm sure we can propose one or more methods of solving this.
"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

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Data Acquisition From Do-More
« Reply #6 on: March 18, 2013, 06:03:54 AM »
I believe I got it all right. You will have to enter some data into the three data blocks first, But then if you close C0 then all of the data in the three data blocks will be assembled and sent out to the DoMore Logger. You can then save the file as a .csv and view in any spreadsheet.
(now that I think about it... I'm not sure if the Logger will work over the USB port... Bobo?)
Anyway, you can transmit the file over Serial or Ethernet by changing the STREAMOUT instruction.

Hope this helps.
« Last Edit: March 18, 2013, 06:13:09 AM by plcnut »
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Data Acquisition From Do-More
« Reply #7 on: March 18, 2013, 09:08:40 AM »
Host can provide the source to DmLogger to anyone who wants it, for free.  We have two versions, a C++/MFC version that ships with Do-more Designer, and a C# version that is functionally equivalent.

Anybody could take that source and tweak it to always log to disk or USB drive or wherever, possibly eliminating the UI to create a "service" or a command-line utility or ? ? ?

Note that since the source is provided for free, you will be responsible for enhancing the C++ or C# code, but we will definitely point you in the right direction.
« Last Edit: March 18, 2013, 09:10:28 AM by franji1 »

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Data Acquisition From Do-More
« Reply #8 on: March 18, 2013, 09:25:34 AM »
Mark, Does DoMore Logger work over the USB port?
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Data Acquisition From Do-More
« Reply #9 on: March 18, 2013, 09:32:46 AM »
Mark, Does DoMore Logger work over the USB port?

No. Only Ethernet.
"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

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Data Acquisition From Do-More
« Reply #10 on: March 18, 2013, 11:13:05 AM »
Mark, Does DoMore Logger work over the USB port?

No. Only Ethernet.

So, without more hardware he is kinda of stuck. No ethernet, and his serial is tied up with CMore...
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Data Acquisition From Do-More
« Reply #11 on: March 18, 2013, 12:59:35 PM »
Yeah, I missed that detail the first time through. Very busy right now.

Easiest answer would be to add an H2-SERIO.
"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

Maxwell

  • Jr. Member
  • **
  • Posts: 18
Re: Data Acquisition From Do-More
« Reply #12 on: March 18, 2013, 11:26:33 PM »
Do-more is a super easy platform to get dats out of. Tell me more of what you are needing. I'm sure we can propose one or more methods of solving this.
I intended to reply back this morning, but for some reason I couldn't access your site from work. Anyway...

I have portable control units that get deployed to equipment in field locations out in the middle of nowhere.  The controller gets hooked up to a machine and is then configured via the touch screen to run between 1 and 6 processes at times and dates scheduled by the tech who sets it up and then leaves.  When the controller runs, it displays various types of run data that the original end users requested, but in addition, I set up an array/table in user defined memory blocks which records the following information every time a process is run:

  • The Serial # of the machine which is being controlled.  Stored as unsigned word.
  • A # from 1 to 6 which designates the process being run.  Stored as unsigned byte.
  • A time/Date Structure for the start of the run.
  • A time/Date Structure for the end of the run.
  • The amount of time that the process actively ran stored in a Signed DWord.  (This is more precise than the time/date structure, plus it takes into account power losses, pauses in the process, etc...)

In addition to the data stored above, I have an index number that starts at 0.  Every time a process runs and data is recorded, the index is incremented by 1 and therefore, the data from the next run will get stored in the next row of the table.  When I get to 599, the index number loops back to 0.

Now, the equipment is deployed in the field, and everything is fine, but one of the end user's customers decides that he needs very exact time data regarding when some activities took place.  I hook up a laptop and using Do-more Designer Data View, I'm able to read the log data and give the downstream customer the info they needed.  Now that they've discovered that the data exists, they want us to start providing weekly downloads of the data in csv format so that they can pull it into Excel. 

That's the summary of what's going on.  I understand the concept of writing the data to a string, but I'm not very knowledgeable about USB vs Serial vs Ethernet.  It looked like I could access the data using software like DataWorx via Ethernet, but I wasn't sure if there was a better choice of software and wanted to see what others with more experience recommended. In addition, for reasons that I'll skip here, getting the controller units back in to modify them to support a connection method other than the existing USB connection is going to be difficult and expensive.  If the only way to get the data off is via Ethernet or serial, then I'll pass that information along and see if the downstream customer is willing to foot the bill.  Before I do that; however, I wanted to ask and make sure that there isn't some built in command to stream the data out the USB connection, or some inexpensive utility that was available.

Thank you for taking the time to comment and help.

Maxwell

  • Jr. Member
  • **
  • Posts: 18
Re: Data Acquisition From Do-More
« Reply #13 on: March 20, 2013, 02:43:27 PM »
The Bizwaredirect people were nice and think that one of the products that they have under developmet will probably allow me to access the data in a round about way, but it will be this Fall before it's available. 

In the mean time, has anyone else tried to export values from Data View and ended up with empty CSV files?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Data Acquisition From Do-More
« Reply #14 on: March 20, 2013, 04:15:53 PM »
So you do have Ethernet ports on your CPUs?
"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