WinCC V12 Script to change tag value

JDCROCKETT724

Member
Join Date
Jun 2010
Location
Michigan
Posts
249
I am trying to write a script that will change an internal tag in the HMI. I am having no luck on getting this to work. Does anyone have any insight on how to do this. I have found code that involves a "write" command, but that does not appear to be present in WinCC V12.
 
I have found that to change a value you simply put in:
HmiRuntime.SmartTags("TEST_BOOL")=True

However I can only get this to work in a fresh test application I created. It does not work in my application I have created for my machine. Does anyone know why it would work in one application and not another?????? o_O
 
I think situations like this is what the "Compile (Rebuild All)" option is for. It means the compiler starts from scratch to rebuild everything, instead of just compiling the changes. Not sure if it would have helped your case specifically, but I've seen it fix some similar errors.
 

Similar Topics

hello all, I have a project in Wincc V15 and I need to copy some screens from V15 to V12 TIA. How do I it. I cant copy paste as there are...
Replies
2
Views
1,940
I want to prepare a PC for a client that has TIA Portal WinCC V12 professional RT. I dont have the installation DVD that came with Siemens as it...
Replies
1
Views
2,985
Dear all, I used WinCC professional V12 for the first time and I am experiecing very slow responce of the system. The programm is made so that...
Replies
0
Views
2,537
I am trying to write a simple VB code to increment a tag to page through some data collection. What I have compiles without errors, but does not...
Replies
6
Views
1,981
I want a Cognex application I have installed on my TP1200 to start in the back ground when the runtime starts. Does anyone know how to do this...
Replies
1
Views
1,872
Back
Top Bottom