Wincc Flex Runtime logging problem

I removed part of my script that I was using to smooth the results on the graph. I think that might have been hanging up the program for some reason. So far I've been running alright for a few hours. I'll let you know if it runs all day.

I know you said you don't like logging through scripts but how would I log a tag in a script?

If SmartTags("EC1_utilization") < 20 Then
'log a tag here?'
 
Last edited:
I do a lot of logging via scripts. Only, not via ODBC/SQL. I log to CSV files, and that works very reliably.
VBS have some weaknesses that seem to work particularly bad with an ODBC connection.
 
What would be the code to log a tag to my sql through odbc? I am still pretty new to wincc flex and don't know much of the syntax.
 
Look in this thread from SPS-FORUM.de:
http://www.sps-forum.de/showthread.php?t=15348
It is in german, so selective use of google translate may be a help.

The example is for ODBC to ACCESS. (edit: There is also a sample for MySQL) The format of the connection string is very dependant on the database used.
Again, use google to find the ODBC connection tring that fits your database.
 
Last edited:

Similar Topics

Hello! Another weird request from the swede with customers that doesn´t like to pay for quality in first place... Is there any way to have a...
Replies
8
Views
2,682
Hi! Writing this in a hurry. Today we made a break at a factory and I should download new s7-1200 program and a new WinCC Flex 2008 RT program...
Replies
0
Views
2,244
Hello Experts, I have a problem in WinCC Flex 2008 Sp3, when I start runtime system , after 2 to 5 sec when it started to communicate with the...
Replies
0
Views
1,710
I have a Siemens project with 2 HMI screens, one is a KTP600 Basic and the other is a MP 277 10inch touch. When I fire up the runtime from within...
Replies
6
Views
4,455
Hello Folks, to my problem: I have a installation of WinCC flexible 2008 (with save as version wincc 2007 option) on my local PC. My project is...
Replies
2
Views
7,726
Back
Top Bottom