advertisement
from the Forum department...
Connecting Simatic panel to an external database
PLCs and related questions. topic
Posted by Helge Slettvoll on 18 September, 2009 - 5:20 am
I would like to connect our Simatic panels with LAN-port to a central database.

WinCC flexible help file states: "Recipes are stored on the HMI device or on an external storage medium. If, for example, production data is stored on a server in a database, you can import the production data via a CSV file at runtime."

Anyone with experience in this field? Our product (recipe) database is a MS Access. Do I need to go via CSV? How do I automatically synchronize (update) the CSV with the database?


Posted by BryanJ on 18 September, 2009 - 12:03 pm
Access is a relational database whilst CSV is a flat file format of a snap-shot of data.

So if this is a once off process and all the data is conveniently in one table then in Access you can right-click on the table and export to a Text file, which you can delimit (with a comma) as a csv file.

Now if it is once off and the data is spread over some tables you could write a query in Access and right-click the query and export as done above.

If it is dynamic you might have to write some software to generate the file dynamically from Access on a trigger. This is easy to do using C#, VB, VB.net, C++. You would have to trigger the generation from the Panel.

I hope this helps you.


Posted by Helge Slettvoll on 21 September, 2009 - 4:35 am
Thanks BryanJ,

That was useful. Any idea of how to make periodical export of a table or query? Access 2007 has the possibility to create Outlook task, but I don't want to use Outlook.


Posted by BryanJ on 22 September, 2009 - 10:26 pm
It would be quite easy to write a program that runs as a service on a PC that periodically runs a query on the database and creates/overrides an existing CSV file.

I would be quite happy to assist - provided it is on a windows OS. Let me know and I will give you some contact information.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Don't tell any big lies today. Small ones can be just as effective.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive