Save long term data from PLC

passwordg

Member
Join Date
Aug 2011
Location
South Carolina
Posts
224
Using Allen Bradley PLCs,

What are some easy ways to save process data from the PLC to a computer ? Would I have to start getting into SQL type programming ?

Thanks.
 
More information would be helpful, I agree with SQL, it will depend on your budget, many OPC servers now have SQL logging feature as well as many modest Scada packages, so no real SQL scripting required, however, it's easy to get data into a DB, getting it out in report form can be a little more tricky.
SQL is very stable, less likely to loose data through corruption & can store huge amounts of data. The other way would be CSV files, these are easy to populate in VB or other programming languages, Scada & HMI systems often have VBA to log to SQL or even simple log files.
 
SQL is not very friendly

This sounds pretty great. I know SQL is great but it would require me to setup a SQL server which I'll have to spend a lot of time learning.

I've got customers that went the SQL route and it has been over a year and they can't get it to do what they wanted it to.

The Red Lion support will help you do just about anything you can think of.
 
How much is time worth it to you? That's the thing that came to mind whenever I hear these type of discussions. While it's fun to explore if you just want it done, there are already tons products out there. For large organization, it's typically some type of process historian such as OSI PI, Proficy Historian, Wondeware historian, or Canary lab.

Tell us more about how many points, how often, and how the data would be used then we can provide better suggestions.
 
I've got customers that went the SQL route and it has been over a year and they can't get it to do what they wanted it to.

The Red Lion support will help you do just about anything you can think of.

SQL is very friendly. Buying a red lion or similar device puts you in a box and limits you.

Spend the time to learn SQL. It will be well worth the investment in time.
 
The Red Lion DSP opens more options

SQL is very friendly. Buying a red lion or similar device puts you in a box and limits you.

Spend the time to learn SQL. It will be well worth the investment in time.

Depending on the Red Lion DSP it opens more options.

He needs it for Allen Bradly, but the DSP can talk to hundred's of other devices. If your collecting data for management it's a great way to get that data RS232, RS485, Ethernet/IP, it's got you covered.
And yes it takes all that data from many different sources and can interface with SQL also.
I was only sharing a single experience with SQL, I agree it is the best tool getting data to and from machines.
 
I would start w/ figuring out, at a high level,
What data, What frequency(time series, event driven) and how/if it needs to be consumed/visualized.

Don't look for the solution until you have some of that handy as those answers will drive cost/scope.
 
At my work, in the manufacturing plant, there are many Android screens that access the ERP SQL server, they do not really execute SQL code but they call server Stored Procedures that are written in SQL.

This has several advantages:
  • The server optimizes the Stored Procedures, The execution speed difference can be huge compared to sending the SQL code from the device each time.
  • Stored Procedures can be altered on the fly.
 
If you are recording data, then at some point it usually needs to be visualised. From experience this can take a lot more time than setting up the data collection. The advantages of SQL are that you can make pretty fancy reports just using basic Excel. The free version of SQL Server comes with a 10GB database limit which frankly is more than enough for most applications. It’s a simple click through install and the free SQL Management Studio lets you design databases without any SQL scripting at all.
 
My limited experience with storing long-term data:
Members in meetings requested that we store defined data at a defined interval.
The data was stored.
The data was stored.
and
The data was stored.

That was all that was done with the data. No one wanted to do anything with it -- not even the requesting members...

Do you have a committed consumer for your stored data?

In my case, storing the data for all sorts of data mining/process displaying sounded great in a meeting, but no consumers materialized and the data capturing stagnated.
 
Since you are all Rockwell, check with you local guys about getting Factory Talk Historian,
It's really an OSI-PI historian with a custom interface.
Depending on how many points you have SQL gets really slow when running extensive, detailed, reports, our SQL based historian use to take several hours to run our daily reports. OSI-PI runs the same reports in a few minutes.
 
Every time I see another Overview system, Wonderware, AB, Iconics, Ignition, whatever. They all offer a Historian recorder or sql database. What is your overview package at your place of business?
 

Similar Topics

Hi; First of all, I am sorry that my post is not relevant with this forum. I have recently purchased Samsung cell phone. I have alreay saved...
Replies
1
Views
82
Hello! I have a datablock in a PLC witch contains about 700 variables. I must save this data once a day on a Windows PC in a XML or CSV file. Eg...
Replies
1
Views
495
Hello Folks! I have an issue and its very often but in this case i applied all the tricks and tips that i always do in similiar issues but in this...
Replies
2
Views
783
I'm a bit stuck again... See the redacted picture. At the moment, pressing F7 saves the "live" laser measurement into the boxes indicated by the...
Replies
9
Views
1,087
On my HMI-1200, I'm trying to assign the image of a floppy disk ("save" icon) to a function key. I couldn't find one in the default drop-down...
Replies
5
Views
607
Back
Top Bottom