WinCC Flexible <-> SQL

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hi all,

Today I connected an SQL database to WinCC Flexible.
I've made a database with 'SQL Server Management Studio Express' and then configured the ODBC source. After that I made the vb-scripts for communicating with the SQL database.
Writing and reading from tables works fine.

But now it comes...
I want to be able to log recordlines on step transitions.
A recordline = several tags to be logged, on stepchange.
So, when a step increments, several actual values (tags/vars) have to be written (logged) in the database. I'm thinking todo this with tag event in wincc flex = on change of stepnumber => call the write_to_sql script and increase the datarecordnumber (=primary key)...
This for writing to SQL...

But for reading, it's a little problem I have, me as a no-IT minded guy. It must be possible to ask from the database and the specific table to ask data on query...
For example: I want to see all the steps between 14h and 16h, and these times can be found in a column... how can I do this... It may be in VB.NET also... I think I'll need to read some SQL books about query's...


Can anyone help with SQL ?
Examples in WinCC Flex with some query lines... ?
Kind regards,
Gerry
 

Similar Topics

Hello, Question about database on a Panel PC.. I had a weird question from a customer, but it's a customer so I have to check if it is possible...
Replies
6
Views
3,288
Hi there everybody :) I have a project in WinCC Flexible 2008 SP3. I am trying to add values to a SQL stored procedure. The stored procedure...
Replies
1
Views
2,438
I'm trying to connect Wincc Flexible 2008 Advanced into SQL Server 2005 via script. For the test I made a db in the SQL as db_kalup and created a...
Replies
1
Views
7,254
Hi, We have upgraded our laptop which includes Windows 11. It appears that WinCC flexible 2008 advanced does not support Windows 11. What...
Replies
11
Views
264
Hello everyone I Have an Issue with the usage of recipes in Wincc Flexible 2008, I create the recipe to change the values in a fast way The...
Replies
0
Views
106
Back
Top Bottom