[?]: Wincc Flexible Internal tags???

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
Post Reply
kostask24
Posts: 6
Joined: Wed Feb 11, 2009 11:38 am
Location: Europe

[?]: Wincc Flexible Internal tags???

Post by kostask24 » Mon Mar 09, 2009 2:36 pm

Hello to everybody!

I have some days working in wincc flexible 2008 advanced, and i want to make the folowing:

I want to make a script that has a variable with random numbers between 210 - 230.
Then to connect this variable to an internal tag and to have the result to an I/O Text.

( I want to make a fake voltmeter, that has values between 210V - 230V but without any external connection)

Can anybody help me???

Please????

marcs7
Posts: 52
Joined: Fri Jun 08, 2007 4:00 pm
Location: Europe

Post by marcs7 » Mon Mar 09, 2009 8:14 pm

the script :

SmartTags("VOLT") =Int((230 - 210 + 1) * Rnd + 210)

VOLT is a internal tag ( INT)

But the loop is not permit in win cc flexible.. call the script with a button on the screen or use the wincc simulator

kostask24
Posts: 6
Joined: Wed Feb 11, 2009 11:38 am
Location: Europe

Post by kostask24 » Tue Mar 10, 2009 9:01 am

Thank you very much my friend. I will try it

:D

Post Reply