Technical Forum

SIMATIC WinCC flexible

Best way to grab data from Server room?

Thread Starter: flylikechris   Started: 8/1/2012 8:40 PM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  8/1/2012, 8:40 PM
Joined 8/1/2012
Last visit: 4/8/2013
Posts: 12
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello everyone,
I am working on an HMI right now that will need to populate IO fields with string information.
The catch is that this information is stored in a server room (networked to my stations) in a SQL database. I know that it is possible to create a text file with the specific data I need at the SQL server.
The concern I have is how I would go about bringing that text file to the HMI.

Have you guys seen this before? Do I have to target a specific directory and drop txt files in there? Or is it more of a situation where I write a script to go target the SQL database.

I am a little in over my head here.


Thanks in advance, any pointers are appreciated.
-Christopher
Top
  8/2/2012, 4:18 PM
Joined 9/5/2011
Last visit: 5/17/2013
Posts: 2549
Rating:
Rated: Outstanding [3.83 out of 5 / rated 131 time(s)]. (131) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

You can access from Runtime about script to the SQL server.
You can find more information in the following link.
How do you access an SQL database in WinCC flexible via a script?

Tweety
Top
  8/3/2012, 9:03 PM
Joined 8/1/2012
Last visit: 4/8/2013
Posts: 12
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Thanks for the response tweety. I am working through this, and some other online resources.
But may I ask why the tutorial states the following..
"NOTE: In general you CANNOT access SQL databases from a windows based CE panel."
Seems a little odd considering the title of the article is how to access a SQL database in WinCC via script. astonished


Is this specifically only in the WinCC runtime environment?
That would be cool, but that only helps with testing purposes.


Hmm.. 





=== Edited by flylikechris @ 8/3/2012 9:06 PM [GMT ] ===


Top
  8/6/2012, 1:20 PM
Joined 9/5/2011
Last visit: 5/17/2013
Posts: 2549
Rating:
Rated: Outstanding [3.83 out of 5 / rated 131 time(s)]. (131) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello flylekechris,

You can only access to a SQL database with runtime.
This is not possible with panel with WinCE.

You can use a RDB file as storage location with WinCC flexible 2008.
RDB format is a SQL lite database.

How are tags and alarms logged in WinCC flexible?

https://www.automation.siemens.com/WW/forum/guests/PostShow.aspx?HTTPS=REDIR&PostID=348188&language=en

Tweety
Top
  8/6/2012, 4:17 PM
Joined 8/1/2012
Last visit: 4/8/2013
Posts: 12
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Thanks for the reply Tweety,
That is unfortunate news. I'm sure I can figure something out though by having our application software write to a txt, or rdb file (like you mentioned).
SQL is constantly being updated, so the preffered method would be to acces this database on command of the HMI.
This method will work to, I suppose it should be easy enough to copy, or even just query a simple text file on the server.

I would love to see the new TP series having this functinoality. 


Anyways, thanks Tweety.
-Chris
Top
Page 1 of 1 (5 items)
Actions