How to run a WinCC script based on a PLC tag

Prince

Member
Join Date
Jun 2002
Posts
284
I wrote a code in Wincc script to write values into server and I've assigned this code to a button. This program works fine
Now I want to execute this script once when a plc boolean tag is ON. how should I implement this in WinCC.
 
Move your script to global script action and configure tag trigger.
I think you will need to change your script a bit if you want it be one shot on triger tag change.
 
Do it in the HMI Tag Table

Had the same question a couple of days ago. Siemens expert told me how to do it. I'm using TIA V13.
Won't work on Event on an HMI button on the screen. You need to do it in the HMI Tag.
HMI Tags/Default tag table. Highlight the tag. At the bottom, go to the Properties/Events tab. You have one choice - "Value Change". The name of your script will be in the dropdown list.
Note that "Value Change" will trigger it twice. Going high, and going low. To avoid the second run, reset the bit within your script at the end.
My tag name is a bool M bit named "RunVB Report".
Last line in my script is:
SmartTags ("RunVB_Report") = False
 

Similar Topics

Hello Guys. I've tried to get my WinCC Flexible RT to run a .bat script on my pc that i've made. But i can't get the RT to run my script when...
Replies
0
Views
2,313
Hi, Is it possible to have a background script running behind when a settings/log screen is triggered? I know i can run a script on Screen...
Replies
4
Views
7,914
I need WinCC Flexible to run a script based a value of a tag. E.g If Smart Tag_1 = 1 Then run "Script_1"
Replies
5
Views
9,203
Hi. When using WinCC and the webnavigator, is there any way to force a script (Global C-script) to be executed on the server instead of on the...
Replies
0
Views
5,963
Hi, I appreciate any help to make connection between AB DF1 Micrologix 1200 and WinCC Adv project (PC station - not HMI) possible. For now I can...
Replies
5
Views
610
Back
Top Bottom